GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-8.1/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 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, enum remove_bp_reason reason)
 
static int breakpoint_hit_catch_syscall (const struct bp_location *bl, const 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, std::vector< int > &&filter, const struct breakpoint_ops *ops)
 
static std::vector< int > catch_syscall_split_args (const char *arg)
 
static void catch_syscall_command_1 (const 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 void catch_syscall_completer (struct cmd_list_element *cmd, completion_tracker &tracker, const char *text, const char *word)
 
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
 

Function Documentation

◆ _initialize_break_catch_syscall()

void _initialize_break_catch_syscall ( void  )

◆ breakpoint_hit_catch_syscall()

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

◆ catch_syscall_command_1()

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

◆ catch_syscall_completer()

static void catch_syscall_completer ( struct cmd_list_element cmd,
completion_tracker tracker,
const char *  text,
const char *  word 
)
static

◆ catch_syscall_enabled()

int catch_syscall_enabled ( void  )

◆ catch_syscall_inferior_data_cleanup()

static void catch_syscall_inferior_data_cleanup ( struct inferior inf,
void *  arg 
)
static

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

Referenced by _initialize_break_catch_syscall().

◆ catch_syscall_split_args()

static std::vector<int> catch_syscall_split_args ( const char *  arg)
static

◆ catching_syscall_number()

int catching_syscall_number ( int  syscall_number)

◆ catching_syscall_number_1()

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

◆ clear_syscall_counts()

static void clear_syscall_counts ( struct inferior inf)
static

◆ create_syscall_event_catchpoint()

static void create_syscall_event_catchpoint ( int  tempflag,
std::vector< int > &&  filter,
const struct breakpoint_ops ops 
)
static

◆ get_catch_syscall_inferior_data()

static struct catch_syscall_inferior_data* get_catch_syscall_inferior_data ( struct inferior inf)
static

◆ initialize_syscall_catchpoint_ops()

static void initialize_syscall_catchpoint_ops ( void  )
static

◆ insert_catch_syscall()

static int insert_catch_syscall ( struct bp_location bl)
static

◆ is_syscall_catchpoint_enabled()

static int is_syscall_catchpoint_enabled ( struct breakpoint bp)
static

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

References bp, bp_call_disabled, bp_disabled, and syscall_catchpoint_p().

Referenced by catching_syscall_number_1().

◆ print_it_catch_syscall()

static enum print_stop_action print_it_catch_syscall ( bpstat  bs)
static

◆ print_mention_catch_syscall()

static void print_mention_catch_syscall ( struct breakpoint b)
static

◆ print_one_catch_syscall()

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

◆ print_recreate_catch_syscall()

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

◆ remove_catch_syscall()

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

◆ syscall_catchpoint_p()

static int syscall_catchpoint_p ( struct breakpoint b)
static

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

References catch_syscall_breakpoint_ops, and breakpoint::ops.

Referenced by is_syscall_catchpoint_enabled().

Variable Documentation

◆ catch_syscall_breakpoint_ops

struct breakpoint_ops catch_syscall_breakpoint_ops
static

◆ catch_syscall_inferior_data

const struct inferior_data* catch_syscall_inferior_data = NULL
static

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