GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-7.10/gdb/break-catch-syscall.c File Reference
#include "defs.h"
#include <ctype.h>
#include "breakpoint.h"
#include "gdbcmd.h"
#include "inferior.h"
#include "cli/cli-utils.h"
#include "annotate.h"
#include "mi/mi-common.h"
#include "valprint.h"
#include "arch-utils.h"
#include "observer.h"
#include "xml-syscall.h"

Go to the source code of this file.

Classes

struct  syscall_catchpoint
 
struct  catch_syscall_inferior_data
 

Functions

static void dtor_catch_syscall (struct breakpoint *b)
 
static struct catch_syscall_inferior_dataget_catch_syscall_inferior_data (struct inferior *inf)
 
static void catch_syscall_inferior_data_cleanup (struct inferior *inf, void *arg)
 
static int insert_catch_syscall (struct bp_location *bl)
 
static int remove_catch_syscall (struct bp_location *bl)
 
static int breakpoint_hit_catch_syscall (const struct bp_location *bl, struct address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static enum print_stop_action print_it_catch_syscall (bpstat bs)
 
static void print_one_catch_syscall (struct breakpoint *b, struct bp_location **last_loc)
 
static void print_mention_catch_syscall (struct breakpoint *b)
 
static void print_recreate_catch_syscall (struct breakpoint *b, struct ui_file *fp)
 
static int syscall_catchpoint_p (struct breakpoint *b)
 
static void create_syscall_event_catchpoint (int tempflag, VEC(int)*filter, const struct breakpoint_ops *ops)
 
static VEC (int)
 
static void catch_syscall_command_1 (char *arg, int from_tty, struct cmd_list_element *command)
 
static int is_syscall_catchpoint_enabled (struct breakpoint *bp)
 
int catch_syscall_enabled (void)
 
static int catching_syscall_number_1 (struct breakpoint *b, void *data)
 
int catching_syscall_number (int syscall_number)
 
static VEC (char_ptr)
 
static void clear_syscall_counts (struct inferior *inf)
 
static void initialize_syscall_catchpoint_ops (void)
 
void _initialize_break_catch_syscall (void)
 

Variables

static const struct inferior_data * catch_syscall_inferior_data = NULL
 
static struct breakpoint_ops catch_syscall_breakpoint_ops
 
initialize_file_ftype _initialize_break_catch_syscall
 

Function Documentation

void _initialize_break_catch_syscall ( void  )
static int breakpoint_hit_catch_syscall ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static void catch_syscall_command_1 ( char *  arg,
int  from_tty,
struct cmd_list_element command 
)
static
int catch_syscall_enabled ( void  )
static void catch_syscall_inferior_data_cleanup ( struct inferior inf,
void *  arg 
)
static

Definition at line 99 of file break-catch-syscall.c.

References xfree().

Referenced by _initialize_break_catch_syscall().

int catching_syscall_number ( int  syscall_number)
static int catching_syscall_number_1 ( struct breakpoint b,
void *  data 
)
static

Definition at line 559 of file break-catch-syscall.c.

References int, is_syscall_catchpoint_enabled(), and VEC_iterate.

Referenced by catching_syscall_number().

static void clear_syscall_counts ( struct inferior inf)
static
static void create_syscall_event_catchpoint ( int  tempflag,
VEC(int)*  filter,
const struct breakpoint_ops ops 
)
static
static void dtor_catch_syscall ( struct breakpoint b)
static
static struct catch_syscall_inferior_data* get_catch_syscall_inferior_data ( struct inferior inf)
static
static void initialize_syscall_catchpoint_ops ( void  )
static
static int insert_catch_syscall ( struct bp_location bl)
static
static int is_syscall_catchpoint_enabled ( struct breakpoint bp)
static
static enum print_stop_action print_it_catch_syscall ( bpstat  bs)
static
static void print_mention_catch_syscall ( struct breakpoint b)
static
static void print_one_catch_syscall ( struct breakpoint b,
struct bp_location **  last_loc 
)
static
static void print_recreate_catch_syscall ( struct breakpoint b,
struct ui_file fp 
)
static
static int remove_catch_syscall ( struct bp_location bl)
static
static int syscall_catchpoint_p ( struct breakpoint b)
static

Definition at line 422 of file break-catch-syscall.c.

References catch_syscall_breakpoint_ops, and breakpoint::ops.

Referenced by is_syscall_catchpoint_enabled().

static VEC ( int  )
static
static VEC ( char_ptr  )
static

Definition at line 594 of file break-catch-syscall.c.

References get_current_arch(), get_syscall_names(), VEC(), and xfree().

Variable Documentation

initialize_file_ftype _initialize_break_catch_syscall

Definition at line 637 of file break-catch-syscall.c.

Referenced by initialize_all_files().

struct breakpoint_ops catch_syscall_breakpoint_ops
static
const struct inferior_data* catch_syscall_inferior_data = NULL
static

Definition at line 64 of file break-catch-syscall.c.