GDB (xrefs)
|
#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 |
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 |
void _initialize_break_catch_syscall | ( | void | ) |
Definition at line 640 of file break-catch-syscall.c.
References _, add_catch_command(), CATCH_PERMANENT, catch_syscall_command_1(), catch_syscall_inferior_data_cleanup(), CATCH_TEMPORARY, clear_syscall_counts(), initialize_syscall_catchpoint_ops(), and observer_attach_inferior_exit().
|
static |
Definition at line 200 of file break-catch-syscall.c.
References if(), target_waitstatus::kind, bp_location::owner, target_waitstatus::syscall_number, TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN, target_waitstatus::value, and VEC_iterate.
Referenced by initialize_syscall_catchpoint_ops().
|
static |
Definition at line 493 of file break-catch-syscall.c.
References _, catch_syscall_breakpoint_ops, CATCH_TEMPORARY, create_syscall_event_catchpoint(), error(), gdbarch_get_syscall_number_p(), get_cmd_context(), get_current_arch(), get_syscall_by_number(), skip_spaces(), and VEC().
Referenced by _initialize_break_catch_syscall().
int catch_syscall_enabled | ( | void | ) |
Definition at line 546 of file break-catch-syscall.c.
References current_inferior(), and get_catch_syscall_inferior_data().
Referenced by handle_syscall_event(), i386_linux_resume(), inf_ptrace_resume(), and linux_handle_syscall_trap().
|
static |
Definition at line 99 of file break-catch-syscall.c.
References xfree().
Referenced by _initialize_break_catch_syscall().
Definition at line 585 of file break-catch-syscall.c.
References breakpoint_find_if(), and catching_syscall_number_1().
Referenced by handle_syscall_event(), and linux_handle_syscall_trap().
|
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 |
Definition at line 607 of file break-catch-syscall.c.
References catch_syscall_inferior_data::any_syscall_count, get_catch_syscall_inferior_data(), and VEC_free.
Referenced by _initialize_break_catch_syscall().
|
static |
Definition at line 428 of file break-catch-syscall.c.
References syscall_catchpoint::base, get_current_arch(), init_catchpoint(), and install_breakpoint().
Referenced by catch_syscall_command_1().
|
static |
Definition at line 55 of file break-catch-syscall.c.
References base_breakpoint_ops, breakpoint_ops::dtor, and VEC_free.
Referenced by initialize_syscall_catchpoint_ops().
|
static |
Definition at line 84 of file break-catch-syscall.c.
Referenced by catch_syscall_enabled(), clear_syscall_counts(), insert_catch_syscall(), and remove_catch_syscall().
|
static |
Definition at line 618 of file break-catch-syscall.c.
References base_breakpoint_ops, breakpoint_ops::breakpoint_hit, breakpoint_hit_catch_syscall(), catch_syscall_breakpoint_ops, breakpoint_ops::dtor, dtor_catch_syscall(), initialize_breakpoint_ops(), insert_catch_syscall(), breakpoint_ops::insert_location, breakpoint_ops::print_it, print_it_catch_syscall(), breakpoint_ops::print_mention, print_mention_catch_syscall(), breakpoint_ops::print_one, print_one_catch_syscall(), breakpoint_ops::print_recreate, print_recreate_catch_syscall(), remove_catch_syscall(), and breakpoint_ops::remove_location.
Referenced by _initialize_break_catch_syscall().
|
static |
Definition at line 109 of file break-catch-syscall.c.
References catch_syscall_inferior_data::any_syscall_count, current_inferior(), get_catch_syscall_inferior_data(), inferior_ptid, bp_location::owner, ptid_get_pid(), target_set_syscall_catchpoint, VEC_address, VEC_index, VEC_iterate, VEC_length, VEC_replace, and VEC_safe_grow.
Referenced by initialize_syscall_catchpoint_ops().
|
static |
Definition at line 535 of file break-catch-syscall.c.
References bp_call_disabled, bp_disabled, breakpoint::enable_state, and syscall_catchpoint_p().
Referenced by catching_syscall_number_1().
|
static |
Definition at line 238 of file break-catch-syscall.c.
References annotate_catchpoint(), async_reason_lookup(), bpstats::bp_location_at, bpdisp_text(), bpstats::breakpoint_at, current_uiout, disp_del, breakpoint::disposition, EXEC_ASYNC_SYSCALL_ENTRY, EXEC_ASYNC_SYSCALL_RETURN, bp_location::gdbarch, get_last_target_status(), get_syscall_by_number(), target_waitstatus::kind, syscall::name, breakpoint::number, PRINT_SRC_AND_LOC, target_waitstatus::syscall_number, TARGET_WAITKIND_SYSCALL_ENTRY, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), and target_waitstatus::value.
Referenced by initialize_syscall_catchpoint_ops().
|
static |
Definition at line 351 of file break-catch-syscall.c.
References _, bp_location::gdbarch, get_syscall_by_number(), breakpoint::loc, syscall::name, syscall::number, breakpoint::number, printf_filtered(), VEC_iterate, and VEC_length.
Referenced by initialize_syscall_catchpoint_ops().
|
static |
Definition at line 290 of file break-catch-syscall.c.
References value_print_options::addressprint, annotate_field(), current_uiout, bp_location::gdbarch, get_syscall_by_number(), get_user_print_options(), breakpoint::loc, syscall::name, ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), VEC_iterate, VEC_length, xfree(), and xstrprintf().
Referenced by initialize_syscall_catchpoint_ops().
|
static |
Definition at line 388 of file break-catch-syscall.c.
References fprintf_unfiltered(), bp_location::gdbarch, get_syscall_by_number(), breakpoint::loc, syscall::name, syscall::number, print_recreate_thread(), and VEC_iterate.
Referenced by initialize_syscall_catchpoint_ops().
|
static |
Definition at line 160 of file break-catch-syscall.c.
References catch_syscall_inferior_data::any_syscall_count, current_inferior(), get_catch_syscall_inferior_data(), inferior_ptid, bp_location::owner, ptid_get_pid(), target_set_syscall_catchpoint, VEC_address, VEC_index, VEC_iterate, VEC_length, and VEC_replace.
Referenced by initialize_syscall_catchpoint_ops().
|
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 |
Definition at line 443 of file break-catch-syscall.c.
References _, discard_cleanups(), error(), get_syscall_by_name(), get_syscall_by_number(), int, make_cleanup(), syscall::number, skip_spaces(), target_gdbarch(), UNKNOWN_SYSCALL, VEC_cleanup, and VEC_safe_push.
Referenced by catch_syscall_command_1(), and VEC().
|
static |
Definition at line 594 of file break-catch-syscall.c.
References get_current_arch(), get_syscall_names(), VEC(), and xfree().
initialize_file_ftype _initialize_break_catch_syscall |
Definition at line 637 of file break-catch-syscall.c.
Referenced by initialize_all_files().
|
static |
Definition at line 417 of file break-catch-syscall.c.
Referenced by catch_syscall_command_1(), initialize_syscall_catchpoint_ops(), and syscall_catchpoint_p().
|
static |
Definition at line 64 of file break-catch-syscall.c.