GDB (xrefs)
Classes | Macros | Typedefs | Functions | Variables
/tmp/gdb-7.10/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 "gdb_obstack.h"

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)
 

Typedefs

typedef enum gdb_signal gdb_signal_type
 

Functions

 DEF_VEC_I (gdb_signal_type)
 
static const char * signal_to_name_or_int (enum gdb_signal sig)
 
static void signal_catchpoint_dtor (struct breakpoint *b)
 
static int signal_catchpoint_insert_location (struct bp_location *bl)
 
static int signal_catchpoint_remove_location (struct bp_location *bl)
 
static int signal_catchpoint_breakpoint_hit (const struct bp_location *bl, struct 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, VEC(gdb_signal_type)*filter, int catch_all)
 
static VEC (gdb_signal_type)
 
static void catch_signal_command (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 intsignal_catch_counts
 
initialize_file_ftype _initialize_break_catch_sig
 

Macro Definition Documentation

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

Typedef Documentation

typedef enum gdb_signal gdb_signal_type

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

Function Documentation

void _initialize_break_catch_sig ( void  )
static void catch_signal_command ( char *  arg,
int  from_tty,
struct cmd_list_element command 
)
static
static void create_signal_catchpoint ( int  tempflag,
VEC(gdb_signal_type)*  filter,
int  catch_all 
)
static
DEF_VEC_I ( gdb_signal_type  )
static void initialize_signal_catchpoint_ops ( void  )
static
static int signal_catchpoint_breakpoint_hit ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static void signal_catchpoint_dtor ( struct breakpoint b)
static

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

References base_breakpoint_ops, breakpoint_ops::dtor, and VEC_free.

Referenced by initialize_signal_catchpoint_ops().

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

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

Referenced by initialize_signal_catchpoint_ops().

static int signal_catchpoint_insert_location ( struct bp_location bl)
static
static enum print_stop_action signal_catchpoint_print_it ( bpstat  bs)
static
static void signal_catchpoint_print_mention ( struct breakpoint b)
static
static void signal_catchpoint_print_one ( struct breakpoint b,
struct bp_location **  last_loc 
)
static
static void signal_catchpoint_print_recreate ( struct breakpoint b,
struct ui_file fp 
)
static
static int signal_catchpoint_remove_location ( struct bp_location bl)
static
static const char* signal_to_name_or_int ( enum gdb_signal  sig)
static
static VEC ( gdb_signal_type  )
static

Variable Documentation

initialize_file_ftype _initialize_break_catch_sig

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

Referenced by initialize_all_files().

unsigned int* signal_catch_counts
static
struct breakpoint_ops signal_catchpoint_ops
static

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

Referenced by create_signal_catchpoint(), and initialize_signal_catchpoint_ops().