GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
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 "cli/cli-style.h"
#include "cli/cli-decode.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 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)
 
void _initialize_break_catch_sig ()
 

Variables

static unsigned int signal_catch_counts [GDB_SIGNAL_LAST]
 

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

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

Referenced by initialize_all_files().

◆ 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

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

References extract_arg(), and gdb_signal_from_command().

Referenced by catch_signal_command().

◆ create_signal_catchpoint()

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

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

References get_current_arch(), and install_breakpoint().

Referenced by catch_signal_command().

◆ 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[GDB_SIGNAL_LAST]
static