|
GDB (xrefs)
|
#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 <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 int | signal_catchpoint_insert_location (struct bp_location *bl) |
| static int | signal_catchpoint_remove_location (struct bp_location *bl, enum remove_bp_reason reason) |
| static int | signal_catchpoint_breakpoint_hit (const struct bp_location *bl, const 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, 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) |
| static void | initialize_signal_catchpoint_ops (void) |
| void | _initialize_break_catch_sig (void) |
Variables | |
| static struct breakpoint_ops | signal_catchpoint_ops |
| static unsigned int * | signal_catch_counts |
| #define INTERNAL_SIGNAL | ( | x | ) | ((x) == GDB_SIGNAL_TRAP || (x) == GDB_SIGNAL_INT) |
Definition at line 34 of file break-catch-sig.c.
Referenced by signal_catchpoint_breakpoint_hit(), signal_catchpoint_insert_location(), and signal_catchpoint_remove_location().
| void _initialize_break_catch_sig | ( | void | ) |
Definition at line 427 of file break-catch-sig.c.
References _, add_catch_command(), CATCH_PERMANENT, catch_signal_command(), CATCH_TEMPORARY, initialize_signal_catchpoint_ops(), signal_catch_counts, signal_completer(), and XCNEWVEC.
|
static |
Definition at line 384 of file break-catch-sig.c.
References catch_signal_split_args(), CATCH_TEMPORARY, create_signal_catchpoint(), get_cmd_context(), and skip_spaces().
Referenced by _initialize_break_catch_sig().
|
static |
Definition at line 335 of file break-catch-sig.c.
References _, error(), extract_arg(), gdb_assert, gdb_signal_from_command(), gdb_signal_from_name(), skip_spaces(), and string.
Referenced by catch_signal_command().
|
static |
Definition at line 317 of file break-catch-sig.c.
References get_current_arch(), init_catchpoint(), install_breakpoint(), and signal_catchpoint_ops.
Referenced by catch_signal_command().
|
static |
Definition at line 408 of file break-catch-sig.c.
References base_breakpoint_ops, breakpoint_ops::breakpoint_hit, breakpoint_ops::explains_signal, initialize_breakpoint_ops(), breakpoint_ops::insert_location, breakpoint_ops::print_it, breakpoint_ops::print_mention, breakpoint_ops::print_one, breakpoint_ops::print_recreate, breakpoint_ops::remove_location, signal_catchpoint_breakpoint_hit(), signal_catchpoint_explains_signal(), signal_catchpoint_insert_location(), signal_catchpoint_ops, signal_catchpoint_print_it(), signal_catchpoint_print_mention(), signal_catchpoint_print_one(), signal_catchpoint_print_recreate(), and signal_catchpoint_remove_location().
Referenced by _initialize_break_catch_sig().
|
static |
Definition at line 147 of file break-catch-sig.c.
References signal_catchpoint::catch_all, if(), INTERNAL_SIGNAL, target_waitstatus::kind, bp_location::owner, target_waitstatus::sig, signal_catchpoint::signals_to_be_caught, TARGET_WAITKIND_STOPPED, and target_waitstatus::value.
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 304 of file break-catch-sig.c.
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 86 of file break-catch-sig.c.
References signal_catchpoint::catch_all, if(), INTERNAL_SIGNAL, bp_location::owner, signal_catch_counts, signal_catch_update(), and signal_catchpoint::signals_to_be_caught.
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 180 of file break-catch-sig.c.
References _, annotate_catchpoint(), bpstats::breakpoint_at, current_uiout, get_last_target_status(), maybe_print_thread_hit_breakpoint(), breakpoint::number, PRINT_SRC_AND_LOC, printf_filtered(), target_waitstatus::sig, signal_to_name_or_int(), and target_waitstatus::value.
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 255 of file break-catch-sig.c.
References _, signal_catchpoint::catch_all, name, breakpoint::number, printf_filtered(), signal_to_name_or_int(), and signal_catchpoint::signals_to_be_caught.
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 204 of file break-catch-sig.c.
References value_print_options::addressprint, annotate_field(), signal_catchpoint::catch_all, current_uiout, ui_out::field_skip(), ui_out::field_string(), get_user_print_options(), ui_out::is_mi_like_p(), name, signal_to_name_or_int(), signal_catchpoint::signals_to_be_caught, string, and ui_out::text().
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 284 of file break-catch-sig.c.
References signal_catchpoint::catch_all, fprintf_unfiltered(), fputc_unfiltered(), signal_to_name_or_int(), and signal_catchpoint::signals_to_be_caught.
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 113 of file break-catch-sig.c.
References signal_catchpoint::catch_all, gdb_assert, if(), INTERNAL_SIGNAL, bp_location::owner, signal_catch_counts, signal_catch_update(), and signal_catchpoint::signals_to_be_caught.
Referenced by initialize_signal_catchpoint_ops().
|
static |
Definition at line 70 of file break-catch-sig.c.
References gdb_signal_to_name(), and plongest().
Referenced by signal_catchpoint_print_it(), signal_catchpoint_print_mention(), signal_catchpoint_print_one(), and signal_catchpoint_print_recreate().
|
static |
Definition at line 62 of file break-catch-sig.c.
Referenced by _initialize_break_catch_sig(), signal_catchpoint_insert_location(), and signal_catchpoint_remove_location().
|
static |
Definition at line 58 of file break-catch-sig.c.
Referenced by create_signal_catchpoint(), and initialize_signal_catchpoint_ops().
1.8.14