GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
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 "observable.h"
#include "xml-syscall.h"
#include "cli/cli-style.h"
#include "cli/cli-decode.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 int syscall_catchpoint_p (struct breakpoint *b)
 
static void create_syscall_event_catchpoint (int tempflag, std::vector< int > &&filter)
 
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 bool catching_syscall_number_1 (struct breakpoint *b, int syscall_number)
 
bool 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)
 
void _initialize_break_catch_syscall ()
 

Variables

static const registry< inferior >::key< catch_syscall_inferior_data > catch_syscall_inferior_data
 

Function Documentation

◆ _initialize_break_catch_syscall()

void _initialize_break_catch_syscall ( )

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

Referenced by initialize_all_files().

◆ 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_split_args()

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

◆ catching_syscall_number()

bool catching_syscall_number ( int syscall_number)

◆ catching_syscall_number_1()

static bool catching_syscall_number_1 ( struct breakpoint * b,
int syscall_number )
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 )
static

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

References get_current_arch(), and install_breakpoint().

Referenced by catch_syscall_command_1().

◆ get_catch_syscall_inferior_data()

static struct catch_syscall_inferior_data * get_catch_syscall_inferior_data ( struct inferior * inf)
static

◆ is_syscall_catchpoint_enabled()

static int is_syscall_catchpoint_enabled ( struct breakpoint * bp)
static

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

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

Referenced by catching_syscall_number_1().

◆ syscall_catchpoint_p()

static int syscall_catchpoint_p ( struct breakpoint * b)
static

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

Referenced by is_syscall_catchpoint_enabled().

Variable Documentation

◆ catch_syscall_inferior_data

const registry<inferior>::key<catch_syscall_inferior_data> catch_syscall_inferior_data
static

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