GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-8.1/gdb/break-catch-sig.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include <ctype.h>
#include "breakpoint.h"
#include "gdbcmd.h"
#include "inferior.h"
#include "infrun.h"
#include "annotate.h"
#include "valprint.h"
#include "cli/cli-utils.h"
#include "completer.h"
#include <string>

Go to the source code of this file.

Classes

struct  signal_catchpoint
 

Macros

#define INTERNAL_SIGNAL(x)   ((x) == GDB_SIGNAL_TRAP || (x) == GDB_SIGNAL_INT)
 

Functions

static const char * signal_to_name_or_int (enum gdb_signal sig)
 
static int signal_catchpoint_insert_location (struct bp_location *bl)
 
static int signal_catchpoint_remove_location (struct bp_location *bl, enum remove_bp_reason reason)
 
static int signal_catchpoint_breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static enum print_stop_action signal_catchpoint_print_it (bpstat bs)
 
static void signal_catchpoint_print_one (struct breakpoint *b, struct bp_location **last_loc)
 
static void signal_catchpoint_print_mention (struct breakpoint *b)
 
static void signal_catchpoint_print_recreate (struct breakpoint *b, struct ui_file *fp)
 
static int signal_catchpoint_explains_signal (struct breakpoint *b, enum gdb_signal sig)
 
static void create_signal_catchpoint (int tempflag, std::vector< gdb_signal > &&filter, bool catch_all)
 
static std::vector< gdb_signal > catch_signal_split_args (const char *arg, bool *catch_all)
 
static void catch_signal_command (const char *arg, int from_tty, struct cmd_list_element *command)
 
static void initialize_signal_catchpoint_ops (void)
 
void _initialize_break_catch_sig (void)
 

Variables

static struct breakpoint_ops signal_catchpoint_ops
 
static unsigned int * signal_catch_counts
 

Macro Definition Documentation

◆ INTERNAL_SIGNAL

#define INTERNAL_SIGNAL (   x)    ((x) == GDB_SIGNAL_TRAP || (x) == GDB_SIGNAL_INT)

Function Documentation

◆ _initialize_break_catch_sig()

void _initialize_break_catch_sig ( void  )

◆ catch_signal_command()

static void catch_signal_command ( const char *  arg,
int  from_tty,
struct cmd_list_element command 
)
static

◆ catch_signal_split_args()

static std::vector<gdb_signal> catch_signal_split_args ( const char *  arg,
bool *  catch_all 
)
static

◆ create_signal_catchpoint()

static void create_signal_catchpoint ( int  tempflag,
std::vector< gdb_signal > &&  filter,
bool  catch_all 
)
static

◆ initialize_signal_catchpoint_ops()

static void initialize_signal_catchpoint_ops ( void  )
static

◆ signal_catchpoint_breakpoint_hit()

static int signal_catchpoint_breakpoint_hit ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ signal_catchpoint_explains_signal()

static int signal_catchpoint_explains_signal ( struct breakpoint b,
enum gdb_signal  sig 
)
static

Definition at line 304 of file break-catch-sig.c.

Referenced by initialize_signal_catchpoint_ops().

◆ signal_catchpoint_insert_location()

static int signal_catchpoint_insert_location ( struct bp_location bl)
static

◆ signal_catchpoint_print_it()

static enum print_stop_action signal_catchpoint_print_it ( bpstat  bs)
static

◆ signal_catchpoint_print_mention()

static void signal_catchpoint_print_mention ( struct breakpoint b)
static

◆ signal_catchpoint_print_one()

static void signal_catchpoint_print_one ( struct breakpoint b,
struct bp_location **  last_loc 
)
static

◆ signal_catchpoint_print_recreate()

static void signal_catchpoint_print_recreate ( struct breakpoint b,
struct ui_file fp 
)
static

◆ signal_catchpoint_remove_location()

static int signal_catchpoint_remove_location ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

◆ signal_to_name_or_int()

static const char* signal_to_name_or_int ( enum gdb_signal  sig)
static

Variable Documentation

◆ signal_catch_counts

unsigned int* signal_catch_counts
static

◆ signal_catchpoint_ops

struct breakpoint_ops signal_catchpoint_ops
static

Definition at line 58 of file break-catch-sig.c.

Referenced by create_signal_catchpoint(), and initialize_signal_catchpoint_ops().