GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include <ctype.h>
#include "hashtab.h"
#include "symtab.h"
#include "frame.h"
#include "breakpoint.h"
#include "tracepoint.h"
#include "gdbtypes.h"
#include "expression.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "value.h"
#include "command.h"
#include "inferior.h"
#include "infrun.h"
#include "gdbthread.h"
#include "target.h"
#include "language.h"
#include "gdb-demangle.h"
#include "filenames.h"
#include "annotate.h"
#include "symfile.h"
#include "objfiles.h"
#include "source.h"
#include "linespec.h"
#include "completer.h"
#include "gdb.h"
#include "ui-out.h"
#include "cli/cli-script.h"
#include "block.h"
#include "solib.h"
#include "solist.h"
#include "observer.h"
#include "memattr.h"
#include "ada-lang.h"
#include "top.h"
#include "valprint.h"
#include "jit.h"
#include "parser-defs.h"
#include "gdb_regex.h"
#include "probe.h"
#include "cli/cli-utils.h"
#include "continuations.h"
#include "stack.h"
#include "skip.h"
#include "ax-gdb.h"
#include "dummy-frame.h"
#include "interps.h"
#include "format.h"
#include "readline/readline.h"
#include "readline/history.h"
#include "mi/mi-common.h"
#include "extension.h"
Go to the source code of this file.
Classes | |
struct | counted_command_line |
struct | commands_info |
struct | breakpoint_objfile_data |
struct | captured_breakpoint_query_args |
struct | lang_and_radix |
struct | fork_catchpoint |
struct | solib_catchpoint |
struct | exec_catchpoint |
struct | until_break_command_continuation_args |
struct | disp_data |
Macros | |
#define | ALL_BREAKPOINTS(B) for (B = breakpoint_chain; B; B = B->next) |
#define | ALL_BREAKPOINTS_SAFE(B, TMP) |
#define | ALL_BP_LOCATIONS(B, BP_TMP) |
#define | ALL_BP_LOCATIONS_AT_ADDR(BP_LOCP_TMP, BP_LOCP_START, ADDRESS) |
#define | ALL_TRACEPOINTS(B) |
#define | NUM_LONGJMP_NAMES ARRAY_SIZE(longjmp_names) |
#define | WP_DELETED 1 |
#define | WP_VALUE_CHANGED 2 |
#define | WP_VALUE_NOT_CHANGED 3 |
#define | WP_IGNORE 4 |
#define | BP_TEMPFLAG 1 |
#define | BP_HARDWAREFLAG 2 |
#define | internal_error_pure_virtual_called() gdb_assert_not_reached ("pure virtual function called") |
#define | BREAK_ARGS_HELP(command) command" [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] [if CONDITION]\n\PROBE_MODIFIER shall be present if the command is to be placed in a\n\probe point. Accepted values are `-probe' (for a generic, automatically\n\guessed probe type), `-probe-stap' (for a SystemTap probe) or \n\`-probe-dtrace' (for a DTrace probe).\n\LOCATION may be a line number, function name, or \"*\" and an address.\n\If a line number is specified, break at start of code for that line.\n\If a function is specified, break at start of code for that function.\n\If an address is specified, break at that exact address.\n\With no LOCATION, uses current execution address of the selected\n\stack frame. This is useful for breaking on return to a stack frame.\n\\n\THREADNUM is the number from \"info threads\".\n\CONDITION is a boolean expression.\n\\n\Multiple breakpoints at one place are permitted, and useful if their\n\conditions are different.\n\\n\Do \"help breakpoints\" for info on other commands dealing with breakpoints." |
Enumerations | |
enum | exception_event_kind { EX_EVENT_THROW, EX_EVENT_RETHROW, EX_EVENT_CATCH, EX_EVENT_THROW, EX_EVENT_RETHROW, EX_EVENT_CATCH } |
enum | insertion_state_t { mark_inserted, mark_uninserted } |
enum | ugll_insert_mode { UGLL_DONT_INSERT, UGLL_MAY_INSERT, UGLL_INSERT } |
enum | catch_fork_kind { catch_fork_temporary, catch_vfork_temporary, catch_fork_permanent, catch_vfork_permanent } |
#define ALL_BP_LOCATIONS | ( | B, | |
BP_TMP | |||
) |
Definition at line 568 of file breakpoint.c.
Referenced by bp_location_target_extensions_update(), breakpoint_free_objfile(), breakpoint_here_p(), breakpoint_program_space_exit(), detach_breakpoints(), disable_breakpoints_in_shlibs(), disable_breakpoints_in_unloaded_shlib(), insert_bp_location(), insert_breakpoint_locations(), iterate_over_bp_locations(), mark_breakpoints_out(), reattach_breakpoints(), remove_breakpoints(), remove_breakpoints_pid(), set_condition_evaluation_mode(), update_breakpoints_after_exec(), update_global_location_list(), and update_inserted_breakpoint_locations().
#define ALL_BP_LOCATIONS_AT_ADDR | ( | BP_LOCP_TMP, | |
BP_LOCP_START, | |||
ADDRESS | |||
) |
Definition at line 579 of file breakpoint.c.
Referenced by breakpoint_inserted_here_p(), build_target_command_list(), build_target_condition_list(), force_breakpoint_reinsertion(), hardware_breakpoint_inserted_here_p(), and software_breakpoint_inserted_here_p().
Definition at line 557 of file breakpoint.c.
Referenced by bpstat_check_watchpoint(), bpstat_should_step(), bpstat_stop_status(), breakpoint_1(), breakpoint_hit_catch_solib(), clear_breakpoint_hit_counts(), clear_command(), condition_command(), delete_breakpoint(), delete_command(), describe_other_breakpoints(), disable_breakpoints_in_freed_objfile(), disable_command(), disable_overlay_breakpoints(), disable_watchpoints_before_interactive_call_start(), do_captured_breakpoint_query(), enable_command(), enable_overlay_breakpoints(), enable_watchpoints_after_interactive_call_stop(), find_location_by_number(), get_breakpoint(), hardware_watchpoint_inserted_in_range(), hw_breakpoint_used_count(), hw_watchpoint_used_count_others(), insert_breakpoint_locations(), insert_breakpoints(), invalidate_bp_value_on_memory_change(), pc_at_non_inline_function(), save_breakpoints(), set_ignore_count(), set_longjmp_breakpoint_for_call_dummy(), single_step_breakpoint_inserted_here_p(), update_dprintf_commands(), update_global_location_list(), VEC(), and watchpoints_triggered().
#define ALL_BREAKPOINTS_SAFE | ( | B, | |
TMP | |||
) |
Definition at line 559 of file breakpoint.c.
Referenced by breakpoint_auto_delete(), breakpoint_init_inferior(), breakpoint_program_space_exit(), breakpoint_re_set(), check_longjmp_breakpoint_for_call_dummy(), delete_command(), delete_longjmp_breakpoint(), delete_longjmp_breakpoint_at_next_stop(), delete_std_terminate_breakpoint(), delete_trace_command(), iterate_over_breakpoints(), map_breakpoint_numbers(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_solib_event_breakpoints_at_next_stop(), remove_thread_event_breakpoints(), remove_threaded_breakpoints(), set_longjmp_breakpoint(), set_std_terminate_breakpoint(), and update_breakpoints_after_exec().
#define ALL_TRACEPOINTS | ( | B | ) |
Definition at line 589 of file breakpoint.c.
Referenced by delete_trace_command(), download_tracepoint_locations(), get_tracepoint(), get_tracepoint_by_number(), get_tracepoint_by_number_on_target(), and trace_pass_command().
#define BP_HARDWAREFLAG 2 |
Definition at line 4998 of file breakpoint.c.
Referenced by break_command_1(), hbreak_command(), and thbreak_command().
#define BP_TEMPFLAG 1 |
Definition at line 4997 of file breakpoint.c.
Referenced by break_command_1(), tbreak_command(), and thbreak_command().
#define BREAK_ARGS_HELP | ( | command | ) | command" [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] [if CONDITION]\n\PROBE_MODIFIER shall be present if the command is to be placed in a\n\probe point. Accepted values are `-probe' (for a generic, automatically\n\guessed probe type), `-probe-stap' (for a SystemTap probe) or \n\`-probe-dtrace' (for a DTrace probe).\n\LOCATION may be a line number, function name, or \"*\" and an address.\n\If a line number is specified, break at start of code for that line.\n\If a function is specified, break at start of code for that function.\n\If an address is specified, break at that exact address.\n\With no LOCATION, uses current execution address of the selected\n\stack frame. This is useful for breaking on return to a stack frame.\n\\n\THREADNUM is the number from \"info threads\".\n\CONDITION is a boolean expression.\n\\n\Multiple breakpoints at one place are permitted, and useful if their\n\conditions are different.\n\\n\Do \"help breakpoints\" for info on other commands dealing with breakpoints." |
Definition at line 15446 of file breakpoint.c.
Referenced by _initialize_breakpoint().
#define internal_error_pure_virtual_called | ( | ) | gdb_assert_not_reached ("pure virtual function called") |
Definition at line 12639 of file breakpoint.c.
Referenced by base_breakpoint_breakpoint_hit(), base_breakpoint_create_breakpoints_sal(), base_breakpoint_create_sals_from_address(), base_breakpoint_decode_linespec(), base_breakpoint_insert_location(), base_breakpoint_print_it(), base_breakpoint_print_mention(), base_breakpoint_print_recreate(), base_breakpoint_remove_location(), base_breakpoint_resources_needed(), and base_breakpoint_works_in_software_mode().
#define NUM_LONGJMP_NAMES ARRAY_SIZE(longjmp_names) |
Definition at line 3333 of file breakpoint.c.
Referenced by create_longjmp_master_breakpoint().
#define WP_DELETED 1 |
Definition at line 4989 of file breakpoint.c.
Referenced by bpstat_check_watchpoint(), and watchpoint_check().
#define WP_IGNORE 4 |
Definition at line 4995 of file breakpoint.c.
Referenced by bpstat_check_watchpoint(), and watchpoint_check().
#define WP_VALUE_CHANGED 2 |
Definition at line 4991 of file breakpoint.c.
Referenced by bpstat_check_watchpoint(), and watchpoint_check().
#define WP_VALUE_NOT_CHANGED 3 |
Definition at line 4993 of file breakpoint.c.
Referenced by bpstat_check_watchpoint(), and watchpoint_check().
enum catch_fork_kind |
Enumerator | |
---|---|
catch_fork_temporary | |
catch_vfork_temporary | |
catch_fork_permanent | |
catch_vfork_permanent |
Definition at line 11577 of file breakpoint.c.
enum exception_event_kind |
Enumerator | |
---|---|
EX_EVENT_THROW | |
EX_EVENT_RETHROW | |
EX_EVENT_CATCH | |
EX_EVENT_THROW | |
EX_EVENT_RETHROW | |
EX_EVENT_CATCH |
Definition at line 82 of file breakpoint.c.
enum insertion_state_t |
Enumerator | |
---|---|
mark_inserted | |
mark_uninserted |
Definition at line 188 of file breakpoint.c.
enum ugll_insert_mode |
Enumerator | |
---|---|
UGLL_DONT_INSERT | |
UGLL_MAY_INSERT | |
UGLL_INSERT |
Definition at line 235 of file breakpoint.c.
void _initialize_breakpoint | ( | void | ) |
Definition at line 15759 of file breakpoint.c.
References _, add_abbrev_prefix_cmd(), add_alias_cmd(), add_catch_command(), add_cmd(), add_com(), add_com_alias(), add_info(), add_info_alias(), add_prefix_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_string_cmd(), add_setshow_zinteger_cmd(), agent_printf_command(), AUTO_BOOLEAN_AUTO, awatch_command(), BREAK_ARGS_HELP, break_command(), break_range_command(), breakpoint_about_to_proceed(), breakpoints_info(), catch_command(), catch_exec_command_1(), catch_fork_command_1(), catch_fork_permanent, catch_fork_temporary, catch_load_command_1(), CATCH_PERMANENT, CATCH_TEMPORARY, catch_unload_command_1(), catch_vfork_permanent, catch_vfork_temporary, class_alias, class_breakpoint, class_info, class_maintenance, class_run, class_support, class_trace, class_vars, clear_command(), cmdlist, commands_command(), condition_command(), dbx_commands, delete_command(), delete_trace_command(), deletelist, deprecate_cmd(), disable_breakpoints_in_freed_objfile(), disable_breakpoints_in_unloaded_shlib(), disable_command(), disable_trace_command(), disablelist, dprintf_command(), enable_command(), enable_count_command(), enable_delete_command(), enable_once_command(), enable_trace_command(), enablelist, free_breakpoint_probes(), ftrace_command(), hbreak_command(), ignore_command(), initialize_breakpoint_ops(), invalidate_bp_value_on_memory_change(), maintenance_info_breakpoints(), maintenanceinfolist, no_class, observer_attach_about_to_proceed(), observer_attach_free_objfile(), observer_attach_memory_changed(), observer_attach_solib_unloaded(), observer_attach_thread_exit(), remove_threaded_breakpoints(), rwatch_command(), save_breakpoints_command(), save_command(), save_tracepoints_command(), set_breakpoint_cmd(), set_cmd_completer(), set_condition_evaluation_mode(), setlist, show_always_inserted_mode(), show_automatic_hardware_breakpoints(), show_breakpoint_cmd(), show_can_use_hw_watchpoints(), show_condition_evaluation_mode(), show_pending_break_support(), showlist, stop_command(), stopat_command(), stopin_command(), stoplist, strace_command(), tbreak_command(), tcatch_command(), thbreak_command(), trace_command(), trace_pass_command(), tracepoints_info(), update_dprintf_commands(), watch_command(), and watchpoints_info().
void add_catch_command | ( | char * | name, |
char * | docstring, | ||
cmd_sfunc_ftype * | sfunc, | ||
completer_ftype * | completer, | ||
void * | user_data_catch, | ||
void * | user_data_tcatch | ||
) |
Definition at line 15474 of file breakpoint.c.
References add_cmd(), class_breakpoint, set_cmd_completer(), set_cmd_context(), and set_cmd_sfunc().
Referenced by _initialize_ada_language(), _initialize_break_catch_sig(), _initialize_break_catch_syscall(), _initialize_break_catch_throw(), and _initialize_breakpoint().
|
static |
Definition at line 8861 of file breakpoint.c.
References bp_location::address, adjust_breakpoint_address(), allocate_bp_location(), bp_loc_is_permanent(), symtab_and_line::explicit_line, symtab_and_line::explicit_pc, gdb_assert, bp_location::gdbarch, breakpoint::gdbarch, get_sal_arch(), symtab_and_line::line, bp_location::line_number, breakpoint::loc, bp_location::next, bound_probe::objfile, symtab_and_line::objfile, symtab_and_line::pc, bp_location::permanent, bound_probe::probe, bp_location::probe, symtab_and_line::probe, bp_location::pspace, symtab_and_line::pspace, bp_location::requested_address, bp_location::section, symtab_and_line::section, set_breakpoint_location_function(), bp_location::symtab, symtab_and_line::symtab, and breakpoint::type.
Referenced by init_breakpoint_sal(), init_raw_breakpoint(), insert_single_step_breakpoint(), and update_breakpoint_locations().
Definition at line 8366 of file breakpoint.c.
References _, solib_catchpoint::base, bp_disabled, bp_enabled, catch_solib_breakpoint_ops, solib_catchpoint::compiled, discard_cleanups(), breakpoint::enable_state, err, error(), get_current_arch(), get_regcomp_error(), init_catchpoint(), install_breakpoint(), solib_catchpoint::is_load, make_cleanup(), solib_catchpoint::regex, skip_spaces(), and xfree().
Referenced by catch_load_or_unload(), and mi_catch_load_unload().
|
static |
Definition at line 7257 of file breakpoint.c.
References breakpoint_chain, and breakpoint::next.
Referenced by install_breakpoint(), new_single_step_breakpoint(), set_raw_breakpoint(), and set_raw_breakpoint_without_location().
|
static |
Definition at line 14057 of file breakpoint.c.
References bp_disabled, bp_static_tracepoint, CATCH, END_CATCH, gdb_exception::error, exception_none, find_condition_and_thread(), gdb_assert, symtabs_and_lines::nelts, NOT_FOUND_ERROR, symtab_and_line::pc, gdb_exception::reason, resolve_sal_pc(), RETURN_MASK_ERROR, symtabs_and_lines::sals, strace_marker_p(), throw_exception(), TRY, and update_static_tracepoint().
Referenced by breakpoint_re_set_default().
|
static |
Definition at line 7105 of file breakpoint.c.
References bp_access_watchpoint, bp_catchpoint, bp_hardware_watchpoint, bp_read_watchpoint, bp_single_step, bp_watchpoint, breakpoint_adjustment_warning(), gdbarch_adjust_breakpoint_address(), and gdbarch_adjust_breakpoint_address_p().
|
static |
Definition at line 10026 of file breakpoint.c.
Referenced by _initialize_breakpoint().
|
static |
Definition at line 13730 of file breakpoint.c.
References program_space::executing_startup, breakpoint::loc, bp_location::next, bp_location::pspace, and bp_location::shlib_disabled.
Referenced by update_breakpoint_locations().
|
static |
Definition at line 715 of file breakpoint.c.
References counted_command_line::commands, counted_command_line::refc, and xmalloc().
Referenced by breakpoint_set_commands(), and do_map_commands_command().
|
static |
Definition at line 7221 of file breakpoint.c.
References breakpoint_ops::allocate_location, and breakpoint::ops.
Referenced by add_location_to_breakpoint(), momentary_breakpoint_from_master(), and update_watchpoint().
|
static |
Definition at line 13744 of file breakpoint.c.
References bp_location::function_name, name, bp_location::next, streq(), xcalloc(), and xfree().
Referenced by update_breakpoint_locations().
|
static |
Definition at line 11399 of file breakpoint.c.
References hw_access, and watch_maybe_just_location().
Referenced by _initialize_breakpoint().
Definition at line 11393 of file breakpoint.c.
References hw_access, and watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
|
static |
Definition at line 12756 of file breakpoint.c.
|
static |
Definition at line 12624 of file breakpoint.c.
References init_bp_location().
|
static |
Definition at line 12655 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12664 of file breakpoint.c.
|
static |
Definition at line 12723 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12713 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12739 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12613 of file breakpoint.c.
References decref_counted_command_line(), and xfree().
|
static |
Definition at line 12748 of file breakpoint.c.
|
static |
Definition at line 12643 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12688 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12701 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12694 of file breakpoint.c.
|
static |
Definition at line 12707 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12634 of file breakpoint.c.
|
static |
Definition at line 12649 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12682 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12673 of file breakpoint.c.
References internal_error_pure_virtual_called.
|
static |
Definition at line 12819 of file breakpoint.c.
References bp_location::address, program_space::aspace, breakpoint_address_match(), target_waitstatus::kind, overlay_debugging, bp_location::pspace, bp_location::section, section_is_mapped(), section_is_overlay(), target_waitstatus::sig, TARGET_WAITKIND_STOPPED, and target_waitstatus::value.
Referenced by dprintf_breakpoint_hit(), and initialize_breakpoint_ops().
|
static |
Definition at line 12959 of file breakpoint.c.
References create_breakpoints_sal_default().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12949 of file breakpoint.c.
References create_sals_from_address_default().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12980 of file breakpoint.c.
References decode_linespec_default().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12801 of file breakpoint.c.
References bp_loc_hardware_breakpoint, bp_location::gdbarch, bp_location::loc_type, bp_location::target_info, target_insert_breakpoint(), and target_insert_hw_breakpoint.
Referenced by bkpt_probe_insert_location(), and initialize_breakpoint_ops().
|
static |
Definition at line 12865 of file breakpoint.c.
References bp_location::address, annotate_breakpoint(), async_reason_lookup(), bpstats::bp_location_at, bpdisp_text(), breakpoint_adjustment_warning(), bpstats::breakpoint_at, current_uiout, disp_del, breakpoint::disposition, EXEC_ASYNC_BREAKPOINT_HIT, gdb_assert, breakpoint::number, PRINT_SRC_AND_LOC, bp_location::requested_address, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12900 of file breakpoint.c.
References _, bp_breakpoint, bp_dprintf, bp_gnu_ifunc_resolver, bp_hardware_breakpoint, current_uiout, disp_del, breakpoint::disposition, breakpoint::number, printf_filtered(), say_where(), breakpoint::type, and ui_out_is_mi_like_p().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12929 of file breakpoint.c.
References _, breakpoint::addr_string, bp_breakpoint, bp_hardware_breakpoint, disp_del, breakpoint::disposition, fprintf_unfiltered(), internal_error(), print_recreate_thread(), and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13183 of file breakpoint.c.
References linespec_result::addr_string, linespec_sals::canonical, parse_probes(), linespec_sals::sals, and VEC_safe_push.
Referenced by initialize_breakpoint_ops(), and tracepoint_probe_create_sals_from_address().
|
static |
Definition at line 13199 of file breakpoint.c.
References _, error(), parse_probes(), and symtabs_and_lines::sals.
Referenced by initialize_breakpoint_ops(), and tracepoint_probe_decode_linespec().
|
static |
Definition at line 13153 of file breakpoint.c.
References bkpt_insert_location(), bp_location::gdbarch, bound_probe::objfile, probe::pops, bound_probe::probe, bp_location::probe, and probe_ops::set_semaphore.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13171 of file breakpoint.c.
References bkpt_remove_location(), probe_ops::clear_semaphore, bp_location::gdbarch, bound_probe::objfile, probe::pops, bound_probe::probe, and bp_location::probe.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12787 of file breakpoint.c.
References breakpoint::addr_string, breakpoint_re_set_default(), and delete_breakpoint().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12810 of file breakpoint.c.
References bp_loc_hardware_breakpoint, bp_location::gdbarch, bp_location::loc_type, bp_location::target_info, target_remove_breakpoint(), and target_remove_hw_breakpoint.
Referenced by bkpt_probe_remove_location(), and initialize_breakpoint_ops().
|
static |
Definition at line 12857 of file breakpoint.c.
References bp_hardware_breakpoint, gdb_assert, bp_location::owner, and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 5959 of file breakpoint.c.
References bp_location::cond_bytecode, condition_evaluation_both, condition_evaluation_host, condition_evaluation_target, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), breakpoint::loc, bp_location::next, and target_supports_evaluation_of_breakpoint_conditions.
Referenced by print_breakpoint_location(), and print_one_breakpoint_location().
|
static |
Definition at line 8961 of file breakpoint.c.
References bp_location::address, breakpoint_address_is_meaningful(), do_cleanups(), gdb_assert, bp_location::gdbarch, bp_location::owner, program_breakpoint_here_p(), bp_location::pspace, save_current_space_and_thread(), and switch_to_program_space_and_thread().
Referenced by add_location_to_breakpoint().
Definition at line 11939 of file breakpoint.c.
References bp_location::address, program_space::num, breakpoint::number, bp_location::owner, bp_location::permanent, and bp_location::pspace.
Referenced by update_global_location_list().
Definition at line 914 of file breakpoint.c.
References bp_location::address.
Referenced by get_first_locp_gte_addr().
|
static |
Definition at line 5995 of file breakpoint.c.
References bp_location::cond_bytecode, condition_evaluation_host, condition_evaluation_target, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), bp_location::owner, and target_supports_evaluation_of_breakpoint_conditions.
Referenced by print_breakpoint_location().
|
static |
Definition at line 12593 of file breakpoint.c.
References free_agent_expr(), VEC_free, and xfree().
|
static |
Definition at line 1456 of file breakpoint.c.
References bp_loc_software_breakpoint, bp_location::inserted, bp_location::loc_type, bp_target_info::shadow_len, and bp_location::target_info.
Referenced by bp_location_target_extensions_update(), and breakpoint_xfer_memory().
|
static |
Definition at line 4236 of file breakpoint.c.
References bp_location::address, program_space::aspace, breakpoint_address_match(), bp_location::inserted, overlay_debugging, bp_location::pspace, bp_location::section, section_is_mapped(), and section_is_overlay().
Referenced by breakpoint_inserted_here_p(), hardware_breakpoint_inserted_here_p(), and software_breakpoint_inserted_here_p().
|
static |
Definition at line 11975 of file breakpoint.c.
References bp_location::address, ALL_BP_LOCATIONS, bp_location_has_shadow(), gdb_assert, bp_target_info::placed_address, bp_target_info::shadow_len, and bp_location::target_info.
Referenced by update_global_location_list().
Definition at line 383 of file breakpoint.c.
References int.
Referenced by bkpt_print_it(), print_it_catch_exec(), print_it_catch_fork(), print_it_catch_solib(), print_it_catch_syscall(), print_it_catch_vfork(), print_it_exception(), print_it_exception_catchpoint(), print_it_ranged_breakpoint(), and print_one_breakpoint_location().
|
static |
Definition at line 4890 of file breakpoint.c.
References bpstats::bp_location_at, bpstats::breakpoint_at, bpstats::commands, incref_bp_location(), bpstats::next, bpstats::old_val, bp_location::owner, bpstats::print_it, print_it_normal, and xmalloc().
Referenced by bpstat_stop_status().
Definition at line 5910 of file breakpoint.c.
References bpstats::next, and bpstats::stop.
Referenced by bpstat_stop_status(), handle_inferior_event_1(), and handle_syscall_event().
Definition at line 5331 of file breakpoint.c.
References _, ada_get_task_number(), block_innermost_frame(), bpstats::bp_location_at, bpstats::breakpoint_at, breakpoint_cond_eval(), breakpoint_ext_lang_cond_says_stop(), catch_errors(), bp_location::cond, watchpoint::cond_exp, watchpoint::cond_exp_valid_block, disp_del_at_next_stop, breakpoint::disposition, breakpoint::frame_id, frame_id_eq(), frame_id_p(), gdb_assert, get_current_frame(), get_stack_frame_id(), breakpoint::hit_count, breakpoint::ignore_count, is_watchpoint(), observer_notify_breakpoint_modified(), pid_to_thread_id(), RETURN_MASK_ALL, select_frame(), bpstats::stop, breakpoint::task, breakpoint::thread, value_free_to_mark(), value_mark(), and warning().
Referenced by bpstat_stop_status().
|
static |
Definition at line 5153 of file breakpoint.c.
References breakpoint_ops::breakpoint_hit, gdb_assert, breakpoint::ops, and bp_location::owner.
Referenced by bpstat_stop_status(), and pc_at_non_inline_function().
|
static |
Definition at line 5169 of file breakpoint.c.
References _, ALL_BREAKPOINTS, watchpoint::base, bp_access_watchpoint, bp_hardware_watchpoint, bpstats::bp_location_at, bp_read_watchpoint, bp_watchpoint, bpstats::breakpoint_at, catch_errors(), do_cleanups(), gdb_assert, hw_access, hw_read, make_cleanup(), breakpoint::number, bpstats::print_it, print_it_done, print_it_noop, printf_filtered(), RETURN_MASK_ALL, bpstats::stop, breakpoint::type, watch_triggered_unknown, watch_triggered_yes, watchpoint_check(), watchpoint_del_at_next_stop(), watchpoint::watchpoint_triggered, bp_location::watchpoint_type, WP_DELETED, WP_IGNORE, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, xfree(), and xstrprintf().
Referenced by check_status_watchpoint().
void bpstat_clear | ( | bpstat * | bsp | ) |
Definition at line 4381 of file breakpoint.c.
References bpstat_free(), and bpstats::next.
Referenced by clear_proceed_status_thread(), clear_thread_inferior_resources(), discard_infcall_control_state(), handle_signal_stop(), and restore_infcall_control_state().
void bpstat_clear_actions | ( | void | ) |
Definition at line 4508 of file breakpoint.c.
References bpstats::commands, thread_info::control, decref_counted_command_line(), find_thread_ptid(), inferior_ptid, bpstats::next, null_ptid, bpstats::old_val, ptid_equal(), thread_control_state::stop_bpstat, and value_free().
Referenced by do_bpstat_clear_actions_cleanup(), and inferior_event_handler().
Definition at line 4402 of file breakpoint.c.
References bpstats::bp_location_at, bpstats::commands, incref_bp_location(), incref_counted_command_line(), bpstats::next, bpstats::old_val, release_value(), value_copy(), and xmalloc().
Referenced by save_infcall_control_state().
void bpstat_do_actions | ( | void | ) |
Definition at line 4668 of file breakpoint.c.
References bpstat_do_actions_1(), discard_cleanups(), inferior_ptid, inferior_thread(), is_executing(), is_exited(), make_bpstat_clear_actions_cleanup(), null_ptid, ptid_equal(), and target_has_execution.
Referenced by command_handler(), command_loop(), execute_gdb_command(), inferior_event_handler(), and mi_execute_command().
Definition at line 4579 of file breakpoint.c.
References cleanup_executing_breakpoints(), command_line_is_silent(), counted_command_line::commands, bpstats::commands, do_cleanups(), execute_control_command(), interpreter_async, make_cleanup(), make_cleanup_decref_counted_command_line(), command_line::next, bpstats::next, prevent_dont_repeat(), and target_can_async_p.
Referenced by bpstat_do_actions(), and dprintf_after_condition_true().
Definition at line 4453 of file breakpoint.c.
References bpstats::breakpoint_at, breakpoint_ops::explains_signal, bpstats::next, and breakpoint::ops.
Referenced by handle_signal_stop().
bpstat bpstat_find_breakpoint | ( | bpstat | bsp, |
struct breakpoint * | breakpoint | ||
) |
Definition at line 4437 of file breakpoint.c.
References bpstats::breakpoint_at, and bpstats::next.
Referenced by finish_command_continuation().
|
static |
Definition at line 4368 of file breakpoint.c.
References bpstats::bp_location_at, bpstats::commands, decref_bp_location(), decref_counted_command_line(), bpstats::old_val, value_free(), and xfree().
Referenced by bpstat_clear().
Definition at line 4486 of file breakpoint.c.
References bpstats::next, and breakpoint::number.
Referenced by continue_command(), and program_info().
enum print_stop_action bpstat_print | ( | bpstat | bs, |
int | kind | ||
) |
Definition at line 4839 of file breakpoint.c.
References bpstats::next, print_bp_stop_message(), PRINT_NOTHING, print_solib_event(), PRINT_SRC_AND_LOC, PRINT_SRC_ONLY, PRINT_UNKNOWN, and TARGET_WAITKIND_LOADED.
Referenced by print_stop_event().
|
static |
Definition at line 12517 of file breakpoint.c.
References bpstats::breakpoint_at, bpstats::next, and bpstats::old_val.
Referenced by bpstat_remove_breakpoint_callback().
|
static |
Definition at line 12532 of file breakpoint.c.
References bpstat_remove_bp_location(), thread_info::control, and thread_control_state::stop_bpstat.
Referenced by delete_breakpoint().
int bpstat_should_step | ( | void | ) |
Definition at line 5899 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_watchpoint, breakpoint_enabled(), breakpoint::loc, and breakpoint::type.
Referenced by currently_stepping(), and resume().
bpstat bpstat_stop_status | ( | struct address_space * | aspace, |
CORE_ADDR | bp_addr, | ||
ptid_t | ptid, | ||
const struct target_waitstatus * | ws | ||
) |
Definition at line 5493 of file breakpoint.c.
References breakpoint_ops::after_condition_true, ALL_BREAKPOINTS, bp_disabled, bp_hardware_watchpoint, bp_shlib_event, bp_watchpoint_scope, bpstat_alloc(), bpstat_causes_stop(), bpstat_check_breakpoint_conditions(), bpstat_check_location(), bpstats::breakpoint_at, breakpoint_enabled(), breakpoint_location_address_match(), breakpoint_ops::check_status, command_line_is_silent(), counted_command_line::commands, breakpoint::commands, bpstats::commands, disp_disable, breakpoint::disposition, breakpoint::enable_count, breakpoint::enable_state, bp_location::enabled, handle_solib_event(), breakpoint::hit_count, incref_counted_command_line(), is_hardware_watchpoint(), breakpoint::loc, need_moribund_for_location_type(), bp_location::next, bpstats::next, observer_notify_breakpoint_modified(), breakpoint::ops, bpstats::print, bpstats::print_it, print_it_noop, breakpoint::related_breakpoint, bp_location::shlib_disabled, breakpoint::silent, bpstats::stop, target_supports_stopped_by_hw_breakpoint, target_supports_stopped_by_sw_breakpoint, breakpoint::type, UGLL_DONT_INSERT, UGLL_MAY_INSERT, update_global_location_list(), update_watchpoint(), VEC_iterate, watch_triggered_yes, and watchpoint::watchpoint_triggered.
Referenced by handle_inferior_event_1(), handle_signal_stop(), and handle_syscall_event().
struct bpstat_what bpstat_what | ( | bpstat | bs_head | ) |
Definition at line 5689 of file breakpoint.c.
References _, bp_access_watchpoint, bp_breakpoint, bp_call_dummy, bp_catchpoint, bp_dprintf, bp_exception, bp_exception_master, bp_exception_resume, bp_fast_tracepoint, bp_finish, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_none, bp_overlay_event, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, bp_watchpoint_scope, BPSTAT_WHAT_CLEAR_LONGJMP_RESUME, BPSTAT_WHAT_HP_STEP_RESUME, BPSTAT_WHAT_KEEP_CHECKING, BPSTAT_WHAT_SET_LONGJMP_RESUME, BPSTAT_WHAT_SINGLE, BPSTAT_WHAT_STEP_RESUME, BPSTAT_WHAT_STOP_NOISY, BPSTAT_WHAT_STOP_SILENT, bpstats::breakpoint_at, bpstat_what::call_dummy, debug_infrun, fprintf_unfiltered(), gdb_stdlog, gnu_ifunc_resolver_return_stop, gnu_ifunc_resolver_stop, handle_jit_event(), internal_error(), bpstat_what::is_longjmp, bpstat_what::main_action, max, bpstats::next, bpstats::print, bpstats::stop, STOP_NONE, STOP_STACK_DUMMY, STOP_STD_TERMINATE, and breakpoint::type.
Referenced by process_event_stop_test().
Definition at line 6078 of file breakpoint.c.
References _, bp_access_watchpoint, bp_breakpoint, bp_call_dummy, bp_catchpoint, bp_dprintf, bp_exception, bp_exception_master, bp_exception_resume, bp_fast_tracepoint, bp_finish, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_none, bp_overlay_event, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, bp_watchpoint_scope, int, internal_error(), and type.
Referenced by breakpoint_1(), create_breakpoint(), and print_one_breakpoint_location().
void break_command | ( | char * | arg, |
int | from_tty | ||
) |
Definition at line 9908 of file breakpoint.c.
References break_command_1().
Referenced by _initialize_breakpoint(), mi_cmd_break_commands(), and rbreak_command().
Definition at line 9820 of file breakpoint.c.
References bkpt_breakpoint_ops, bkpt_probe_breakpoint_ops, bp_breakpoint, bp_hardware_breakpoint, BP_HARDWAREFLAG, BP_TEMPFLAG, create_breakpoint(), get_current_arch(), and probe_linespec_to_ops().
Referenced by break_command(), hbreak_command(), stopat_command(), stopin_command(), tbreak_command(), and thbreak_command().
|
static |
Definition at line 10209 of file breakpoint.c.
References _, breakpoint::addr_string, breakpoint::addr_string_range_end, bp_hardware_breakpoint, decode_line_full(), DECODE_LINE_FUNFIRSTLINE, disp_donttouch, breakpoint::disposition, do_cleanups(), error(), find_breakpoint_range_end(), get_current_arch(), hbreak_command(), hw_breakpoint_used_count(), init_linespec_result(), bp_location::length, symtab_and_line::line, breakpoint::loc, make_cleanup(), make_cleanup_destroy_linespec_result(), mention(), symtabs_and_lines::nelts, breakpoint::number, observer_notify_breakpoint_created(), parse_breakpoint_sals(), symtab_and_line::pc, ranged_breakpoint_ops, linespec_sals::sals, symtabs_and_lines::sals, savestring(), set_breakpoint_count(), set_raw_breakpoint(), skip_spaces(), symtab_and_line::symtab, target_can_use_hardware_watchpoint, target_ranged_break_num_registers(), UGLL_MAY_INSERT, update_global_location_list(), VEC_empty, VEC_index, VEC_length, and xfree().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 6658 of file breakpoint.c.
References bp_location::address, value_print_options::addressprint, ALL_BREAKPOINTS, annotate_breakpoints_headers(), annotate_breakpoints_table(), annotate_breakpoints_table_end(), annotate_field(), bptype_string(), breakpoint_address_bits(), current_uiout, do_cleanups(), bp_location::gdbarch, get_user_print_options(), make_cleanup_ui_out_table_begin_end(), breakpoint::number, number_is_in_list(), parse_and_eval_long(), print_one_breakpoint(), QUIT, server_command, set_next_address(), breakpoint::type, ui_left, ui_noalign, ui_out_message(), ui_out_table_body(), ui_out_table_header(), and user_breakpoint_p().
Referenced by breakpoints_info(), maintenance_info_breakpoints(), tracepoints_info(), and watchpoints_info().
|
static |
Definition at line 4535 of file breakpoint.c.
References thread_info::control, thread_control_state::in_infcall, inferior_ptid, inferior_thread(), null_ptid, and ptid_equal().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 6580 of file breakpoint.c.
References bp_watchpoint, bp_location::gdbarch, gdbarch_addr_bit(), breakpoint::loc, bp_location::next, breakpoint::type, and bp_location::watchpoint_type.
Referenced by breakpoint_1().
|
static |
Definition at line 6939 of file breakpoint.c.
References bp_catchpoint, bp_watchpoint, and breakpoint::type.
Referenced by bp_loc_is_permanent(), and update_global_location_list().
int breakpoint_address_match | ( | struct address_space * | aspace1, |
CORE_ADDR | addr1, | ||
struct address_space * | aspace2, | ||
CORE_ADDR | addr2 | ||
) |
Definition at line 6993 of file breakpoint.c.
References gdbarch_has_global_breakpoints(), and target_gdbarch().
Referenced by bkpt_breakpoint_hit(), bp_location_inserted_here_p(), breakpoint_location_address_match(), breakpoint_locations_match(), one_breakpoint_xfer_memory(), and stepping_past_instruction_at().
|
static |
Definition at line 7007 of file breakpoint.c.
References gdbarch_has_global_breakpoints(), and target_gdbarch().
Referenced by breakpoint_hit_ranged_breakpoint(), and breakpoint_location_address_match().
|
static |
Definition at line 7082 of file breakpoint.c.
References _, hex_string_custom(), and warning().
Referenced by adjust_breakpoint_address(), and bkpt_print_it().
void breakpoint_auto_delete | ( | bpstat | bs | ) |
Definition at line 11914 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bpstats::breakpoint_at, delete_breakpoint(), disp_del, disp_del_at_next_stop, breakpoint::disposition, bpstats::next, and bpstats::stop.
Referenced by normal_stop(), and run_inferior_call().
struct command_line* breakpoint_commands | ( | struct breakpoint * | b | ) |
Definition at line 372 of file breakpoint.c.
References counted_command_line::commands, and breakpoint::commands.
Referenced by all_tracepoint_actions_and_cleanup(), bppy_get_commands(), gdbscm_breakpoint_commands(), and remote_download_tracepoint().
|
static |
Definition at line 4878 of file breakpoint.c.
References evaluate_expression(), value_free_to_mark(), value_mark(), and value_true().
Referenced by bpstat_check_breakpoint_conditions().
|
static |
Definition at line 526 of file breakpoint.c.
References translate_condition_evaluation_mode().
Referenced by gdb_evaluates_breakpoint_condition_p(), print_breakpoint_location(), print_one_breakpoint_location(), and show_condition_evaluation_mode().
|
static |
Definition at line 663 of file breakpoint.c.
References bp_enabled, and breakpoint::enable_state.
Referenced by bpstat_should_step(), bpstat_stop_status(), breakpoint_here_p(), disable_watchpoints_before_interactive_call_start(), hardware_watchpoint_inserted_in_range(), hw_breakpoint_used_count(), hw_watchpoint_use_count(), hw_watchpoint_used_count_others(), insert_breakpoint_locations(), remove_breakpoint_1(), and should_be_inserted().
void breakpoint_free_objfile | ( | struct objfile * | objfile | ) |
Definition at line 15561 of file breakpoint.c.
References ALL_BP_LOCATIONS, bp_location::symtab, and SYMTAB_OBJFILE.
Referenced by free_objfile().
int breakpoint_has_location_inserted_here | ( | struct breakpoint * | bp, |
struct address_space * | aspace, | ||
CORE_ADDR | pc | ||
) |
Definition at line 14842 of file breakpoint.c.
References breakpoint_location_address_match(), bp_location::inserted, breakpoint::loc, and bp_location::next.
Referenced by single_step_breakpoint_inserted_here_p(), and thread_has_single_step_breakpoint_here().
|
static |
Definition at line 6862 of file breakpoint.c.
References bp_location::address, breakpoint::loc, bp_location::next, overlay_debugging, bp_location::pspace, and bp_location::section.
Referenced by describe_other_breakpoints().
enum breakpoint_here breakpoint_here_p | ( | struct address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4187 of file breakpoint.c.
References ALL_BP_LOCATIONS, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, breakpoint_enabled(), breakpoint_location_address_match(), bp_location::loc_type, ordinary_breakpoint_here, overlay_debugging, bp_location::owner, bp_location::permanent, permanent_breakpoint_here, bp_location::section, section_is_mapped(), and section_is_overlay().
Referenced by crisv32_single_step_through_delay(), displaced_step_fixup(), mips_single_step_through_delay(), proceed(), resume(), thread_still_needs_step_over(), and tui_set_disassem_content().
|
static |
Definition at line 8529 of file breakpoint.c.
References exec_catchpoint::exec_pathname, target_waitstatus::execd_pathname, if(), target_waitstatus::kind, bp_location::owner, TARGET_WAITKIND_EXECD, and target_waitstatus::value.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 7944 of file breakpoint.c.
References fork_catchpoint::forked_inferior_pid, if(), target_waitstatus::kind, bp_location::owner, target_waitstatus::related_pid, TARGET_WAITKIND_FORKED, and target_waitstatus::value.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8200 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_shlib_event, if(), target_waitstatus::kind, bp_location::next, bp_location::owner, and TARGET_WAITKIND_LOADED.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8061 of file breakpoint.c.
References fork_catchpoint::forked_inferior_pid, if(), target_waitstatus::kind, bp_location::owner, target_waitstatus::related_pid, TARGET_WAITKIND_VFORKED, and target_waitstatus::value.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10035 of file breakpoint.c.
References bp_location::address, program_space::aspace, breakpoint_address_match_range(), target_waitstatus::kind, bp_location::length, bp_location::pspace, target_waitstatus::sig, TARGET_WAITKIND_STOPPED, and target_waitstatus::value.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10514 of file breakpoint.c.
References is_hardware_watchpoint(), bp_location::owner, watch_triggered_no, and watchpoint::watchpoint_triggered.
Referenced by initialize_breakpoint_ops().
void breakpoint_init_inferior | ( | enum inf_context | context | ) |
Definition at line 4080 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_access_watchpoint, bp_call_dummy, bp_hardware_watchpoint, bp_longjmp_call_dummy, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_step_resume, bp_watchpoint, bp_watchpoint_scope, current_program_space, decref_bp_location(), delete_breakpoint(), watchpoint::exp_valid_block, gdbarch_has_global_breakpoints(), inf_starting, breakpoint::loc, mark_breakpoints_out(), bp_location::pspace, target_gdbarch(), breakpoint::type, watchpoint::val, watchpoint::val_valid, value_free(), VEC_free, and VEC_iterate.
Referenced by follow_exec(), generic_mourn_inferior(), and init_wait_for_inferior().
int breakpoint_inserted_here_p | ( | struct address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4256 of file breakpoint.c.
References ALL_BP_LOCATIONS_AT_ADDR, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, bp_location_inserted_here_p(), and bp_location::loc_type.
Referenced by cancel_breakpoint(), handle_inferior_event_1(), record_check_stopped_by_breakpoint(), resume(), resume_stopped_resumed_lwps(), and status_callback().
|
static |
Definition at line 7022 of file breakpoint.c.
References bp_location::address, program_space::aspace, breakpoint_address_match(), breakpoint_address_match_range(), bp_location::length, and bp_location::pspace.
Referenced by bpstat_stop_status(), breakpoint_has_location_inserted_here(), breakpoint_here_p(), and moribund_breakpoint_here_p().
|
static |
Definition at line 7056 of file breakpoint.c.
References bp_location::address, program_space::aspace, breakpoint_address_match(), gdb_assert, is_hardware_watchpoint(), is_tracepoint(), bp_location::length, bp_location::owner, bp_location::pspace, tracepoint_locations_match(), and watchpoint_locations_match().
Referenced by update_breakpoint_locations(), and update_global_location_list().
void breakpoint_program_space_exit | ( | struct program_space * | pspace | ) |
Definition at line 2941 of file breakpoint.c.
References ALL_BP_LOCATIONS, ALL_BREAKPOINTS_SAFE, delete_breakpoint(), breakpoint::loc, bp_location::next, bp_location::owner, bp_location::pspace, breakpoint::pspace, UGLL_DONT_INSERT, and update_global_location_list().
Referenced by release_program_space().
void breakpoint_re_set | ( | void | ) |
Definition at line 14273 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, breakpoint_re_set_one(), catch_errors(), create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), current_language, do_cleanups(), input_radix, jit_breakpoint_re_set(), language_defn::la_language, make_cleanup(), breakpoint::number, RETURN_MASK_ALL, save_current_program_space(), set_language(), xfree(), and xstrprintf().
Referenced by clear_symtab_users(), enable_breakpoints_after_startup(), finish_new_objfile(), follow_exec(), follow_inferior_reset_breakpoints(), generic_load(), objfile_rebase(), objfile_relocate(), post_create_inferior(), reload_shared_libraries(), and solib_add().
|
static |
Definition at line 14143 of file breakpoint.c.
References breakpoint::addr_string, breakpoint::addr_string_range_end, addr_string_to_sals(), make_cleanup(), symtabs_and_lines::sals, update_breakpoint_locations(), and xfree().
Referenced by bkpt_re_set(), dprintf_re_set(), and tracepoint_re_set().
|
static |
Definition at line 14259 of file breakpoint.c.
References do_cleanups(), breakpoint::ops, prepare_re_set_context(), and breakpoint_ops::re_set.
Referenced by breakpoint_re_set().
void breakpoint_re_set_thread | ( | struct breakpoint * | b | ) |
Definition at line 14311 of file breakpoint.c.
References current_program_space, in_thread_list(), inferior_ptid, breakpoint::loc, pid_to_thread_id(), bp_location::pspace, and breakpoint::thread.
Referenced by follow_inferior_reset_breakpoints().
void breakpoint_retire_moribund | ( | void | ) |
Definition at line 12486 of file breakpoint.c.
References decref_bp_location(), bp_location::events_till_retirement, VEC_iterate, and VEC_unordered_remove.
Referenced by handle_inferior_event_1().
|
static |
Definition at line 9391 of file breakpoint.c.
References symtabs_and_lines::nelts, resolve_sal_pc(), and symtabs_and_lines::sals.
Referenced by create_breakpoint().
void breakpoint_set_commands | ( | struct breakpoint * | b, |
struct command_line * | commands | ||
) |
Definition at line 1261 of file breakpoint.c.
References alloc_counted_command_line(), breakpoint::commands, decref_counted_command_line(), observer_notify_breakpoint_modified(), and validate_commands_for_breakpoint().
Referenced by create_tracepoint_from_upload(), mi_cmd_break_commands(), trace_actions_command(), and update_dprintf_command_list().
void breakpoint_set_silent | ( | struct breakpoint * | b, |
int | silent | ||
) |
Definition at line 1276 of file breakpoint.c.
References observer_notify_breakpoint_modified(), and breakpoint::silent.
Referenced by bppy_set_silent(), and gdbscm_set_breakpoint_silent_x().
void breakpoint_set_task | ( | struct breakpoint * | b, |
int | task | ||
) |
Definition at line 1302 of file breakpoint.c.
References observer_notify_breakpoint_modified(), and breakpoint::task.
Referenced by bppy_set_task(), and gdbscm_set_breakpoint_task_x().
void breakpoint_set_thread | ( | struct breakpoint * | b, |
int | thread | ||
) |
Definition at line 1289 of file breakpoint.c.
References observer_notify_breakpoint_modified(), and breakpoint::thread.
Referenced by bppy_set_thread(), and gdbscm_set_breakpoint_thread_x().
void breakpoint_xfer_memory | ( | gdb_byte * | readbuf, |
gdb_byte * | writebuf, | ||
const gdb_byte * | writebuf_org, | ||
ULONGEST | memaddr, | ||
LONGEST | len | ||
) |
Definition at line 1581 of file breakpoint.c.
References _, bp_location::address, bp_location_count, bp_location_has_shadow(), bp_none, bp_location::gdbarch, breakpoint::number, one_breakpoint_xfer_memory(), bp_location::owner, bp_location::target_info, breakpoint::type, and warning().
Referenced by memory_xfer_partial().
|
static |
Definition at line 6831 of file breakpoint.c.
References breakpoint_1(), and default_collect_info().
Referenced by _initialize_breakpoint().
int breakpoints_should_be_inserted_now | ( | void | ) |
Definition at line 460 of file breakpoint.c.
References gdbarch_has_global_breakpoints(), target_gdbarch(), target_has_execution, and threads_are_executing().
Referenced by normal_stop(), remote_start_remote(), and update_global_location_list().
|
static |
Definition at line 2463 of file breakpoint.c.
References bp_location::address, ALL_BP_LOCATIONS_AT_ADDR, bp_dprintf, bp_enabled, bp_location::cmd_bytecode, breakpoint::enable_state, bp_location::enabled, breakpoint::extra_string, free_agent_expr(), is_breakpoint(), bp_location::needs_update, program_space::num, bp_location::owner, parse_cmd_to_aexpr(), bp_target_info::persist, bp_location::pspace, target_can_run_breakpoint_commands, bp_location::target_info, breakpoint::type, VEC_free, and VEC_safe_push.
Referenced by insert_bp_location().
|
static |
Definition at line 2270 of file breakpoint.c.
References bp_location::address, ALL_BP_LOCATIONS_AT_ADDR, bp_enabled, bp_location::cond, bp_location::cond_bytecode, breakpoint::enable_state, bp_location::enabled, free_agent_expr(), gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), bp_location::needs_update, program_space::num, bp_location::owner, parse_cond_to_aexpr(), bp_location::pspace, bp_location::target_info, target_supports_evaluation_of_breakpoint_conditions, VEC_free, and VEC_safe_push.
Referenced by insert_bp_location().
Definition at line 11269 of file breakpoint.c.
References check_typedef(), deprecated_value_modifiable(), is_scalar_type_recursive(), len, lval_memory, lval_register, not_lval, target_region_ok_for_hw_watchpoint, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRUCT, TYPE_LENGTH, value_address(), value_lazy(), VALUE_LVAL, value_next(), and value_type().
Referenced by update_watchpoint().
|
static |
Definition at line 11701 of file breakpoint.c.
Referenced by _initialize_breakpoint().
|
static |
Definition at line 11632 of file breakpoint.c.
References _, exec_catchpoint::base, catch_exec_breakpoint_ops, CATCH_TEMPORARY, ep_parse_optional_if_clause(), error(), exec_catchpoint::exec_pathname, get_cmd_context(), get_current_arch(), init_catchpoint(), install_breakpoint(), and skip_spaces().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 11585 of file breakpoint.c.
References _, catch_fork_breakpoint_ops, catch_fork_permanent, catch_fork_temporary, catch_vfork_breakpoint_ops, catch_vfork_permanent, catch_vfork_temporary, create_fork_vfork_event_catchpoint(), ep_parse_optional_if_clause(), error(), get_cmd_context(), get_current_arch(), and skip_spaces().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 8420 of file breakpoint.c.
References catch_load_or_unload().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 8408 of file breakpoint.c.
References add_solib_catchpoint(), CATCH_TEMPORARY, and get_cmd_context().
Referenced by catch_load_command_1(), and catch_unload_command_1().
|
static |
Definition at line 8427 of file breakpoint.c.
References catch_load_or_unload().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 9407 of file breakpoint.c.
References _, do_cleanups(), error(), gdbarch_fast_tracepoint_valid_at(), get_sal_arch(), make_cleanup(), symtabs_and_lines::nelts, paddress(), symtab_and_line::pc, symtabs_and_lines::sals, and xfree().
Referenced by create_breakpoint().
void check_longjmp_breakpoint_for_call_dummy | ( | struct thread_info * | tp | ) |
Definition at line 7537 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_call_dummy, bp_longjmp_call_dummy, delete_breakpoint(), dummy_frame_discard(), frame_find_by_id(), breakpoint::frame_id, breakpoint::next, thread_info::num, thread_info::ptid, breakpoint::related_breakpoint, breakpoint::thread, and breakpoint::type.
Referenced by process_event_stop_test().
|
static |
Definition at line 1126 of file breakpoint.c.
References _, command_line::body_count, command_line::body_list, command_line::control_type, error(), command_line::line, command_line::next, and while_stepping_control.
Referenced by validate_commands_for_breakpoint().
|
static |
Definition at line 8235 of file breakpoint.c.
References bpstats::breakpoint_at, current_program_space, if(), bpstats::print_it, print_it_noop, so_list::so_name, bpstats::stop, and VEC_iterate.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10535 of file breakpoint.c.
References bpstat_check_watchpoint(), bpstats::breakpoint_at, gdb_assert, and is_watchpoint().
Referenced by initialize_breakpoint_ops().
void check_tracepoint_command | ( | char * | line, |
void * | closure | ||
) |
Definition at line 1312 of file breakpoint.c.
References validate_actionline().
Referenced by do_map_commands_command(), mi_cmd_break_commands(), and trace_actions_command().
|
static |
Definition at line 4555 of file breakpoint.c.
Referenced by bpstat_do_actions_1().
void clear_breakpoint_hit_counts | ( | void | ) |
Definition at line 703 of file breakpoint.c.
References ALL_BREAKPOINTS, and breakpoint::hit_count.
Referenced by run_command_1().
|
static |
Definition at line 11738 of file breakpoint.c.
References _, bp_location::address, ALL_BREAKPOINTS, bp_none, compare_breakpoints(), DECODE_LINE_FUNFIRSTLINE, DECODE_LINE_LIST_MODE, decode_line_with_current_source(), delete_breakpoint(), do_cleanups(), error(), symtab_and_line::explicit_line, get_last_displayed_sal(), init_sal(), is_watchpoint(), symtab_and_line::line, bp_location::line_number, breakpoint::loc, make_cleanup(), symtabs_and_lines::nelts, bp_location::next, null_cleanup(), breakpoint::number, symtab_and_line::pc, printf_unfiltered(), bp_location::pspace, symtab_and_line::pspace, putchar_unfiltered(), qsort, symtabs_and_lines::sals, bp_location::section, symtab_and_line::section, section_is_overlay(), bp_location::symtab, symtab_and_line::symtab, symtab_to_fullname(), breakpoint::type, VEC(), VEC_address, VEC_cleanup, VEC_empty, VEC_index, VEC_iterate, VEC_length, VEC_ordered_remove, VEC_safe_push, xfree(), and xmalloc().
Referenced by _initialize_breakpoint().
struct breakpoint* clone_momentary_breakpoint | ( | struct breakpoint * | orig | ) |
Definition at line 8822 of file breakpoint.c.
References momentary_breakpoint_from_master(), breakpoint::ops, and breakpoint::type.
Referenced by follow_fork().
|
static |
Definition at line 4564 of file breakpoint.c.
References command_line::line.
Referenced by bpstat_do_actions_1(), and bpstat_stop_status().
|
static |
Definition at line 1436 of file breakpoint.c.
References commands_command_1().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 1389 of file breakpoint.c.
References _, commands_info::arg, commands_info::cmd, commands_info::control, do_cleanups(), do_map_commands_command(), error(), commands_info::from_tty, make_cleanup(), make_cleanup_decref_counted_command_line(), map_breakpoint_numbers(), xfree(), and xstrprintf().
Referenced by commands_command(), and commands_from_control_command().
enum command_control_type commands_from_control_command | ( | char * | arg, |
struct command_line * | cmd | ||
) |
Definition at line 1447 of file breakpoint.c.
References commands_command_1(), and simple_control.
Referenced by execute_control_command().
Definition at line 11716 of file breakpoint.c.
Referenced by clear_command().
|
static |
Definition at line 1081 of file breakpoint.c.
References _, ALL_BREAKPOINTS, error(), error_no_arg(), ext_lang_capitalized_name(), EXT_LANG_NONE, get_breakpoint_cond_ext_lang(), get_number(), is_breakpoint(), breakpoint::number, set_breakpoint_condition(), UGLL_MAY_INSERT, and update_global_location_list().
Referenced by _initialize_breakpoint().
struct breakpoint* create_and_insert_solib_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7729 of file breakpoint.c.
References create_solib_event_breakpoint_1(), delete_breakpoint(), bp_location::inserted, breakpoint::loc, and UGLL_INSERT.
int create_breakpoint | ( | struct gdbarch * | gdbarch, |
char * | arg, | ||
char * | cond_string, | ||
int | thread, | ||
char * | extra_string, | ||
int | parse_arg, | ||
int | tempflag, | ||
enum bptype | type_wanted, | ||
int | ignore_count, | ||
enum auto_boolean | pending_break_support, | ||
const struct breakpoint_ops * | ops, | ||
int | from_tty, | ||
int | enabled, | ||
int | internal, | ||
unsigned | flags | ||
) |
Definition at line 9585 of file breakpoint.c.
References _, breakpoint::addr_string, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, tracepoint::base, bp_breakpoint, bp_disabled, bp_enabled, bp_fast_tracepoint, bp_hardware_breakpoint, bptype_string(), breakpoint_sals_to_pc(), linespec_sals::canonical, CATCH, check_fast_tracepoint_sals(), breakpoint::cond_string, breakpoint::condition_not_parsed, breakpoint_ops::create_breakpoints_sal, breakpoint_ops::create_sals_from_address, current_program_space, discard_cleanups(), disp_del, disp_donttouch, breakpoint::disposition, do_cleanups(), breakpoint::enable_state, END_CATCH, error(), exception_print(), breakpoint::extra_string, find_condition_and_thread(), gdb_assert, gdb_stderr, breakpoint::ignore_count, init_linespec_result(), init_raw_breakpoint_without_location(), init_sal(), install_breakpoint(), is_tracepoint_type(), make_cleanup(), make_cleanup_destroy_linespec_result(), symtabs_and_lines::nelts, NOT_FOUND_ERROR, nquery(), null_cleanup(), symtab_and_line::pc, breakpoint::pspace, RETURN_MASK_ERROR, linespec_sals::sals, symtabs_and_lines::sals, breakpoint::thread, throw_exception(), TRY, UGLL_MAY_INSERT, update_global_location_list(), VEC_empty, VEC_index, VEC_iterate, VEC_length, VEC_safe_push, warning(), and xfree().
Referenced by bpfinishpy_init(), bppy_init(), break_command_1(), create_tracepoint_from_upload(), dprintf_command(), ftrace_command(), gdbscm_register_breakpoint_x(), mi_cmd_break_insert_1(), spu_catch_start(), strace_command(), and trace_command().
|
static |
Definition at line 9216 of file breakpoint.c.
References tracepoint::base, discard_cleanups(), init_breakpoint_sal(), install_breakpoint(), is_tracepoint_type(), make_cleanup(), and xfree().
Referenced by create_breakpoints_sal().
|
static |
Definition at line 9270 of file breakpoint.c.
References linespec_result::addr_string, linespec_sals::canonical, create_breakpoint_sal(), discard_cleanups(), gdb_assert, make_cleanup(), linespec_result::pre_expanded, linespec_sals::sals, linespec_result::special_display, VEC_iterate, VEC_length, and xfree().
Referenced by create_breakpoints_sal_default().
|
static |
Definition at line 14187 of file breakpoint.c.
References create_breakpoints_sal().
Referenced by bkpt_create_breakpoints_sal(), and tracepoint_create_breakpoints_sal().
|
static |
Definition at line 3627 of file breakpoint.c.
References breakpoint::addr_string, ALL_OBJFILES, BMSYMBOL_VALUE_ADDRESS, bp_disabled, bp_exception_master, can_evaluate_probe_arguments(), create_internal_breakpoint(), current_target, breakpoint::enable_state, gdbarch_convert_from_func_ptr_addr(), get_breakpoint_objfile_data(), get_objfile_arch(), get_probe_address(), internal_breakpoint_ops, lookup_minimal_symbol(), msym_not_found, msym_not_found_p(), UGLL_MAY_INSERT, update_global_location_list(), VEC(), VEC_free, VEC_index, and VEC_iterate.
Referenced by breakpoint_re_set().
|
static |
Definition at line 8471 of file breakpoint.c.
References fork_catchpoint::base, fork_catchpoint::forked_inferior_pid, init_catchpoint(), install_breakpoint(), and null_ptid.
Referenced by catch_fork_command_1().
|
static |
Definition at line 3309 of file breakpoint.c.
References current_program_space, disp_donttouch, breakpoint::disposition, find_pc_overlay(), init_sal(), breakpoint::number, symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, and set_raw_breakpoint().
Referenced by create_exception_master_breakpoint(), create_jit_event_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_solib_event_breakpoint_1(), create_std_terminate_master_breakpoint(), create_thread_event_breakpoint(), and watch_command_1().
struct breakpoint* create_jit_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7657 of file breakpoint.c.
References bp_jit_event, create_internal_breakpoint(), internal_breakpoint_ops, UGLL_MAY_INSERT, and update_global_location_list_nothrow().
Referenced by jit_breakpoint_re_set_internal().
|
static |
Definition at line 3457 of file breakpoint.c.
References breakpoint::addr_string, ALL_OBJFILES, ALL_PSPACES, BMSYMBOL_VALUE_ADDRESS, bp_disabled, bp_longjmp_master, can_evaluate_probe_arguments(), create_internal_breakpoint(), do_cleanups(), breakpoint::enable_state, gdbarch_get_longjmp_target_p(), get_breakpoint_objfile_data(), get_objfile_arch(), get_probe_address(), internal_breakpoint_ops, breakpoint_objfile_data::longjmp_msym, breakpoint_objfile_data::longjmp_searched, lookup_minimal_symbol_text(), arm-linux::m, bound_minimal_symbol::minsym, msym_not_found, msym_not_found_p(), NUM_LONGJMP_NAMES, save_current_program_space(), set_current_program_space(), UGLL_MAY_INSERT, update_global_location_list(), VEC(), VEC_free, VEC_index, and VEC_iterate.
Referenced by breakpoint_re_set().
|
static |
Definition at line 3406 of file breakpoint.c.
References breakpoint::addr_string, ALL_OBJFILES, BMSYMBOL_VALUE_ADDRESS, bp_disabled, bp_enabled, bp_overlay_event, create_internal_breakpoint(), breakpoint::enable_state, get_breakpoint_objfile_data(), get_objfile_arch(), internal_breakpoint_ops, lookup_minimal_symbol_text(), arm-linux::m, bound_minimal_symbol::minsym, msym_not_found, msym_not_found_p(), overlay_debugging, breakpoint_objfile_data::overlay_msym, ovly_auto, UGLL_MAY_INSERT, and update_global_location_list().
Referenced by breakpoint_re_set().
|
static |
Definition at line 14174 of file breakpoint.c.
References parse_breakpoint_sals().
Referenced by bkpt_create_sals_from_address(), and tracepoint_create_sals_from_address().
struct breakpoint* create_solib_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7721 of file breakpoint.c.
References create_solib_event_breakpoint_1(), and UGLL_MAY_INSERT.
Referenced by darwin_solib_create_inferior_hook(), enable_break(), enable_break2(), ocl_enable_break(), spu_enable_break(), svr4_create_probe_breakpoints(), and svr4_create_solib_event_breakpoints().
|
static |
Definition at line 7709 of file breakpoint.c.
References bp_shlib_event, create_internal_breakpoint(), internal_breakpoint_ops, and update_global_location_list_nothrow().
Referenced by create_and_insert_solib_event_breakpoint(), and create_solib_event_breakpoint().
|
static |
Definition at line 3570 of file breakpoint.c.
References breakpoint::addr_string, ALL_OBJFILES, ALL_PSPACES, BMSYMBOL_VALUE_ADDRESS, bp_disabled, bp_std_terminate_master, create_internal_breakpoint(), do_cleanups(), breakpoint::enable_state, get_breakpoint_objfile_data(), get_objfile_arch(), internal_breakpoint_ops, lookup_minimal_symbol(), arm-linux::m, mst_file_text, mst_text, msym_not_found, msym_not_found_p(), MSYMBOL_TYPE, save_current_program_space(), set_current_program_space(), UGLL_MAY_INSERT, and update_global_location_list().
Referenced by breakpoint_re_set().
struct breakpoint* create_thread_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7620 of file breakpoint.c.
References breakpoint::addr_string, bp_location::address, bp_enabled, bp_thread_event, create_internal_breakpoint(), breakpoint::enable_state, bp_location::gdbarch, internal_breakpoint_ops, breakpoint::loc, paddress(), UGLL_MAY_INSERT, update_global_location_list_nothrow(), and xstrprintf().
Referenced by enable_thread_event(), and pd_enable().
struct tracepoint* create_tracepoint_from_upload | ( | struct uploaded_tp * | utp | ) |
Definition at line 14976 of file breakpoint.c.
References _, uploaded_tp::addr, uploaded_tp::at_string, tracepoint::base, breakpoint_set_commands(), uploaded_tp::cond, uploaded_tp::cond_string, create_breakpoint(), CREATE_BREAKPOINT_FLAGS_INSERTED, uploaded_tp::enabled, gdb_assert, get_current_arch(), get_tracepoint(), hex_string(), uploaded_tp::hit_count, breakpoint::hit_count, uploaded_tp::number, breakpoint::number, uploaded_tp::pass, read_command_lines_1(), read_uploaded_action(), trace_pass_command(), uploaded_tp::traceframe_usage, tracepoint::traceframe_usage, tracepoint_breakpoint_ops, uploaded_tp::type, VEC_empty, warning(), and xsnprintf().
Referenced by merge_uploaded_tracepoints().
|
static |
Definition at line 14210 of file breakpoint.c.
References decode_line_full(), DECODE_LINE_FUNFIRSTLINE, destroy_linespec_result(), breakpoint::filter, gdb_assert, init_linespec_result(), multiple_symbols_all, linespec_sals::sals, symtabs_and_lines::sals, VEC_index, and VEC_length.
Referenced by bkpt_decode_linespec(), and tracepoint_decode_linespec().
|
static |
Definition at line 9529 of file breakpoint.c.
References _, static_tracepoint_marker::address, do_cleanups(), error(), find_pc_line(), init_sal(), make_cleanup(), symtabs_and_lines::nelts, symtab_and_line::pc, release_static_tracepoint_marker(), symtabs_and_lines::sals, savestring(), skip_spaces(), skip_to_space, target_static_tracepoint_markers_by_strid, VEC(), VEC_empty, VEC_index, VEC_length, xfree(), and xmalloc().
Referenced by strace_marker_create_sals_from_address(), and strace_marker_decode_linespec().
|
static |
Definition at line 7245 of file breakpoint.c.
References free_bp_location(), and gdb_assert.
Referenced by bpstat_free(), breakpoint_init_inferior(), breakpoint_retire_moribund(), and update_global_location_list().
|
static |
Definition at line 739 of file breakpoint.c.
References free_command_lines(), and xfree().
Referenced by base_breakpoint_dtor(), bpstat_clear_actions(), bpstat_free(), breakpoint_set_commands(), do_cleanup_counted_command_line(), do_map_commands_command(), and watchpoint_check().
|
static |
Definition at line 6813 of file breakpoint.c.
References current_uiout, default_collect, ui_out_field_string(), and ui_out_text().
Referenced by breakpoints_info(), maintenance_info_breakpoints(), and tracepoints_info().
void delete_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 13539 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_none, bp_watchpoint_scope, bpstat_remove_breakpoint_callback(), breakpoint_ops::dtor, gdb_assert, if(), iterate_over_threads(), breakpoint::next, breakpoint::number, observer_notify_breakpoint_deleted(), breakpoint::ops, breakpoint::related_breakpoint, breakpoint::type, UGLL_DONT_INSERT, update_global_location_list(), watchpoint_del_at_next_stop(), and xfree().
Referenced by bkpt_re_set(), bpfinishpy_out_of_scope(), bppy_delete_breakpoint(), breakpoint_auto_delete(), breakpoint_init_inferior(), breakpoint_program_space_exit(), check_longjmp_breakpoint_for_call_dummy(), clear_command(), create_and_insert_solib_event_breakpoint(), delete_command(), delete_longjmp_breakpoint(), delete_std_terminate_breakpoint(), delete_thread_breakpoint(), delete_trace_command(), do_delete_breakpoint(), do_delete_breakpoint_cleanup(), elf_gnu_ifunc_resolver_return_stop(), finish_command_continuation(), gdbscm_delete_breakpoint_x(), internal_bkpt_re_set(), jit_breakpoint_re_set_internal(), pop_dummy_frame_bpt(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_thread_event_breakpoints(), until_break_command_continuation(), update_breakpoints_after_exec(), and watch_command_1().
void delete_command | ( | char * | arg, |
int | from_tty | ||
) |
Definition at line 13696 of file breakpoint.c.
References _, ALL_BREAKPOINTS, ALL_BREAKPOINTS_SAFE, delete_breakpoint(), do_map_delete_breakpoint(), dont_repeat(), map_breakpoint_numbers(), query(), and user_breakpoint_p().
Referenced by _initialize_breakpoint().
void delete_longjmp_breakpoint | ( | int | thread | ) |
Definition at line 7469 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_exception, bp_longjmp, delete_breakpoint(), breakpoint::thread, and breakpoint::type.
Referenced by delete_longjmp_breakpoint_cleanup(), finish_command_continuation(), step_1_continuation(), until_break_command_continuation(), and until_next_continuation().
void delete_longjmp_breakpoint_at_next_stop | ( | int | thread | ) |
Definition at line 7482 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_exception, bp_longjmp, disp_del_at_next_stop, breakpoint::disposition, breakpoint::thread, and breakpoint::type.
Referenced by clear_thread_inferior_resources().
void delete_std_terminate_breakpoint | ( | void | ) |
Definition at line 7610 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_std_terminate, delete_breakpoint(), and breakpoint::type.
Referenced by cleanup_delete_std_terminate_breakpoint().
|
static |
Definition at line 15097 of file breakpoint.c.
References _, ALL_BREAKPOINTS_SAFE, ALL_TRACEPOINTS, delete_breakpoint(), do_map_delete_breakpoint(), dont_repeat(), is_tracepoint(), map_breakpoint_numbers(), query(), and user_breakpoint_p().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 6883 of file breakpoint.c.
References _, ALL_BREAKPOINTS, bp_call_disabled, bp_disabled, breakpoint_has_pc(), breakpoint::enable_state, fputs_filtered(), gdb_stdout, breakpoint::number, paddress(), printf_filtered(), breakpoint::thread, and user_breakpoint_p().
Referenced by init_ada_exception_breakpoint(), and init_breakpoint_sal().
Definition at line 3847 of file breakpoint.c.
References _, ALL_BP_LOCATIONS, bp_loc_other, current_inferior(), do_cleanups(), error(), inferior_ptid, bp_location::inserted, bp_location::loc_type, mark_inserted, inferior::pspace, bp_location::pspace, ptid_get_pid(), remove_breakpoint_1(), and save_inferior_ptid().
Referenced by handle_inferior_event_1(), and linux_handle_extended_wait().
void disable_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 14486 of file breakpoint.c.
References bp_disabled, bp_watchpoint_scope, current_trace_status(), breakpoint::enable_state, is_tracepoint(), breakpoint::loc, mark_breakpoint_modified(), bp_location::next, observer_notify_breakpoint_modified(), target_disable_tracepoint, target_supports_enable_disable_tracepoint, breakpoint::type, UGLL_DONT_INSERT, and update_global_location_list().
Referenced by bpfinishpy_post_stop_hook(), bppy_set_enabled(), disable_command(), do_disable_breakpoint(), gdbscm_set_breakpoint_enabled_x(), and svr4_update_solib_event_breakpoint().
void disable_breakpoints_before_startup | ( | void | ) |
Definition at line 8716 of file breakpoint.c.
References current_program_space, program_space::executing_startup, UGLL_DONT_INSERT, and update_global_location_list().
Referenced by spu_solib_create_inferior_hook().
|
static |
Definition at line 7835 of file breakpoint.c.
References bp_location::address, ALL_BREAKPOINTS, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, objfile::flags, is_addr_in_objfile(), is_breakpoint(), is_tracepoint(), breakpoint::loc, bp_location::loc_type, mark_breakpoint_location_modified(), bp_location::next, OBJF_SHARED, OBJF_USERLOADED, observer_notify_breakpoint_modified(), objfile::pspace, bp_location::pspace, and bp_location::shlib_disabled.
Referenced by _initialize_breakpoint().
void disable_breakpoints_in_shlibs | ( | void | ) |
Definition at line 7748 of file breakpoint.c.
References bp_location::address, ALL_BP_LOCATIONS, bp_breakpoint, bp_hardware_breakpoint, bp_jit_event, current_program_space, is_tracepoint(), bp_location::owner, bp_location::pspace, bp_location::shlib_disabled, solib_name_from_address(), and breakpoint::type.
Referenced by clear_solib(), and do_initial_windows_stuff().
|
static |
Definition at line 7781 of file breakpoint.c.
References _, bp_location::address, ALL_BP_LOCATIONS, bp_breakpoint, bp_hardware_breakpoint, bp_jit_event, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, exec_bfd, bp_location::inserted, is_tracepoint(), bp_location::loc_type, observer_notify_breakpoint_modified(), bp_location::owner, so_list::pspace, bp_location::pspace, bp_location::shlib_disabled, so_list::so_name, solib_contains_address_p(), target_terminal_ours_for_output(), breakpoint::type, and warning().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 14531 of file breakpoint.c.
References ALL_BREAKPOINTS, current_trace_status(), disable_breakpoint(), do_map_disable_breakpoint(), bp_location::enabled, extract_arg(), find_location_by_number(), is_tracepoint(), map_breakpoint_numbers(), mark_breakpoint_location_modified(), bp_location::owner, target_disable_tracepoint, target_supports_enable_disable_tracepoint, UGLL_DONT_INSERT, update_global_location_list(), and user_breakpoint_p().
Referenced by _initialize_breakpoint(), and disable_trace_command().
void disable_overlay_breakpoints | ( | void | ) |
Definition at line 7579 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_disabled, bp_overlay_event, breakpoint::enable_state, breakpoint::type, UGLL_DONT_INSERT, and update_global_location_list().
Referenced by overlay_manual_command(), and overlay_off_command().
|
static |
Definition at line 15090 of file breakpoint.c.
References disable_command().
Referenced by _initialize_breakpoint().
void disable_watchpoints_before_interactive_call_start | ( | void | ) |
Definition at line 8686 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_call_disabled, breakpoint_enabled(), breakpoint::enable_state, is_watchpoint(), UGLL_DONT_INSERT, and update_global_location_list().
Referenced by run_inferior_call().
Definition at line 6608 of file breakpoint.c.
References ALL_BREAKPOINTS, captured_breakpoint_query_args::bnum, GDB_RC_NONE, GDB_RC_OK, breakpoint::number, and print_one_breakpoint().
Referenced by gdb_breakpoint_query().
|
static |
Definition at line 755 of file breakpoint.c.
References decref_counted_command_line().
Referenced by make_cleanup_decref_counted_command_line().
|
static |
Definition at line 13681 of file breakpoint.c.
References delete_breakpoint().
Referenced by do_map_delete_breakpoint().
|
static |
Definition at line 13632 of file breakpoint.c.
References delete_breakpoint().
Referenced by make_cleanup_delete_breakpoint().
|
static |
Definition at line 14516 of file breakpoint.c.
References disable_breakpoint().
Referenced by do_map_disable_breakpoint().
|
static |
Definition at line 14643 of file breakpoint.c.
References enable_breakpoint().
Referenced by do_map_enable_breakpoint().
|
static |
Definition at line 14713 of file breakpoint.c.
References disp_data::count, disp_data::disp, and enable_breakpoint_disp().
Referenced by do_map_enable_count_breakpoint(), do_map_enable_delete_breakpoint(), and do_map_enable_once_breakpoint().
|
static |
Definition at line 1343 of file breakpoint.c.
References _, alloc_counted_command_line(), commands_info::arg, command_line::body_list, check_tracepoint_command(), commands_info::cmd, counted_command_line::commands, breakpoint::commands, commands_info::control, copy_command_lines(), decref_counted_command_line(), do_cleanups(), commands_info::from_tty, incref_counted_command_line(), is_tracepoint(), make_cleanup(), observer_notify_breakpoint_modified(), read_command_lines(), validate_commands_for_breakpoint(), xfree(), and xstrprintf().
Referenced by commands_command_1().
|
static |
Definition at line 13690 of file breakpoint.c.
References do_delete_breakpoint(), and iterate_over_related_breakpoints().
Referenced by delete_command(), and delete_trace_command().
|
static |
Definition at line 14525 of file breakpoint.c.
References do_disable_breakpoint(), and iterate_over_related_breakpoints().
Referenced by disable_command().
|
static |
Definition at line 14652 of file breakpoint.c.
References do_enable_breakpoint(), and iterate_over_related_breakpoints().
Referenced by enable_command().
|
static |
Definition at line 14735 of file breakpoint.c.
References disp_disable, do_enable_breakpoint_disp(), and iterate_over_related_breakpoints().
Referenced by enable_count_command().
|
static |
Definition at line 14756 of file breakpoint.c.
References disp_del, do_enable_breakpoint_disp(), and iterate_over_related_breakpoints().
Referenced by enable_delete_command().
|
static |
Definition at line 14721 of file breakpoint.c.
References disp_disable, do_enable_breakpoint_disp(), and iterate_over_related_breakpoints().
Referenced by enable_once_command().
|
static |
Definition at line 12009 of file breakpoint.c.
References ALL_TRACEPOINTS, bp_fast_tracepoint, do_cleanups(), bp_location::inserted, breakpoint::loc, may_insert_fast_tracepoints, may_insert_tracepoints, bp_location::next, breakpoint::number, tracepoint::number_on_target, observer_notify_breakpoint_modified(), bp_location::pspace, save_current_space_and_thread(), should_be_inserted(), switch_to_program_space_and_thread(), target_can_download_tracepoint, target_download_tracepoint, and breakpoint::type.
Referenced by update_global_location_list().
|
static |
Definition at line 13404 of file breakpoint.c.
References bpstat_do_actions_1(), bpstats::commands, do_cleanups(), make_cleanup_decref_counted_command_line(), and bpstats::stop.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12840 of file breakpoint.c.
References bkpt_breakpoint_hit(), and target_can_run_breakpoint_commands.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10010 of file breakpoint.c.
References bp_dprintf, create_breakpoint(), dprintf_breakpoint_ops, and get_current_arch().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 13387 of file breakpoint.c.
References breakpoint::addr_string, breakpoint::extra_string, fprintf_unfiltered(), and print_recreate_thread().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13358 of file breakpoint.c.
References _, breakpoint_re_set_default(), error(), breakpoint::extra_string, breakpoint::loc, and update_dprintf_command_list().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8507 of file breakpoint.c.
References base_breakpoint_ops, breakpoint_ops::dtor, exec_catchpoint::exec_pathname, and xfree().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8176 of file breakpoint.c.
References base_breakpoint_ops, breakpoint_ops::dtor, and xfree().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10441 of file breakpoint.c.
References base_breakpoint_ops, watchpoint::cond_exp, breakpoint_ops::dtor, watchpoint::exp, watchpoint::exp_string, watchpoint::exp_string_reparse, watchpoint::val, value_free(), and xfree().
Referenced by initialize_breakpoint_ops().
void enable_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 14637 of file breakpoint.c.
References breakpoint::disposition, and enable_breakpoint_disp().
Referenced by bppy_set_enabled(), do_enable_breakpoint(), enable_command(), gdbscm_set_breakpoint_enabled_x(), and svr4_update_solib_event_breakpoint().
|
static |
Definition at line 14573 of file breakpoint.c.
References _, bp_enabled, bp_hardware_breakpoint, CATCH, current_trace_status(), breakpoint::disposition, breakpoint::enable_count, breakpoint::enable_state, END_CATCH, error(), exception_fprintf(), gdb_stderr, hw_breakpoint_used_count(), is_tracepoint(), is_watchpoint(), breakpoint::loc, mark_breakpoint_modified(), bp_location::next, breakpoint::number, observer_notify_breakpoint_modified(), RETURN_MASK_ALL, target_can_use_hardware_watchpoint, target_enable_tracepoint, target_supports_enable_disable_tracepoint, TRY, breakpoint::type, UGLL_MAY_INSERT, update_global_location_list(), and update_watchpoint().
Referenced by do_enable_breakpoint_disp(), and enable_breakpoint().
void enable_breakpoints_after_startup | ( | void | ) |
Definition at line 8723 of file breakpoint.c.
References breakpoint_re_set(), current_program_space, and program_space::executing_startup.
Referenced by spu_current_sos().
|
static |
Definition at line 14662 of file breakpoint.c.
References ALL_BREAKPOINTS, current_trace_status(), do_map_enable_breakpoint(), enable_breakpoint(), bp_location::enabled, extract_arg(), find_location_by_number(), is_tracepoint(), map_breakpoint_numbers(), mark_breakpoint_location_modified(), bp_location::owner, target_enable_tracepoint, target_supports_enable_disable_tracepoint, UGLL_MAY_INSERT, update_global_location_list(), and user_breakpoint_p().
Referenced by _initialize_breakpoint(), and enable_trace_command().
|
static |
Definition at line 14743 of file breakpoint.c.
References _, disp_data::count, do_map_enable_count_breakpoint(), error_no_arg(), get_number(), and map_breakpoint_numbers().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 14764 of file breakpoint.c.
References do_map_enable_delete_breakpoint(), and map_breakpoint_numbers().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 14729 of file breakpoint.c.
References do_map_enable_once_breakpoint(), and map_breakpoint_numbers().
Referenced by _initialize_breakpoint().
void enable_overlay_breakpoints | ( | void | ) |
Definition at line 7565 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_enabled, bp_overlay_event, breakpoint::enable_state, breakpoint::type, UGLL_MAY_INSERT, and update_global_location_list().
Referenced by overlay_auto_command().
|
static |
Definition at line 15082 of file breakpoint.c.
References enable_command().
Referenced by _initialize_breakpoint().
void enable_watchpoints_after_interactive_call_stop | ( | void | ) |
Definition at line 8701 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_call_disabled, bp_enabled, breakpoint::enable_state, is_watchpoint(), UGLL_MAY_INSERT, and update_global_location_list().
Referenced by run_inferior_call().
void end_rbreak_breakpoints | ( | void | ) |
Definition at line 695 of file breakpoint.c.
References rbreak_start_breakpoint_count.
Referenced by do_end_rbreak_breakpoints().
char* ep_parse_optional_if_clause | ( | char ** | arg | ) |
Definition at line 11552 of file breakpoint.c.
References skip_spaces().
Referenced by catch_exception_command_1(), catch_exec_command_1(), and catch_fork_command_1().
|
static |
Definition at line 10728 of file breakpoint.c.
References bp_watchpoint, and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 1742 of file breakpoint.c.
References allocate_value(), unpack_value_bitfield(), watchpoint::val_bitpos, watchpoint::val_bitsize, value_contents_for_printing(), value_offset(), and value_type().
Referenced by update_watchpoint(), and watchpoint_check().
|
static |
Definition at line 10182 of file breakpoint.c.
References _, error(), symtab_and_line::explicit_pc, find_line_pc_range(), and symtab_and_line::pc.
Referenced by break_range_command(), and update_breakpoint_locations().
|
static |
Definition at line 9454 of file breakpoint.c.
References _, block_for_pc(), error(), invalid_thread_id_error(), parse_exp_1(), savestring(), skip_spaces_const(), skip_to_space_const(), valid_task_id(), valid_thread_id(), and xfree().
Referenced by addr_string_to_sals(), and create_breakpoint().
|
static |
Definition at line 14440 of file breakpoint.c.
References _, ALL_BREAKPOINTS, error(), get_number(), breakpoint::loc, bp_location::next, and breakpoint::number.
Referenced by disable_command(), and enable_command().
|
static |
Definition at line 12086 of file breakpoint.c.
References bp_location::address, ALL_BP_LOCATIONS_AT_ADDR, bp_location::cond_bytecode, bp_location::condition_changed, condition_updated, free_agent_expr(), gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), program_space::num, bp_location::owner, bp_location::pspace, and target_supports_evaluation_of_breakpoint_conditions.
Referenced by update_global_location_list().
|
static |
Definition at line 7227 of file breakpoint.c.
References bp_location_ops::dtor, bp_location::ops, and xfree().
Referenced by decref_bp_location().
|
static |
Definition at line 3397 of file breakpoint.c.
References VEC_free.
Referenced by _initialize_breakpoint().
|
static |
Definition at line 14909 of file breakpoint.c.
References bp_fast_tracepoint, create_breakpoint(), get_current_arch(), and tracepoint_breakpoint_ops.
Referenced by _initialize_breakpoint().
Definition at line 6626 of file breakpoint.c.
References captured_breakpoint_query_args::bnum, catch_exceptions_with_msg(), do_captured_breakpoint_query(), GDB_RC_FAIL, GDB_RC_OK, and RETURN_MASK_ALL.
Referenced by breakpoint_notify(), mi_breakpoint_created(), and mi_breakpoint_modified().
|
static |
Definition at line 535 of file breakpoint.c.
References breakpoint_condition_evaluation_mode().
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), build_target_condition_list(), force_breakpoint_reinsertion(), mark_breakpoint_location_modified(), and mark_breakpoint_modified().
struct breakpoint* get_breakpoint | ( | int | num | ) |
Definition at line 774 of file breakpoint.c.
References ALL_BREAKPOINTS, and breakpoint::number.
Referenced by bpscm_breakpoint_deleted(), gdbpy_breakpoint_deleted(), and mi_cmd_break_commands().
|
static |
Definition at line 3380 of file breakpoint.c.
References objfile::objfile_obstack.
Referenced by create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), and create_std_terminate_master_breakpoint().
|
static |
Definition at line 931 of file breakpoint.c.
References bp_location::address, and bp_location_compare_addrs().
struct gdbarch* get_sal_arch | ( | struct symtab_and_line | sal | ) |
Definition at line 7371 of file breakpoint.c.
References get_objfile_arch(), obj_section::objfile, symtab_and_line::section, symtab_and_line::symtab, and SYMTAB_OBJFILE.
Referenced by add_location_to_breakpoint(), check_fast_tracepoint_sals(), init_ada_exception_breakpoint(), and init_breakpoint_sal().
struct tracepoint* get_tracepoint | ( | int | num | ) |
Definition at line 15197 of file breakpoint.c.
References ALL_TRACEPOINTS, and breakpoint::number.
Referenced by create_tracepoint_from_upload(), get_traceframe_location(), mi_cmd_break_passcount(), tfile_trace_find(), trace_find_tracepoint_command(), and tracefile_fetch_registers().
struct tracepoint* get_tracepoint_by_number | ( | char ** | arg, |
struct get_number_or_range_state * | state | ||
) |
Definition at line 15234 of file breakpoint.c.
References _, ALL_TRACEPOINTS, get_number_or_range_state::finished, gdb_assert, get_number(), get_number_or_range(), breakpoint::number, printf_filtered(), and printf_unfiltered().
Referenced by trace_actions_command(), and trace_pass_command().
struct tracepoint* get_tracepoint_by_number_on_target | ( | int | num | ) |
Definition at line 15213 of file breakpoint.c.
References ALL_TRACEPOINTS, and tracepoint::number_on_target.
Referenced by tfile_get_traceframe_address(), and tfind_1().
|
static |
Definition at line 5667 of file breakpoint.c.
References get_current_frame(), get_frame_arch(), jit_event_handler(), target_terminal_inferior(), and target_terminal_ours_for_output().
Referenced by bpstat_what().
int hardware_breakpoint_inserted_here_p | ( | struct address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4302 of file breakpoint.c.
References ALL_BP_LOCATIONS_AT_ADDR, bp_loc_hardware_breakpoint, bp_location_inserted_here_p(), and bp_location::loc_type.
Referenced by check_stopped_by_breakpoint(), and record_check_stopped_by_breakpoint().
int hardware_watchpoint_inserted_in_range | ( | struct address_space * | aspace, |
CORE_ADDR | addr, | ||
ULONGEST | len | ||
) |
Definition at line 4323 of file breakpoint.c.
References bp_location::address, ALL_BREAKPOINTS, program_space::aspace, bp_access_watchpoint, bp_hardware_watchpoint, breakpoint_enabled(), bp_location::inserted, bp_location::length, breakpoint::loc, max, min, bp_location::next, bp_location::pspace, and breakpoint::type.
Referenced by record_full_exec_insn().
|
static |
Definition at line 9920 of file breakpoint.c.
References BP_HARDWAREFLAG, and break_command_1().
Referenced by _initialize_breakpoint(), and break_range_command().
|
static |
Definition at line 8614 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_hardware_breakpoint, breakpoint_enabled(), breakpoint::loc, bp_location::next, breakpoint::ops, breakpoint_ops::resources_needed, and breakpoint::type.
Referenced by break_range_command(), enable_breakpoint_disp(), and init_breakpoint_sal().
|
static |
Definition at line 8638 of file breakpoint.c.
References breakpoint_enabled(), breakpoint::loc, bp_location::next, breakpoint::ops, and breakpoint_ops::resources_needed.
Referenced by hw_watchpoint_used_count_others(), and update_watchpoint().
|
static |
Definition at line 8662 of file breakpoint.c.
References ALL_BREAKPOINTS, breakpoint_enabled(), hw_watchpoint_use_count(), is_hardware_watchpoint(), and breakpoint::type.
Referenced by update_watchpoint().
|
static |
Definition at line 14374 of file breakpoint.c.
References _, error(), error_no_arg(), get_number(), longest_to_int(), parse_and_eval(), printf_filtered(), set_ignore_count(), and value_as_long().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 7236 of file breakpoint.c.
References bp_location::refc.
Referenced by bpstat_alloc(), and bpstat_copy().
|
static |
Definition at line 728 of file breakpoint.c.
References counted_command_line::refc.
Referenced by bpstat_copy(), bpstat_stop_status(), and do_map_commands_command().
void init_ada_exception_breakpoint | ( | struct breakpoint * | b, |
struct gdbarch * | gdbarch, | ||
struct symtab_and_line | sal, | ||
char * | addr_string, | ||
const struct breakpoint_ops * | ops, | ||
int | tempflag, | ||
int | enabled, | ||
int | from_tty | ||
) |
Definition at line 11665 of file breakpoint.c.
References breakpoint::addr_string, bp_breakpoint, bp_disabled, bp_enabled, describe_other_breakpoints(), disp_del, disp_donttouch, breakpoint::disposition, breakpoint::enable_state, get_sal_arch(), init_raw_breakpoint(), breakpoint::language, language_ada, symtab_and_line::pc, symtab_and_line::pspace, and symtab_and_line::section.
Referenced by create_ada_exception_catchpoint().
void init_bp_location | ( | struct bp_location * | loc, |
const struct bp_location_ops * | ops, | ||
struct breakpoint * | owner | ||
) |
Definition at line 7152 of file breakpoint.c.
References _, bp_access_watchpoint, bp_breakpoint, bp_call_dummy, bp_catchpoint, bp_dprintf, bp_exception, bp_exception_master, bp_exception_resume, bp_fast_tracepoint, bp_finish, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_hp_step_resume, bp_jit_event, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_other, bp_loc_software_breakpoint, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_overlay_event, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, bp_watchpoint_scope, bp_location::cond, bp_location::cond_bytecode, bp_location::enabled, gdb_assert, internal_error(), bp_location::loc_type, mark_breakpoint_location_modified(), bp_location::ops, bp_location::owner, bp_location::refc, bp_location::shlib_disabled, and breakpoint::type.
Referenced by allocate_location_exception(), and base_breakpoint_allocate_location().
|
static |
Definition at line 9076 of file breakpoint.c.
References _, add_location_to_breakpoint(), breakpoint::addr_string, bp_location::address, block_for_pc(), bp_disabled, bp_dprintf, bp_enabled, bp_hardware_breakpoint, bp_static_tracepoint, bp_location::cond, breakpoint::cond_string, CREATE_BREAKPOINT_FLAGS_INSERTED, describe_other_breakpoints(), breakpoint::display_canonical, breakpoint::disposition, breakpoint::enable_state, error(), breakpoint::extra_string, breakpoint::filter, gdb_assert, bp_location::gdbarch, get_sal_arch(), hw_breakpoint_used_count(), breakpoint::ignore_count, init_raw_breakpoint(), bp_location::inserted, breakpoint::loc, symtabs_and_lines::nelts, paddress(), parse_exp_1(), symtab_and_line::pc, printf_filtered(), symtab_and_line::pspace, release_static_tracepoint_marker(), symtabs_and_lines::sals, savestring(), symtab_and_line::section, skip_spaces(), skip_to_space, tracepoint::static_trace_marker_id, static_tracepoint_marker::str_id, strace_marker_p(), target_can_use_hardware_watchpoint, target_static_tracepoint_marker_at, breakpoint::task, breakpoint::thread, update_dprintf_command_list(), warning(), and xstrprintf().
Referenced by create_breakpoint_sal(), and strace_marker_create_breakpoints_sal().
void init_catchpoint | ( | struct breakpoint * | b, |
struct gdbarch * | gdbarch, | ||
int | tempflag, | ||
char * | cond_string, | ||
const struct breakpoint_ops * | ops | ||
) |
Definition at line 8439 of file breakpoint.c.
References bp_catchpoint, breakpoint::cond_string, current_program_space, disp_del, disp_donttouch, breakpoint::disposition, init_raw_breakpoint(), init_sal(), and symtab_and_line::pspace.
Referenced by add_solib_catchpoint(), catch_exec_command_1(), create_fork_vfork_event_catchpoint(), create_signal_catchpoint(), create_syscall_event_catchpoint(), and handle_gnu_v3_exceptions().
|
static |
Definition at line 7390 of file breakpoint.c.
References add_location_to_breakpoint(), bp_breakpoint, bp_catchpoint, bp_hardware_breakpoint, gdb_assert, init_raw_breakpoint_without_location(), breakpoint::pspace, and symtab_and_line::pspace.
Referenced by init_ada_exception_breakpoint(), init_breakpoint_sal(), init_catchpoint(), and set_raw_breakpoint().
|
static |
Definition at line 7278 of file breakpoint.c.
References bp_enabled, breakpoint::commands, breakpoint::condition_not_parsed, current_language, breakpoint::enable_state, breakpoint::frame_id, gdb_assert, breakpoint::gdbarch, breakpoint::ignore_count, input_radix, breakpoint::input_radix, language_defn::la_language, breakpoint::language, breakpoint::next, null_frame_id, breakpoint::ops, breakpoint::py_bp_object, breakpoint::related_breakpoint, breakpoint::silent, breakpoint::thread, and breakpoint::type.
Referenced by create_breakpoint(), init_raw_breakpoint(), new_single_step_breakpoint(), set_raw_breakpoint_without_location(), and watch_command_1().
void initialize_breakpoint_ops | ( | void | ) |
Definition at line 15571 of file breakpoint.c.
References breakpoint_ops::after_condition_true, base_breakpoint_ops, bkpt_base_breakpoint_ops, bkpt_breakpoint_hit(), bkpt_breakpoint_ops, bkpt_create_breakpoints_sal(), bkpt_create_sals_from_address(), bkpt_decode_linespec(), bkpt_insert_location(), bkpt_print_it(), bkpt_print_mention(), bkpt_print_recreate(), bkpt_probe_breakpoint_ops, bkpt_probe_create_sals_from_address(), bkpt_probe_decode_linespec(), bkpt_probe_insert_location(), bkpt_probe_remove_location(), bkpt_re_set(), bkpt_remove_location(), bkpt_resources_needed(), breakpoint_ops::breakpoint_hit, breakpoint_hit_catch_exec(), breakpoint_hit_catch_fork(), breakpoint_hit_catch_solib(), breakpoint_hit_catch_vfork(), breakpoint_hit_ranged_breakpoint(), breakpoint_hit_watchpoint(), catch_exec_breakpoint_ops, catch_fork_breakpoint_ops, catch_solib_breakpoint_ops, catch_vfork_breakpoint_ops, breakpoint_ops::check_status, check_status_catch_solib(), check_status_watchpoint(), breakpoint_ops::create_breakpoints_sal, breakpoint_ops::create_sals_from_address, breakpoint_ops::decode_linespec, dprintf_after_condition_true(), dprintf_breakpoint_hit(), dprintf_breakpoint_ops, dprintf_print_recreate(), dprintf_re_set(), breakpoint_ops::dtor, dtor_catch_exec(), dtor_catch_solib(), dtor_watchpoint(), breakpoint_ops::explains_signal, explains_signal_watchpoint(), insert_catch_exec(), insert_catch_fork(), insert_catch_solib(), insert_catch_vfork(), breakpoint_ops::insert_location, insert_masked_watchpoint(), insert_watchpoint(), internal_bkpt_check_status(), internal_bkpt_print_it(), internal_bkpt_print_mention(), internal_bkpt_re_set(), internal_breakpoint_ops, longjmp_bkpt_dtor(), longjmp_breakpoint_ops, masked_watchpoint_breakpoint_ops, momentary_bkpt_check_status(), momentary_bkpt_print_it(), momentary_bkpt_print_mention(), momentary_bkpt_re_set(), momentary_breakpoint_ops, breakpoint_ops::print_it, print_it_catch_exec(), print_it_catch_fork(), print_it_catch_solib(), print_it_catch_vfork(), print_it_masked_watchpoint(), print_it_ranged_breakpoint(), print_it_watchpoint(), breakpoint_ops::print_mention, print_mention_catch_exec(), print_mention_catch_fork(), print_mention_catch_solib(), print_mention_catch_vfork(), print_mention_masked_watchpoint(), print_mention_ranged_breakpoint(), print_mention_watchpoint(), breakpoint_ops::print_one, print_one_catch_exec(), print_one_catch_fork(), print_one_catch_solib(), print_one_catch_vfork(), breakpoint_ops::print_one_detail, print_one_detail_masked_watchpoint(), print_one_detail_ranged_breakpoint(), print_one_ranged_breakpoint(), breakpoint_ops::print_recreate, print_recreate_catch_exec(), print_recreate_catch_fork(), print_recreate_catch_solib(), print_recreate_catch_vfork(), print_recreate_masked_watchpoint(), print_recreate_ranged_breakpoint(), print_recreate_watchpoint(), ranged_breakpoint_ops, breakpoint_ops::re_set, re_set_watchpoint(), remove_catch_exec(), remove_catch_fork(), remove_catch_solib(), remove_catch_vfork(), breakpoint_ops::remove_location, remove_masked_watchpoint(), remove_watchpoint(), breakpoint_ops::resources_needed, resources_needed_masked_watchpoint(), resources_needed_ranged_breakpoint(), resources_needed_watchpoint(), strace_marker_breakpoint_ops, strace_marker_create_breakpoints_sal(), strace_marker_create_sals_from_address(), strace_marker_decode_linespec(), tracepoint_breakpoint_hit(), tracepoint_breakpoint_ops, tracepoint_create_breakpoints_sal(), tracepoint_create_sals_from_address(), tracepoint_decode_linespec(), tracepoint_print_mention(), tracepoint_print_one_detail(), tracepoint_print_recreate(), tracepoint_probe_breakpoint_ops, tracepoint_probe_create_sals_from_address(), tracepoint_probe_decode_linespec(), tracepoint_re_set(), watchpoint_breakpoint_ops, breakpoint_ops::works_in_software_mode, works_in_software_mode_masked_watchpoint(), and works_in_software_mode_watchpoint().
Referenced by _initialize_breakpoint(), initialize_ada_catchpoint_ops(), initialize_signal_catchpoint_ops(), initialize_syscall_catchpoint_ops(), and initialize_throw_catchpoint_ops().
|
static |
Definition at line 2581 of file breakpoint.c.
References _, bp_location::address, ALL_BP_LOCATIONS, program_space::aspace, mem_region::attrib, bp_catchpoint, bp_disabled, bp_hardware_breakpoint, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_software_breakpoint, build_target_command_list(), build_target_condition_list(), CATCH, disp_del_at_next_stop, breakpoint::disposition, do_cleanups(), bp_location::duplicate, breakpoint::enable_state, END_CATCH, fprintf_filtered(), fprintf_unfiltered(), gdb_assert, GDB_NO_ERROR, gdb_stdout, bp_location::gdbarch, GENERIC_ERROR, hw_access, hw_read, breakpoint_ops::insert_location, bp_location::inserted, is_breakpoint(), bp_target_info::length, bp_location::length, bp_location::loc_type, lookup_mem_region(), make_cleanup(), MEM_RW, MEMORY_ERROR, memory_error_message(), mem_attrib::mode, bp_location::needs_update, new_type(), breakpoint::number, observer_notify_breakpoint_modified(), breakpoint::ops, overlay_debugging, bp_location::overlay_target_info, overlay_unmapped_address(), ovly_off, bp_location::owner, paddress(), bp_target_info::placed_address_space, bp_location::pspace, bp_target_info::reqstd_address, RETURN_MASK_ALL, bp_location::section, section_is_mapped(), section_is_overlay(), shared_objfile_contains_address_p(), bp_location::shlib_disabled, should_be_inserted(), solib_name_from_address(), bp_location::target_info, target_insert_breakpoint(), TARGET_XFER_E_IO, TRY, breakpoint::type, warning(), watchpoint_locations_match(), bp_location::watchpoint_type, and xfree().
Referenced by insert_breakpoint_locations(), reattach_breakpoints(), and update_inserted_breakpoint_locations().
|
static |
Definition at line 3079 of file breakpoint.c.
References ALL_BP_LOCATIONS, ALL_BREAKPOINTS, breakpoint_enabled(), disp_del_at_next_stop, breakpoint::disposition, do_cleanups(), error_stream(), fprintf_unfiltered(), gdbarch_has_global_breakpoints(), inferior_ptid, insert_bp_location(), bp_location::inserted, is_hardware_watchpoint(), breakpoint::loc, make_cleanup_ui_file_delete(), mark_uninserted, mem_fileopen(), bp_location::needs_update, bp_location::next, null_ptid, breakpoint::number, bp_location::owner, bp_location::pspace, ptid_equal(), remove_breakpoint(), save_current_space_and_thread(), should_be_inserted(), switch_to_program_space_and_thread(), target_gdbarch(), target_terminal_ours_for_output(), breakpoint::thread, and valid_thread_id().
Referenced by update_global_location_list().
void insert_breakpoints | ( | void | ) |
Definition at line 2984 of file breakpoint.c.
References ALL_BREAKPOINTS, is_hardware_watchpoint(), UGLL_INSERT, update_global_location_list(), and update_watchpoint().
Referenced by arm_linux_copy_svc(), follow_exec(), follow_inferior_reset_breakpoints(), gdbsim_create_inferior(), go32_create_inferior(), handle_inferior_event_1(), inferior_call_waitpid(), inferior_call_waitpid_cleanup(), keep_going(), linux_fork_context(), proceed(), remote_start_remote(), and resume().
|
static |
Definition at line 8517 of file breakpoint.c.
References inferior_ptid, ptid_get_pid(), and target_insert_exec_catchpoint.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 7926 of file breakpoint.c.
References inferior_ptid, ptid_get_pid(), and target_insert_fork_catchpoint.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8188 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8043 of file breakpoint.c.
References inferior_ptid, ptid_get_pid(), and target_insert_vfork_catchpoint.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10746 of file breakpoint.c.
References bp_location::address, watchpoint::hw_wp_mask, bp_location::owner, target_insert_mask_watchpoint(), and bp_location::watchpoint_type.
Referenced by initialize_breakpoint_ops().
void insert_single_step_breakpoint | ( | struct gdbarch * | gdbarch, |
struct address_space * | aspace, | ||
CORE_ADDR | next_pc | ||
) |
Definition at line 14816 of file breakpoint.c.
References add_location_to_breakpoint(), thread_info::control, symtab_and_line::explicit_pc, find_pc_line(), find_pc_overlay(), inferior_thread(), new_single_step_breakpoint(), thread_info::num, symtab_and_line::pc, symtab_and_line::section, thread_control_state::single_step_breakpoints, UGLL_INSERT, and update_global_location_list().
Referenced by aarch64_software_single_step(), alpha_deal_with_atomic_sequence(), alpha_software_single_step(), arm_insert_single_step_breakpoint(), cris_software_single_step(), micromips_deal_with_atomic_sequence(), mips_deal_with_atomic_sequence(), mips_software_single_step(), moxie_software_single_step(), nios2_software_single_step(), ppc_deal_with_atomic_sequence(), resume(), rs6000_software_single_step(), sparc_software_single_step(), spu_software_single_step(), switch_back_to_stepped_thread(), and tic6x_software_single_step().
|
static |
Definition at line 10492 of file breakpoint.c.
References bp_location::address, watchpoint::cond_exp, watchpoint::exact, bp_location::length, bp_location::owner, target_insert_watchpoint, and bp_location::watchpoint_type.
Referenced by initialize_breakpoint_ops().
void install_breakpoint | ( | int | internal, |
struct breakpoint * | b, | ||
int | update_gll | ||
) |
Definition at line 8456 of file breakpoint.c.
References add_to_breakpoint_chain(), is_tracepoint(), mention(), observer_notify_breakpoint_created(), set_breakpoint_number(), set_tracepoint_count(), UGLL_MAY_INSERT, and update_global_location_list().
Referenced by add_solib_catchpoint(), catch_exec_command_1(), create_ada_exception_catchpoint(), create_breakpoint(), create_breakpoint_sal(), create_fork_vfork_event_catchpoint(), create_signal_catchpoint(), create_syscall_event_catchpoint(), handle_gnu_v3_exceptions(), strace_marker_create_breakpoints_sal(), and watch_command_1().
|
static |
Definition at line 13014 of file breakpoint.c.
References bp_shlib_event, bpstats::breakpoint_at, bpstats::print, bpstats::stop, stop_on_solib_events, and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13030 of file breakpoint.c.
References _, bp_exception_master, bp_longjmp_master, bp_overlay_event, bp_shlib_event, bp_std_terminate_master, bp_thread_event, bpstats::breakpoint_at, PRINT_NOTHING, print_solib_event(), printf_filtered(), and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13078 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 12989 of file breakpoint.c.
References bp_exception_master, bp_longjmp_master, bp_overlay_event, bp_shlib_event, bp_std_terminate_master, bp_thread_event, delete_breakpoint(), and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 9441 of file breakpoint.c.
Referenced by find_condition_and_thread(), and watch_command_1().
|
static |
Definition at line 14784 of file breakpoint.c.
References bp_location::address, ALL_BREAKPOINTS, bp_enabled, bp_hardware_watchpoint, bp_loc_hardware_watchpoint, breakpoint::enable_state, bp_location::length, breakpoint::loc, bp_location::loc_type, bp_location::next, breakpoint::type, watchpoint::val, watchpoint::val_valid, and value_free().
Referenced by _initialize_breakpoint().
int is_breakpoint | ( | const struct breakpoint * | bpt | ) |
Definition at line 1674 of file breakpoint.c.
References bp_breakpoint, bp_dprintf, bp_hardware_breakpoint, and breakpoint::type.
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), build_target_command_list(), build_target_condition_list(), condition_command(), disable_breakpoints_in_freed_objfile(), force_breakpoint_reinsertion(), insert_bp_location(), mark_breakpoint_location_modified(), mark_breakpoint_modified(), print_breakpoint_location(), print_one_breakpoint_location(), set_condition_evaluation_mode(), update_global_location_list(), and update_inserted_breakpoint_locations().
int is_catchpoint | ( | struct breakpoint * | ep | ) |
Definition at line 4359 of file breakpoint.c.
References bp_catchpoint, and breakpoint::type.
Referenced by print_one_breakpoint_location().
|
static |
Definition at line 1684 of file breakpoint.c.
References bp_access_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, and breakpoint::type.
Referenced by bpstat_stop_status(), breakpoint_hit_watchpoint(), breakpoint_locations_match(), hw_watchpoint_used_count_others(), insert_breakpoint_locations(), insert_breakpoints(), is_watchpoint(), print_one_breakpoint(), update_global_location_list(), and watchpoints_triggered().
|
static |
Definition at line 10925 of file breakpoint.c.
References masked_watchpoint_breakpoint_ops, and breakpoint::ops.
Referenced by update_watchpoint(), watchpoint_check(), and watchpoints_triggered().
|
static |
Definition at line 15522 of file breakpoint.c.
References bp_shlib_event, and breakpoint::type.
Referenced by pc_at_non_inline_function().
int is_tracepoint | ( | const struct breakpoint * | b | ) |
Definition at line 1163 of file breakpoint.c.
References is_tracepoint_type(), and breakpoint::type.
Referenced by breakpoint_locations_match(), delete_trace_command(), disable_breakpoint(), disable_breakpoints_in_freed_objfile(), disable_breakpoints_in_shlibs(), disable_breakpoints_in_unloaded_shlib(), disable_command(), do_map_commands_command(), enable_breakpoint_disp(), enable_command(), install_breakpoint(), mi_cmd_break_commands(), print_one_breakpoint_location(), remove_breakpoints(), save_breakpoints(), save_tracepoints_command(), set_breakpoint_location_function(), set_ignore_count(), swap_insertion(), tracepoint_locations_match(), tracepoints_info(), update_global_location_list(), and validate_commands_for_breakpoint().
Definition at line 1155 of file breakpoint.c.
References bp_fast_tracepoint, bp_static_tracepoint, and bp_tracepoint.
Referenced by create_breakpoint(), create_breakpoint_sal(), and is_tracepoint().
int is_watchpoint | ( | const struct breakpoint * | bpt | ) |
Definition at line 1695 of file breakpoint.c.
References bp_watchpoint, is_hardware_watchpoint(), and breakpoint::type.
Referenced by aarch64_dr_state_insert_one_point(), aarch64_dr_state_remove_one_point(), aarch64_notify_debug_reg_change(), bppy_get_expression(), bpstat_check_breakpoint_conditions(), check_status_watchpoint(), clear_command(), debug_reg_change_callback(), disable_watchpoints_before_interactive_call_start(), enable_breakpoint_disp(), enable_watchpoints_after_interactive_call_stop(), gdbscm_breakpoint_expression(), print_one_breakpoint_location(), save_breakpoints(), set_breakpoint_condition(), and watchpoints_info().
void iterate_over_bp_locations | ( | walk_bp_location_callback | callback | ) |
Definition at line 3005 of file breakpoint.c.
References ALL_BP_LOCATIONS.
Referenced by record_full_init_record_breakpoints().
struct breakpoint* iterate_over_breakpoints | ( | int(*)(struct breakpoint *, void *) | callback, |
void * | data | ||
) |
Definition at line 15504 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE.
Referenced by bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), gdbpy_breakpoints(), gdbscm_breakpoints(), pop_dummy_frame(), and svr4_update_solib_event_breakpoints().
|
static |
Definition at line 13647 of file breakpoint.c.
References breakpoint::next, and breakpoint::related_breakpoint.
Referenced by do_map_delete_breakpoint(), do_map_disable_breakpoint(), do_map_enable_breakpoint(), do_map_enable_count_breakpoint(), do_map_enable_delete_breakpoint(), and do_map_enable_once_breakpoint().
|
static |
Definition at line 13911 of file breakpoint.c.
References bp_location::address, bp_location::enabled, bp_location::next, and bp_location::shlib_disabled.
Referenced by update_breakpoint_locations().
|
static |
Definition at line 13140 of file breakpoint.c.
References breakpoint_ops::dtor, find_thread_id(), thread_info::initiating_frame, momentary_breakpoint_ops, and null_frame_id.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 6854 of file breakpoint.c.
References breakpoint_1(), and default_collect_info().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 764 of file breakpoint.c.
References do_cleanup_counted_command_line(), and make_cleanup().
Referenced by bpstat_do_actions_1(), commands_command_1(), and dprintf_after_condition_true().
struct cleanup* make_cleanup_delete_breakpoint | ( | struct breakpoint * | b | ) |
Definition at line 13638 of file breakpoint.c.
References do_delete_breakpoint_cleanup(), and make_cleanup().
Referenced by finish_forward(), and until_break_command().
|
static |
|
static |
Definition at line 14399 of file breakpoint.c.
References _, ALL_BREAKPOINTS_SAFE, error_no_arg(), get_number_or_range_state::finished, get_number_or_range(), init_number_or_range(), breakpoint::number, printf_unfiltered(), get_number_or_range_state::string, and warning().
|
static |
Definition at line 814 of file breakpoint.c.
References bp_location::condition_changed, condition_modified, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), bp_location::owner, and target_supports_evaluation_of_breakpoint_conditions.
Referenced by disable_breakpoints_in_freed_objfile(), disable_command(), enable_command(), init_bp_location(), and set_condition_evaluation_mode().
|
static |
Definition at line 791 of file breakpoint.c.
References bp_location::condition_changed, condition_modified, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), breakpoint::loc, bp_location::next, and target_supports_evaluation_of_breakpoint_conditions.
Referenced by disable_breakpoint(), enable_breakpoint_disp(), and set_breakpoint_condition().
void mark_breakpoints_out | ( | void | ) |
Definition at line 4058 of file breakpoint.c.
References ALL_BP_LOCATIONS, current_program_space, bp_location::inserted, and bp_location::pspace.
Referenced by breakpoint_init_inferior(), follow_exec(), and generic_mourn_inferior().
|
static |
Definition at line 8849 of file breakpoint.c.
References current_uiout, breakpoint::ops, breakpoint_ops::print_mention, printf_filtered(), and ui_out_is_mi_like_p().
Referenced by break_range_command(), install_breakpoint(), print_it_masked_watchpoint(), and print_it_watchpoint().
|
static |
Definition at line 13095 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13101 of file breakpoint.c.
References async_reason_lookup(), bp_finish, bp_until, bpstats::breakpoint_at, current_uiout, EXEC_ASYNC_FUNCTION_FINISHED, EXEC_ASYNC_LOCATION_REACHED, PRINT_UNKNOWN, breakpoint::type, ui_out_field_string(), and ui_out_is_mi_like_p().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13129 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13086 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8786 of file breakpoint.c.
References bp_location::address, allocate_bp_location(), bp_enabled, disp_donttouch, breakpoint::disposition, breakpoint::enable_state, bp_location::enabled, breakpoint::frame_id, bp_location::gdbarch, breakpoint::gdbarch, bp_location::line_number, breakpoint::loc, breakpoint::number, bp_location::probe, bp_location::pspace, breakpoint::pspace, bp_location::requested_address, bp_location::section, set_breakpoint_location_function(), set_raw_breakpoint_without_location(), bp_location::symtab, breakpoint::thread, UGLL_DONT_INSERT, and update_global_location_list_nothrow().
Referenced by clone_momentary_breakpoint(), set_longjmp_breakpoint(), set_longjmp_breakpoint_for_call_dummy(), and set_std_terminate_breakpoint().
int moribund_breakpoint_here_p | ( | struct address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4220 of file breakpoint.c.
References breakpoint_location_address_match(), and VEC_iterate.
Referenced by adjust_pc_after_break().
|
static |
Definition at line 3371 of file breakpoint.c.
References msym_not_found.
Referenced by create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), and create_std_terminate_master_breakpoint().
|
static |
Definition at line 5465 of file breakpoint.c.
References bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, bp_location::loc_type, target_supports_stopped_by_hw_breakpoint, and target_supports_stopped_by_sw_breakpoint.
Referenced by bpstat_stop_status(), and update_global_location_list().
|
static |
Definition at line 8733 of file breakpoint.c.
References add_to_breakpoint_chain(), bp_single_step, disp_donttouch, breakpoint::disposition, breakpoint::frame_id, gdb_assert, init_raw_breakpoint_without_location(), momentary_breakpoint_ops, null_frame_id, and breakpoint::thread.
Referenced by insert_single_step_breakpoint().
|
static |
Definition at line 1477 of file breakpoint.c.
References program_space::aspace, breakpoint_address_match(), current_program_space, gdb_assert, gdbarch_breakpoint_from_pc(), bp_target_info::placed_address, bp_target_info::placed_address_space, bp_target_info::reqstd_address, bp_target_info::shadow_contents, and bp_target_info::shadow_len.
Referenced by breakpoint_xfer_memory().
|
static |
Definition at line 6136 of file breakpoint.c.
References do_cleanups(), arm-linux::inf, make_cleanup_ui_out_list_begin_end(), plongest(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), VEC_iterate, and xsnprintf().
Referenced by print_one_breakpoint_location().
|
static |
Definition at line 9316 of file breakpoint.c.
References _, linespec_sals::canonical, decode_line_full(), DECODE_LINE_FUNFIRSTLINE, error(), symtab_and_line::explicit_pc, find_pc_line(), get_current_source_symtab_and_line(), get_last_displayed_line(), get_last_displayed_sal(), get_last_displayed_symtab(), init_sal(), last_displayed_sal_is_valid(), symtab_and_line::line, linespec_lexer_lex_keyword(), symtabs_and_lines::nelts, symtab_and_line::pc, linespec_sals::sals, symtabs_and_lines::sals, symtab_and_line::symtab, VEC_safe_push, and xmalloc().
Referenced by break_range_command(), and create_sals_from_address_default().
|
static |
Definition at line 2374 of file breakpoint.c.
References _, block_for_pc(), CATCH, do_cleanups(), END_CATCH, error(), free_format_pieces_cleanup(), gen_printf(), get_current_arch(), make_cleanup(), parse_exp_1(), parse_format_string(), RETURN_MASK_ERROR, skip_spaces_const(), and TRY.
Referenced by build_target_command_list().
|
static |
Definition at line 2236 of file breakpoint.c.
References CATCH, END_CATCH, gen_eval_for_expr(), RETURN_MASK_ERROR, and TRY.
Referenced by build_target_condition_list().
int pc_at_non_inline_function | ( | struct address_space * | aspace, |
CORE_ADDR | pc, | ||
const struct target_waitstatus * | ws | ||
) |
Definition at line 15536 of file breakpoint.c.
References ALL_BREAKPOINTS, bpstat_check_location(), is_non_inline_function(), breakpoint::loc, bp_location::next, and bp_location::shlib_disabled.
Referenced by handle_signal_stop().
|
static |
Definition at line 14241 of file breakpoint.c.
References input_radix, breakpoint::input_radix, breakpoint::language, breakpoint::pspace, save_current_space_and_thread(), set_language(), and switch_to_program_space_and_thread().
Referenced by breakpoint_re_set_one().
|
static |
Definition at line 4709 of file breakpoint.c.
References _, bpstats::breakpoint_at, internal_error(), breakpoint::ops, breakpoint_ops::print_it, bpstats::print_it, print_it_done, print_it_noop, print_it_normal, PRINT_SRC_AND_LOC, and PRINT_UNKNOWN.
Referenced by bpstat_print().
|
static |
Definition at line 6013 of file breakpoint.c.
References breakpoint::addr_string, bp_location::address, bp_condition_evaluator(), bp_location_condition_evaluator(), breakpoint_condition_evaluation_mode(), current_uiout, demangle, breakpoint::display_canonical, do_cleanups(), find_pc_sect_function(), bp_location::gdbarch, is_breakpoint(), bp_location::line_number, make_cleanup_ui_file_delete(), mem_fileopen(), print_address_symbolic(), bp_location::pspace, save_current_program_space(), bp_location::section, set_current_program_space(), bp_location::shlib_disabled, SYMBOL_PRINT_NAME, bp_location::symtab, symtab_to_filename_for_display(), symtab_to_fullname(), ui_out_field_int(), ui_out_field_stream(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), ui_out_wrap_hint(), and wrap_indent_at_field().
Referenced by print_one_breakpoint_location(), and print_one_ranged_breakpoint().
|
static |
Definition at line 8543 of file breakpoint.c.
References annotate_catchpoint(), async_reason_lookup(), bpdisp_text(), bpstats::breakpoint_at, current_uiout, disp_del, breakpoint::disposition, EXEC_ASYNC_EXEC, exec_catchpoint::exec_pathname, breakpoint::number, PRINT_SRC_AND_LOC, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 7961 of file breakpoint.c.
References annotate_catchpoint(), async_reason_lookup(), bpdisp_text(), bpstats::breakpoint_at, current_uiout, disp_del, breakpoint::disposition, EXEC_ASYNC_FORK, fork_catchpoint::forked_inferior_pid, breakpoint::number, PRINT_SRC_AND_LOC, ptid_get_pid(), ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8275 of file breakpoint.c.
References annotate_catchpoint(), bpdisp_text(), bpstats::breakpoint_at, current_uiout, disp_del, breakpoint::disposition, breakpoint::number, print_solib_event(), PRINT_SRC_AND_LOC, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8078 of file breakpoint.c.
References annotate_catchpoint(), async_reason_lookup(), bpdisp_text(), bpstats::breakpoint_at, current_uiout, disp_del, breakpoint::disposition, EXEC_ASYNC_VFORK, fork_catchpoint::forked_inferior_pid, breakpoint::number, PRINT_SRC_AND_LOC, ptid_get_pid(), ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10790 of file breakpoint.c.
References _, annotate_watchpoint(), async_reason_lookup(), bp_access_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, bpstats::breakpoint_at, current_uiout, EXEC_ASYNC_ACCESS_WATCHPOINT_TRIGGER, EXEC_ASYNC_READ_WATCHPOINT_TRIGGER, EXEC_ASYNC_WATCHPOINT_TRIGGER, gdb_assert, internal_error(), breakpoint::loc, mention(), bp_location::next, breakpoint::number, PRINT_UNKNOWN, breakpoint::type, ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10061 of file breakpoint.c.
References annotate_breakpoint(), async_reason_lookup(), bp_hardware_breakpoint, bpdisp_text(), bpstats::breakpoint_at, current_uiout, disp_del, breakpoint::disposition, EXEC_ASYNC_BREAKPOINT_HIT, gdb_assert, breakpoint::loc, bp_location::next, breakpoint::number, PRINT_SRC_AND_LOC, breakpoint::type, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10565 of file breakpoint.c.
References annotate_watchpoint(), async_reason_lookup(), bp_access_watchpoint, bp_hardware_watchpoint, bpstats::bp_location_at, bp_read_watchpoint, bp_watchpoint, bpstats::breakpoint_at, current_uiout, do_cleanups(), EXEC_ASYNC_ACCESS_WATCHPOINT_TRIGGER, EXEC_ASYNC_READ_WATCHPOINT_TRIGGER, EXEC_ASYNC_WATCHPOINT_TRIGGER, gdb_assert, make_cleanup_ui_file_delete(), make_cleanup_ui_out_tuple_begin_end(), mem_fileopen(), mention(), breakpoint::number, bpstats::old_val, PRINT_UNKNOWN, breakpoint::type, ui_out_field_stream(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), watchpoint::val, and watchpoint_value_print().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8596 of file breakpoint.c.
References _, breakpoint::number, and printf_filtered().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8020 of file breakpoint.c.
References _, breakpoint::number, and printf_filtered().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8335 of file breakpoint.c.
References _, breakpoint::number, and printf_filtered().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8136 of file breakpoint.c.
References _, breakpoint::number, and printf_filtered().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10857 of file breakpoint.c.
References _, bp_access_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, current_uiout, do_cleanups(), watchpoint::exp_string, internal_error(), make_cleanup_ui_out_tuple_begin_end(), breakpoint::number, breakpoint::type, ui_out_field_int(), ui_out_field_string(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10145 of file breakpoint.c.
References _, bp_location::address, bp_hardware_breakpoint, current_uiout, gdb_assert, bp_location::gdbarch, bp_location::length, breakpoint::loc, breakpoint::number, paddress(), printf_filtered(), breakpoint::type, and ui_out_is_mi_like_p().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10660 of file breakpoint.c.
References _, bp_access_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, bp_watchpoint, current_uiout, do_cleanups(), watchpoint::exp_string, internal_error(), make_cleanup_ui_out_tuple_begin_end(), breakpoint::number, breakpoint::type, ui_out_field_int(), ui_out_field_string(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 6537 of file breakpoint.c.
References current_uiout, do_cleanups(), bp_location::enabled, is_hardware_watchpoint(), breakpoint::loc, make_cleanup_ui_out_tuple_begin_end(), bp_location::next, breakpoint::ops, breakpoint_ops::print_one, and print_one_breakpoint_location().
Referenced by breakpoint_1(), and do_captured_breakpoint_query().
|
static |
Definition at line 6179 of file breakpoint.c.
References _, breakpoint::addr_string, bp_location::address, value_print_options::addressprint, ALL_INFERIORS, annotate_field(), annotate_record(), bp_access_watchpoint, bp_breakpoint, bp_call_dummy, bp_catchpoint, bp_condition_evaluator(), bp_dprintf, bp_exception, bp_exception_master, bp_exception_resume, bp_fast_tracepoint, bp_finish, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_none, bp_overlay_event, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, bp_watchpoint_scope, bpdisp_text(), bptype_string(), breakpoint_condition_evaluation_mode(), counted_command_line::commands, breakpoint::commands, breakpoint::cond_string, current_uiout, breakpoint::disposition, do_cleanups(), breakpoint::enable_count, breakpoint::enable_state, bp_location::enabled, watchpoint::exp_string, breakpoint::frame_id, frame_id_p(), gdb_assert, bp_location::gdbarch, breakpoint::gdbarch, gdbarch_has_global_breakpoints(), get_user_print_options(), breakpoint::hit_count, breakpoint::ignore_count, arm-linux::inf, bp_location::inserted, internal_error(), is_breakpoint(), is_catchpoint(), is_tracepoint(), is_watchpoint(), breakpoint::loc, make_cleanup_ui_out_tuple_begin_end(), bp_location::next, inferior::num, breakpoint::number, number_of_inferiors(), number_of_program_spaces(), breakpoint::ops, output_thread_groups(), bp_location::owner, tracepoint::pass_count, print_breakpoint_location(), print_command_lines(), breakpoint_ops::print_one, breakpoint_ops::print_one_detail, inferior::pspace, bp_location::pspace, bp_location::shlib_disabled, frame_id::stack_addr, target_gdbarch(), breakpoint::task, breakpoint::thread, tracepoint::traceframe_usage, breakpoint::type, ui_out_field_core_addr(), ui_out_field_fmt(), ui_out_field_int(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_spaces(), ui_out_text(), VEC(), VEC_free, VEC_safe_push, xfree(), and xstrprintf().
Referenced by print_one_breakpoint().
|
static |
Definition at line 8569 of file breakpoint.c.
References value_print_options::addressprint, annotate_field(), current_uiout, exec_catchpoint::exec_pathname, get_user_print_options(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 7989 of file breakpoint.c.
References value_print_options::addressprint, annotate_field(), current_uiout, fork_catchpoint::forked_inferior_pid, get_user_print_options(), null_ptid, ptid_equal(), ptid_get_pid(), ui_out_field_int(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_spaces(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8294 of file breakpoint.c.
References _, value_print_options::addressprint, annotate_field(), current_uiout, get_user_print_options(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), xfree(), and xstrprintf().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8106 of file breakpoint.c.
References value_print_options::addressprint, annotate_field(), current_uiout, fork_catchpoint::forked_inferior_pid, get_user_print_options(), null_ptid, ptid_equal(), ptid_get_pid(), ui_out_field_int(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_spaces(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10840 of file breakpoint.c.
References gdb_assert, bp_location::gdbarch, watchpoint::hw_wp_mask, breakpoint::loc, bp_location::next, ui_out_field_core_addr(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10118 of file breakpoint.c.
References bp_location::address, do_cleanups(), fprintf_unfiltered(), gdb_assert, bp_location::gdbarch, bp_location::length, breakpoint::loc, make_cleanup_ui_file_delete(), mem_fileopen(), print_core_address(), ui_out_field_stream(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10093 of file breakpoint.c.
References value_print_options::addressprint, annotate_field(), current_uiout, gdb_assert, get_user_print_options(), breakpoint::loc, bp_location::next, print_breakpoint_location(), and ui_out_field_skip().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8605 of file breakpoint.c.
References fprintf_unfiltered(), and print_recreate_thread().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8029 of file breakpoint.c.
References fprintf_unfiltered(), and print_recreate_thread().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8344 of file breakpoint.c.
References disp_del, breakpoint::disposition, and fprintf_unfiltered().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8145 of file breakpoint.c.
References fprintf_unfiltered(), and print_recreate_thread().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10892 of file breakpoint.c.
References _, bp_access_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, watchpoint::exp_string, fprintf_unfiltered(), watchpoint::hw_wp_mask, internal_error(), print_recreate_thread(), and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10165 of file breakpoint.c.
References breakpoint::addr_string, breakpoint::addr_string_range_end, fprintf_unfiltered(), and print_recreate_thread().
Referenced by initialize_breakpoint_ops().
void print_recreate_thread | ( | struct breakpoint * | b, |
struct ui_file * | fp | ||
) |
Definition at line 15272 of file breakpoint.c.
References fprintf_unfiltered(), breakpoint::task, and breakpoint::thread.
Referenced by bkpt_print_recreate(), dprintf_print_recreate(), print_recreate_catch_exec(), print_recreate_catch_fork(), print_recreate_catch_syscall(), print_recreate_catch_vfork(), print_recreate_exception(), print_recreate_exception_catchpoint(), print_recreate_masked_watchpoint(), print_recreate_ranged_breakpoint(), print_recreate_watchpoint(), and tracepoint_print_recreate().
|
static |
Definition at line 10699 of file breakpoint.c.
References _, bp_access_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, bp_watchpoint, watchpoint::exp_string, fprintf_unfiltered(), internal_error(), print_recreate_thread(), and breakpoint::type.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 4748 of file breakpoint.c.
References _, async_reason_lookup(), current_program_space, current_uiout, do_cleanups(), EXEC_ASYNC_SOLIB_EVENT, make_cleanup_ui_out_list_begin_end(), name, so_list::so_name, ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), VEC_empty, and VEC_iterate.
Referenced by bpstat_print(), internal_bkpt_print_it(), and print_it_catch_solib().
Definition at line 8925 of file breakpoint.c.
References do_cleanups(), gdbarch_breakpoint_from_pc(), len, make_show_memory_breakpoints_cleanup(), and target_read_memory().
Referenced by bp_loc_is_permanent(), and handle_signal_stop().
|
static |
Definition at line 10457 of file breakpoint.c.
References update_watchpoint().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 14958 of file breakpoint.c.
References VEC_iterate.
Referenced by create_tracepoint_from_upload().
Definition at line 3246 of file breakpoint.c.
References ALL_BP_LOCATIONS, any_live_thread_of_process(), do_cleanups(), find_inferior_pid(), arm-linux::inf, inferior_ptid, insert_bp_location(), bp_location::inserted, make_cleanup_ui_file_delete(), mem_fileopen(), inferior::pspace, bp_location::pspace, thread_info::ptid, and save_inferior_ptid().
|
static |
Definition at line 4033 of file breakpoint.c.
References bp_none, do_cleanups(), gdb_assert, bp_location::owner, bp_location::pspace, remove_breakpoint_1(), save_current_space_and_thread(), switch_to_program_space_and_thread(), and breakpoint::type.
Referenced by insert_breakpoint_locations(), remove_breakpoints(), remove_breakpoints_pid(), and update_global_location_list().
|
static |
Definition at line 3888 of file breakpoint.c.
References _, bp_location::address, bp_catchpoint, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_software_breakpoint, bp_none, breakpoint_enabled(), bp_location::duplicate, gdb_assert, bp_location::gdbarch, bp_location::inserted, bp_location::loc_type, mark_inserted, mark_uninserted, memory_validate_breakpoint(), breakpoint::number, breakpoint::ops, overlay_debugging, bp_location::overlay_target_info, ovly_off, bp_location::owner, bp_location::pspace, breakpoint_ops::remove_location, bp_location::section, section_is_mapped(), section_is_overlay(), bp_target_info::shadow_len, shared_objfile_contains_address_p(), bp_location::shlib_disabled, solib_name_from_address(), bp_location::target_info, target_remove_breakpoint(), target_remove_hw_breakpoint, breakpoint::type, and warning().
Referenced by detach_breakpoints(), and remove_breakpoint().
int remove_breakpoints | ( | void | ) |
Definition at line 3184 of file breakpoint.c.
References ALL_BP_LOCATIONS, bp_location::inserted, is_tracepoint(), mark_uninserted, bp_location::owner, and remove_breakpoint().
Referenced by gdbsim_create_inferior(), gdbsim_mourn_inferior(), inferior_call_waitpid(), inferior_call_waitpid_cleanup(), linux_fork_context(), m32r_mourn_inferior(), normal_stop(), and target_disconnect().
Definition at line 3224 of file breakpoint.c.
References ALL_BP_LOCATIONS, find_inferior_pid(), bp_location::inserted, mark_uninserted, bp_target_info::persist, inferior::pspace, bp_location::pspace, remove_breakpoint(), and bp_location::target_info.
Referenced by follow_fork_inferior(), and target_detach().
|
static |
Definition at line 8523 of file breakpoint.c.
References inferior_ptid, ptid_get_pid(), and target_remove_exec_catchpoint.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 7935 of file breakpoint.c.
References inferior_ptid, ptid_get_pid(), and target_remove_fork_catchpoint.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8194 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 8052 of file breakpoint.c.
References inferior_ptid, ptid_get_pid(), and target_remove_vfork_catchpoint.
Referenced by initialize_breakpoint_ops().
void remove_jit_event_breakpoints | ( | void | ) |
Definition at line 7670 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_jit_event, current_program_space, delete_breakpoint(), breakpoint::loc, bp_location::pspace, and breakpoint::type.
|
static |
Definition at line 10758 of file breakpoint.c.
References bp_location::address, watchpoint::hw_wp_mask, bp_location::owner, target_remove_mask_watchpoint(), and bp_location::watchpoint_type.
Referenced by initialize_breakpoint_ops().
void remove_solib_event_breakpoints | ( | void | ) |
Definition at line 7681 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_shlib_event, current_program_space, delete_breakpoint(), breakpoint::loc, bp_location::pspace, and breakpoint::type.
Referenced by enable_break2(), and reload_shared_libraries().
void remove_solib_event_breakpoints_at_next_stop | ( | void | ) |
Definition at line 7694 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_shlib_event, current_program_space, disp_del_at_next_stop, breakpoint::disposition, breakpoint::loc, bp_location::pspace, and breakpoint::type.
void remove_thread_event_breakpoints | ( | void | ) |
Definition at line 7638 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_thread_event, current_program_space, delete_breakpoint(), breakpoint::loc, bp_location::pspace, and breakpoint::type.
Referenced by enable_thread_event_reporting(), thread_db_detach(), and thread_db_mourn_inferior().
|
static |
Definition at line 3201 of file breakpoint.c.
References _, ALL_BREAKPOINTS_SAFE, disp_del_at_next_stop, breakpoint::disposition, thread_info::num, breakpoint::number, printf_filtered(), breakpoint::thread, and user_breakpoint_p().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 10504 of file breakpoint.c.
References bp_location::address, watchpoint::cond_exp, watchpoint::exact, bp_location::length, bp_location::owner, target_remove_watchpoint, and bp_location::watchpoint_type.
Referenced by initialize_breakpoint_ops().
void resolve_sal_pc | ( | struct symtab_and_line * | sal | ) |
Definition at line 9851 of file breakpoint.c.
References _, block_linkage_function(), blockvector_for_pc_sect(), do_cleanups(), error(), symtab_and_line::explicit_line, find_line_pc(), fixup_symbol_section(), symtab_and_line::line, lookup_minimal_symbol_by_pc(), bound_minimal_symbol::minsym, MSYMBOL_OBJ_SECTION, bound_minimal_symbol::objfile, symtab_and_line::pc, symtab_and_line::pspace, save_current_space_and_thread(), symtab_and_line::section, skip_prologue_sal(), switch_to_program_space_and_thread(), SYMBOL_OBJ_SECTION, symtab_and_line::symtab, SYMTAB_COMPUNIT, SYMTAB_OBJFILE, and symtab_to_filename_for_display().
Referenced by addr_string_to_sals(), breakpoint_sals_to_pc(), jump_command(), scope_info(), and until_break_command().
|
static |
Definition at line 10770 of file breakpoint.c.
References bp_location::address, watchpoint::hw_wp_mask, bp_location::owner, and target_masked_watch_num_registers().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10052 of file breakpoint.c.
References target_ranged_break_num_registers().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10546 of file breakpoint.c.
References bp_location::address, watchpoint::exact, bp_location::length, bp_location::owner, and target_region_ok_for_hw_watchpoint.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 11387 of file breakpoint.c.
References hw_read, and watch_maybe_just_location().
Referenced by _initialize_breakpoint().
Definition at line 11381 of file breakpoint.c.
References hw_read, and watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
|
static |
Definition at line 15289 of file breakpoint.c.
References _, ALL_BREAKPOINTS, bp_disabled, bp_dprintf, CATCH, counted_command_line::commands, breakpoint::commands, breakpoint::cond_string, current_uiout, default_collect, do_cleanups(), breakpoint::enable_state, bp_location::enabled, END_CATCH, error(), fprintf_unfiltered(), gdb_fopen(), breakpoint::ignore_count, is_tracepoint(), is_watchpoint(), breakpoint::loc, make_cleanup(), make_cleanup_ui_file_delete(), bp_location::next, breakpoint::ops, print_command_lines(), breakpoint_ops::print_recreate, printf_filtered(), RETURN_MASK_ALL, safe_strerror(), save_trace_state_variables(), throw_exception(), TRY, breakpoint::type, ui_out_redirect(), user_breakpoint_p(), warning(), and xfree().
Referenced by save_breakpoints_command(), and save_tracepoints_command().
|
static |
Definition at line 15412 of file breakpoint.c.
References save_breakpoints().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 15496 of file breakpoint.c.
References _, all_commands, gdb_stdout, help_list(), and printf_unfiltered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 15420 of file breakpoint.c.
References is_tracepoint(), and save_breakpoints().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 12544 of file breakpoint.c.
References _, breakpoint::addr_string, bp_location::address, value_print_options::addressprint, fputs_filtered(), gdb_stdout, bp_location::gdbarch, get_user_print_options(), bp_location::line_number, breakpoint::loc, bp_location::next, paddress(), printf_filtered(), bp_location::symtab, and symtab_to_filename_for_display().
Referenced by bkpt_print_mention(), and tracepoint_print_mention().
|
static |
Definition at line 14770 of file breakpoint.c.
Referenced by _initialize_breakpoint().
void set_breakpoint_condition | ( | struct breakpoint * | b, |
const char * | exp, | ||
int | from_tty | ||
) |
Definition at line 960 of file breakpoint.c.
References _, bp_location::address, block_for_pc(), bp_location::cond, watchpoint::cond_exp, watchpoint::cond_exp_valid_block, breakpoint::cond_string, breakpoint::condition_not_parsed, error(), watchpoint::exp, innermost_block, is_watchpoint(), breakpoint::loc, mark_breakpoint_modified(), bp_location::next, breakpoint::number, observer_notify_breakpoint_modified(), parse_exp_1(), printf_filtered(), and xfree().
Referenced by bppy_set_condition(), condition_command(), create_ada_exception_catchpoint(), and gdbscm_set_breakpoint_condition_x().
|
static |
Definition at line 671 of file breakpoint.c.
References lookup_internalvar(), and set_internalvar_integer().
Referenced by break_range_command(), and set_breakpoint_number().
|
static |
Definition at line 7324 of file breakpoint.c.
References bp_location::address, adjust_breakpoint_address(), bp_breakpoint, bp_gnu_ifunc_resolver, bp_hardware_breakpoint, current_program_space, find_pc_partial_function_gnu_ifunc(), bp_location::function_name, gdb_assert, bp_location::gdbarch, gnu_ifunc_resolve_name, is_tracepoint(), breakpoint::loc, bp_location::next, bp_location::owner, bp_location::pspace, bp_location::related_address, breakpoint::related_breakpoint, bp_location::requested_address, and breakpoint::type.
Referenced by add_location_to_breakpoint(), and momentary_breakpoint_from_master().
|
static |
Definition at line 3297 of file breakpoint.c.
References breakpoint::number, and set_breakpoint_count().
Referenced by install_breakpoint().
|
static |
Definition at line 835 of file breakpoint.c.
References _, ALL_BP_LOCATIONS, condition_evaluation_mode, condition_evaluation_mode_1, bp_location::inserted, is_breakpoint(), mark_breakpoint_location_modified(), bp_location::needs_update, bp_location::owner, target_supports_evaluation_of_breakpoint_conditions, translate_condition_evaluation_mode(), UGLL_MAY_INSERT, update_global_location_list(), and warning().
Referenced by _initialize_breakpoint().
Definition at line 14331 of file breakpoint.c.
References _, ALL_BREAKPOINTS, error(), breakpoint::ignore_count, is_tracepoint(), breakpoint::number, observer_notify_breakpoint_modified(), and printf_filtered().
Referenced by bppy_set_ignore_count(), continue_command(), gdbscm_set_breakpoint_ignore_count_x(), and ignore_command().
void set_longjmp_breakpoint | ( | struct thread_info * | tp, |
struct frame_id | frame | ||
) |
Definition at line 7440 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_exception, bp_exception_master, bp_longjmp, bp_longjmp_master, current_program_space, thread_info::initiating_frame, longjmp_breakpoint_ops, momentary_breakpoint_from_master(), thread_info::num, breakpoint::pspace, breakpoint::thread, and breakpoint::type.
Referenced by finish_forward(), step_1(), until_break_command(), and until_next_command().
struct breakpoint* set_longjmp_breakpoint_for_call_dummy | ( | void | ) |
Definition at line 7500 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_longjmp_call_dummy, bp_longjmp_master, current_program_space, gdb_assert, inferior_ptid, momentary_breakpoint_from_master(), momentary_breakpoint_ops, pid_to_thread_id(), breakpoint::pspace, breakpoint::related_breakpoint, breakpoint::thread, and breakpoint::type.
Referenced by call_function_by_hand_dummy().
struct breakpoint* set_momentary_breakpoint | ( | struct gdbarch * | gdbarch, |
struct symtab_and_line | sal, | ||
struct frame_id frame_id | , | ||
enum bptype | type | ||
) |
Definition at line 8756 of file breakpoint.c.
References bp_enabled, disp_donttouch, breakpoint::disposition, breakpoint::enable_state, breakpoint::frame_id, frame_id_artificial_p(), gdb_assert, in_thread_list(), inferior_ptid, momentary_breakpoint_ops, pid_to_thread_id(), set_raw_breakpoint(), breakpoint::thread, UGLL_MAY_INSERT, and update_global_location_list_nothrow().
Referenced by arm_linux_copy_svc(), call_function_by_hand_dummy(), elf_gnu_ifunc_resolver_stop(), finish_forward(), insert_step_resume_breakpoint_at_sal_1(), set_momentary_breakpoint_at_pc(), and until_break_command().
struct breakpoint* set_momentary_breakpoint_at_pc | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | pc, | ||
enum bptype | type | ||
) |
Definition at line 8832 of file breakpoint.c.
References find_pc_line(), find_pc_overlay(), null_frame_id, symtab_and_line::pc, and set_momentary_breakpoint().
Referenced by insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), and insert_longjmp_resume_breakpoint().
struct breakpoint* set_raw_breakpoint | ( | struct gdbarch * | gdbarch, |
struct symtab_and_line | sal, | ||
enum bptype bptype | , | ||
const struct breakpoint_ops * | ops | ||
) |
Definition at line 7424 of file breakpoint.c.
References add_to_breakpoint_chain(), and init_raw_breakpoint().
Referenced by break_range_command(), create_internal_breakpoint(), and set_momentary_breakpoint().
|
static |
Definition at line 7308 of file breakpoint.c.
References add_to_breakpoint_chain(), and init_raw_breakpoint_without_location().
Referenced by momentary_breakpoint_from_master().
void set_std_terminate_breakpoint | ( | void | ) |
Definition at line 7595 of file breakpoint.c.
References ALL_BREAKPOINTS_SAFE, bp_std_terminate, bp_std_terminate_master, current_program_space, momentary_breakpoint_from_master(), momentary_breakpoint_ops, breakpoint::pspace, and breakpoint::type.
Referenced by call_function_by_hand_dummy().
|
static |
Definition at line 14878 of file breakpoint.c.
References lookup_internalvar(), and set_internalvar_integer().
Referenced by install_breakpoint().
|
static |
Definition at line 2154 of file breakpoint.c.
References bp_location::address, program_space::aspace, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_software_breakpoint, breakpoint_enabled(), program_space::breakpoints_not_allowed, debug_infrun, disp_del_at_next_stop, breakpoint::disposition, bp_location::duplicate, bp_location::enabled, program_space::executing_startup, fprintf_unfiltered(), gdb_stdlog, bp_location::gdbarch, bp_location::length, bp_location::loc_type, bp_location::owner, paddress(), bp_location::pspace, bp_location::shlib_disabled, stepping_past_instruction_at(), stepping_past_nonsteppable_watchpoint(), and user_breakpoint_p().
Referenced by download_tracepoint_locations(), insert_bp_location(), insert_breakpoint_locations(), unduplicated_should_be_inserted(), and update_global_location_list().
|
static |
Definition at line 450 of file breakpoint.c.
References _, and fprintf_filtered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 431 of file breakpoint.c.
References _, and fprintf_filtered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 14775 of file breakpoint.c.
Referenced by _initialize_breakpoint().
|
static |
Definition at line 399 of file breakpoint.c.
References _, and fprintf_filtered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 895 of file breakpoint.c.
References _, breakpoint_condition_evaluation_mode(), and fprintf_filtered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 415 of file breakpoint.c.
References _, and fprintf_filtered().
Referenced by _initialize_breakpoint().
int single_step_breakpoint_inserted_here_p | ( | struct address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 14860 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_single_step, breakpoint_has_location_inserted_here(), and breakpoint::type.
Referenced by handle_signal_stop().
int software_breakpoint_inserted_here_p | ( | struct address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4279 of file breakpoint.c.
References ALL_BP_LOCATIONS_AT_ADDR, bp_loc_software_breakpoint, bp_location_inserted_here_p(), and bp_location::loc_type.
Referenced by adjust_pc_after_break(), and check_stopped_by_breakpoint().
void start_rbreak_breakpoints | ( | void | ) |
Definition at line 686 of file breakpoint.c.
Referenced by rbreak_command().
|
static |
Definition at line 9932 of file breakpoint.c.
References _, and printf_filtered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 9973 of file breakpoint.c.
References _, cleanup::arg, break_command_1(), and printf_filtered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 9940 of file breakpoint.c.
References _, cleanup::arg, break_command_1(), and printf_filtered().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 14927 of file breakpoint.c.
References bp_static_tracepoint, create_breakpoint(), get_current_arch(), startswith(), strace_marker_breakpoint_ops, and tracepoint_breakpoint_ops.
Referenced by _initialize_breakpoint().
|
static |
Definition at line 13453 of file breakpoint.c.
References linespec_result::addr_string, tracepoint::base, discard_cleanups(), init_breakpoint_sal(), install_breakpoint(), make_cleanup(), symtabs_and_lines::nelts, linespec_sals::sals, symtabs_and_lines::sals, linespec_result::special_display, tracepoint::static_trace_marker_id_idx, VEC_index, and xfree().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13436 of file breakpoint.c.
References linespec_result::addr_string, linespec_sals::canonical, decode_static_tracepoint_spec(), linespec_sals::sals, savestring(), and VEC_safe_push.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13512 of file breakpoint.c.
References _, decode_static_tracepoint_spec(), error(), symtabs_and_lines::nelts, symtabs_and_lines::sals, tracepoint::static_trace_marker_id, and tracepoint::static_trace_marker_id_idx.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13530 of file breakpoint.c.
References breakpoint::ops, and strace_marker_breakpoint_ops.
Referenced by addr_string_to_sals(), and init_breakpoint_sal().
|
static |
Definition at line 12057 of file breakpoint.c.
References bp_location::duplicate, gdb_assert, bp_location::inserted, is_tracepoint(), bp_location::needs_update, bp_location::owner, and bp_location::target_info.
Referenced by update_global_location_list().
void tbreak_command | ( | char * | arg, |
int | from_tty | ||
) |
Definition at line 9914 of file breakpoint.c.
References BP_TEMPFLAG, and break_command_1().
Referenced by _initialize_breakpoint(), and run_command_1().
|
static |
Definition at line 11708 of file breakpoint.c.
Referenced by _initialize_breakpoint().
|
static |
Definition at line 9926 of file breakpoint.c.
References BP_HARDWAREFLAG, BP_TEMPFLAG, and break_command_1().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 14885 of file breakpoint.c.
References bp_tracepoint, create_breakpoint(), get_current_arch(), probe_linespec_to_ops(), tracepoint_breakpoint_ops, and tracepoint_probe_breakpoint_ops.
Referenced by _initialize_breakpoint().
|
static |
Definition at line 15150 of file breakpoint.c.
References _, ALL_TRACEPOINTS, error(), get_number_or_range_state::finished, get_tracepoint_by_number(), init_number_or_range(), skip_spaces(), and trace_pass_set_count().
Referenced by _initialize_breakpoint(), and create_tracepoint_from_upload().
|
static |
Definition at line 15134 of file breakpoint.c.
References _, tracepoint::base, breakpoint::number, observer_notify_breakpoint_modified(), tracepoint::pass_count, and printf_filtered().
Referenced by trace_pass_command().
|
static |
Definition at line 13216 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13302 of file breakpoint.c.
References create_breakpoints_sal_default().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13292 of file breakpoint.c.
References create_sals_from_address_default().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13323 of file breakpoint.c.
References decode_linespec_default().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 7039 of file breakpoint.c.
References bp_location::address, is_tracepoint(), and bp_location::owner.
Referenced by breakpoint_locations_match().
|
static |
Definition at line 13242 of file breakpoint.c.
References _, bp_fast_tracepoint, bp_static_tracepoint, bp_tracepoint, current_uiout, internal_error(), breakpoint::number, printf_filtered(), say_where(), breakpoint::type, and ui_out_is_mi_like_p().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13226 of file breakpoint.c.
References bp_static_tracepoint, gdb_assert, tracepoint::static_trace_marker_id, ui_out_field_string(), and ui_out_text().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13270 of file breakpoint.c.
References _, bp_fast_tracepoint, bp_static_tracepoint, bp_tracepoint, fprintf_unfiltered(), internal_error(), tracepoint::pass_count, and print_recreate_thread().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13335 of file breakpoint.c.
References bkpt_probe_create_sals_from_address().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13346 of file breakpoint.c.
References bkpt_probe_decode_linespec().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 13210 of file breakpoint.c.
References breakpoint_re_set_default().
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 15061 of file breakpoint.c.
References breakpoint_1(), current_uiout, default_collect_info(), is_tracepoint(), and ui_out_message().
Referenced by _initialize_breakpoint().
Definition at line 510 of file breakpoint.c.
References condition_evaluation_host, condition_evaluation_target, and target_supports_evaluation_of_breakpoint_conditions.
Referenced by breakpoint_condition_evaluation_mode(), and set_condition_evaluation_mode().
|
static |
Definition at line 2219 of file breakpoint.c.
References bp_location::duplicate, and should_be_inserted().
Referenced by update_global_location_list().
Definition at line 11431 of file breakpoint.c.
References _, add_continuation(), bp_until, until_break_command_continuation_args::breakpoint, until_break_command_continuation_args::breakpoint2, clear_proceed_status(), decode_line_1(), DECODE_LINE_FUNFIRSTLINE, delete_longjmp_breakpoint_cleanup(), discard_cleanups(), do_cleanups(), error(), find_pc_line(), frame_id_p(), frame_unwind_caller_arch(), frame_unwind_caller_id(), frame_unwind_caller_pc(), get_frame_arch(), get_last_displayed_line(), get_last_displayed_symtab(), get_selected_frame(), get_stack_frame_id(), inferior_ptid, inferior_thread(), is_running(), last_displayed_sal_is_valid(), make_cleanup(), make_cleanup_delete_breakpoint(), symtabs_and_lines::nelts, null_cleanup(), null_frame_id, thread_info::num, proceed(), resolve_sal_pc(), symtabs_and_lines::sals, set_longjmp_breakpoint(), set_momentary_breakpoint(), target_can_async_p, until_break_command_continuation_args::thread_num, until_break_command_continuation(), xfree(), and xmalloc().
Referenced by advance_command(), and until_command().
|
static |
Definition at line 11420 of file breakpoint.c.
References until_break_command_continuation_args::breakpoint, until_break_command_continuation_args::breakpoint2, delete_breakpoint(), delete_longjmp_breakpoint(), and until_break_command_continuation_args::thread_num.
Referenced by until_break_command().
void update_breakpoint_locations | ( | struct breakpoint * | b, |
struct symtabs_and_lines | sals, | ||
struct symtabs_and_lines | sals_end | ||
) |
Definition at line 13939 of file breakpoint.c.
References _, add_location_to_breakpoint(), all_locations_are_pending(), ambiguous_names_p(), block_for_pc(), bp_disabled, breakpoint_locations_match(), CATCH, bp_location::cond, breakpoint::cond_string, breakpoint::enable_state, bp_location::enabled, END_CATCH, find_breakpoint_range_end(), bp_location::function_name, bp_location::length, breakpoint::loc, locations_are_equal(), symtabs_and_lines::nelts, bp_location::next, breakpoint::number, observer_notify_breakpoint_modified(), parse_exp_1(), symtab_and_line::pc, printf_unfiltered(), symtab_and_line::pspace, RETURN_MASK_ERROR, symtabs_and_lines::sals, switch_to_program_space_and_thread(), TRY, UGLL_MAY_INSERT, update_global_location_list(), and warning().
Referenced by breakpoint_re_set_default(), elf_gnu_ifunc_resolver_return_stop(), and re_set_exception_catchpoint().
void update_breakpoints_after_exec | ( | void | ) |
Definition at line 3725 of file breakpoint.c.
References breakpoint::addr_string, ALL_BP_LOCATIONS, ALL_BREAKPOINTS_SAFE, bp_catchpoint, bp_exception, bp_exception_master, bp_exception_resume, bp_finish, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_overlay_event, bp_shlib_event, bp_single_step, bp_std_terminate_master, bp_step_resume, bp_thread_event, current_program_space, delete_breakpoint(), gdb_assert, bp_location::inserted, bp_location::pspace, breakpoint::pspace, and breakpoint::type.
Referenced by follow_exec().
|
static |
Definition at line 8989 of file breakpoint.c.
References _, command_line::body_count, command_line::body_list, breakpoint_set_commands(), command_line::control_type, error(), breakpoint::extra_string, gdb_assert, internal_error(), command_line::line, command_line::next, simple_control, skip_spaces(), target_can_run_breakpoint_commands, warning(), xmalloc(), and xstrprintf().
Referenced by dprintf_re_set(), init_breakpoint_sal(), and update_dprintf_commands().
|
static |
Definition at line 9059 of file breakpoint.c.
References ALL_BREAKPOINTS, bp_dprintf, breakpoint::type, and update_dprintf_command_list().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 12141 of file breakpoint.c.
References _, bp_location::address, ALL_BP_LOCATIONS, ALL_BREAKPOINTS, bp_access_watchpoint, bp_hardware_watchpoint, bp_location, bp_location_compare(), bp_location_count, bp_location_target_extensions_update(), bp_read_watchpoint, breakpoint_address_is_meaningful(), breakpoint_locations_match(), breakpoints_should_be_inserted_now(), bp_location::condition_changed, condition_modified, condition_unchanged, decref_bp_location(), do_cleanups(), download_tracepoint_locations(), bp_location::duplicate, bp_location::events_till_retirement, force_breakpoint_reinsertion(), gdb_assert, insert_breakpoint_locations(), bp_location::inserted, is_breakpoint(), is_hardware_watchpoint(), is_tracepoint(), breakpoint::loc, make_cleanup(), mark_uninserted, need_moribund_for_location_type(), bp_location::needs_update, bp_location::next, non_stop, program_space::num, breakpoint::number, overlay_debugging, bp_location::owner, printf_filtered(), bp_location::pspace, qsort, remove_breakpoint(), bp_location::section, should_be_inserted(), swap_insertion(), thread_count(), breakpoint::type, UGLL_DONT_INSERT, UGLL_INSERT, unduplicated_should_be_inserted(), update_inserted_breakpoint_locations(), VEC_safe_push, bp_location::watchpoint_type, xfree(), and xmalloc().
Referenced by bpstat_stop_status(), break_range_command(), breakpoint_program_space_exit(), condition_command(), create_breakpoint(), create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), delete_breakpoint(), disable_breakpoint(), disable_breakpoints_before_startup(), disable_command(), disable_overlay_breakpoints(), disable_watchpoints_before_interactive_call_start(), enable_breakpoint_disp(), enable_command(), enable_overlay_breakpoints(), enable_watchpoints_after_interactive_call_stop(), insert_breakpoints(), insert_single_step_breakpoint(), install_breakpoint(), set_condition_evaluation_mode(), update_breakpoint_locations(), and update_global_location_list_nothrow().
|
static |
Definition at line 12501 of file breakpoint.c.
References CATCH, END_CATCH, RETURN_MASK_ERROR, TRY, and update_global_location_list().
Referenced by create_jit_event_breakpoint(), create_solib_event_breakpoint_1(), create_thread_event_breakpoint(), momentary_breakpoint_from_master(), and set_momentary_breakpoint().
|
static |
Definition at line 3020 of file breakpoint.c.
References ALL_BP_LOCATIONS, do_cleanups(), error_stream(), fprintf_unfiltered(), gdbarch_has_global_breakpoints(), inferior_ptid, insert_bp_location(), bp_location::inserted, is_breakpoint(), make_cleanup_ui_file_delete(), mem_fileopen(), bp_location::needs_update, null_ptid, bp_location::owner, bp_location::pspace, ptid_equal(), save_current_space_and_thread(), switch_to_program_space_and_thread(), target_gdbarch(), and target_terminal_ours_for_output().
Referenced by update_global_location_list().
|
static |
Definition at line 13811 of file breakpoint.c.
References _, static_tracepoint_marker::address, current_uiout, find_line_pc(), find_pc_line(), find_pc_sect_function(), init_sal(), symtab_and_line::line, symtab_and_line::pc, release_static_tracepoint_marker(), tracepoint::static_trace_marker_id, static_tracepoint_marker::str_id, SYMBOL_PRINT_NAME, symtab_and_line::symtab, symtab_to_filename_for_display(), symtab_to_fullname(), target_static_tracepoint_marker_at, target_static_tracepoint_markers_by_strid, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), VEC(), VEC_empty, VEC_index, warning(), xfree(), and xstrprintf().
Referenced by addr_string_to_sals().
|
static |
Definition at line 1814 of file breakpoint.c.
References _, bp_location::address, allocate_bp_location(), watchpoint::base, bp_access_watchpoint, bp_hardware_watchpoint, bp_loc_hardware_watchpoint, bp_loc_other, bp_read_watchpoint, bp_watchpoint, can_use_hardware_watchpoint(), check_typedef(), watchpoint::cond_exp, watchpoint::cond_exp_valid_block, breakpoint::cond_string, disp_del_at_next_stop, breakpoint::disposition, error(), watchpoint::exact, watchpoint::exp, watchpoint::exp_string, watchpoint::exp_string_reparse, watchpoint::exp_valid_block, extract_bitfield_from_watchpoint_value(), fetch_subexp_value(), frame_find_by_id(), bp_location::gdbarch, gdbarch_stack_frame_destroyed_p(), get_current_frame(), get_frame_arch(), get_frame_id(), get_frame_pc(), get_frame_program_space(), get_selected_frame(), get_type_arch(), hw_access, hw_read, hw_watchpoint_use_count(), hw_watchpoint_used_count_others(), hw_write, is_masked_watchpoint(), bp_location::length, breakpoint::loc, bp_location::loc_type, lval_memory, bp_location::next, value::next, breakpoint::number, breakpoint::ops, parse_exp_1(), printf_filtered(), bp_location::pspace, release_value(), select_frame(), target_can_use_hardware_watchpoint, target_has_execution, type, breakpoint::type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRUCT, TYPE_LENGTH, watchpoint::val, watchpoint::val_bitpos, watchpoint::val_bitsize, watchpoint::val_valid, value_address(), value_bitpos(), value_bitsize(), value_free(), value_lazy(), VALUE_LVAL, value_next(), value_type(), watchpoint_del_at_next_stop(), watchpoint::watchpoint_frame, watchpoint_in_thread_scope(), bp_location::watchpoint_type, breakpoint_ops::works_in_software_mode, and xfree().
Referenced by bpstat_stop_status(), enable_breakpoint_disp(), insert_breakpoints(), re_set_watchpoint(), and watch_command_1().
int user_breakpoint_p | ( | struct breakpoint * | b | ) |
Definition at line 6645 of file breakpoint.c.
References breakpoint::number.
Referenced by breakpoint_1(), delete_command(), delete_trace_command(), describe_other_breakpoints(), disable_command(), enable_command(), remove_threaded_breakpoints(), save_breakpoints(), and should_be_inserted().
|
static |
Definition at line 1173 of file breakpoint.c.
References _, command_line::body_count, command_line::body_list, bp_fast_tracepoint, bp_static_tracepoint, check_no_tracepoint_commands(), command_line::control_type, error(), gdb_assert, is_tracepoint(), command_line::line, command_line::next, tracepoint::step_count, breakpoint::type, validate_actionline(), and while_stepping_control.
Referenced by breakpoint_set_commands(), and do_map_commands_command().
VEC | ( | bp_location_p | ) |
Definition at line 624 of file breakpoint.c.
References ALL_BREAKPOINTS, and func.
Referenced by clear_command(), create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), decode_static_tracepoint_spec(), print_one_breakpoint_location(), update_static_tracepoint(), and VEC().
|
static |
Definition at line 1035 of file breakpoint.c.
References ALL_BREAKPOINTS, len, breakpoint::number, skip_spaces_const(), skip_to_space_const(), VEC(), VEC_safe_push, and xsnprintf().
VEC | ( | breakpoint_p | ) |
Definition at line 1239 of file breakpoint.c.
References bp_location::address, ALL_BREAKPOINTS, bp_static_tracepoint, breakpoint::loc, bp_location::next, breakpoint::type, VEC(), and VEC_safe_push.
|
static |
Definition at line 11375 of file breakpoint.c.
References hw_write, and watch_maybe_just_location().
Referenced by _initialize_breakpoint().
|
static |
Definition at line 10934 of file breakpoint.c.
References _, bp_location::address, adjust_breakpoint_address(), cleanup::arg, watchpoint::base, block_innermost_frame(), bp_access_watchpoint, bp_enabled, bp_hardware_watchpoint, bp_read_watchpoint, bp_watchpoint_scope, CATCH, check_typedef(), watchpoint::cond_exp_valid_block, breakpoint::cond_string, core_addr_to_string(), create_internal_breakpoint(), current_program_space, delete_breakpoint(), disp_del, disp_donttouch, breakpoint::disposition, do_cleanups(), breakpoint::enable_state, END_CATCH, error(), watchpoint::exp, watchpoint::exp_string, watchpoint::exp_string_reparse, watchpoint::exp_valid_block, fetch_subexp_value(), breakpoint::frame_id, frame_id_p(), frame_unwind_caller_arch(), frame_unwind_caller_id(), frame_unwind_caller_pc(), bp_location::gdbarch, get_frame_id(), hw_access, hw_read, watchpoint::hw_wp_mask, inferior_ptid, init_raw_breakpoint_without_location(), innermost_block, install_breakpoint(), invalid_thread_id_error(), breakpoint::language, language_c, len, breakpoint::loc, make_cleanup(), masked_watchpoint_breakpoint_ops, momentary_breakpoint_ops, name, null_frame_id, null_ptid, parse_exp_1(), parse_to_comma_and_eval(), breakpoint::pspace, breakpoint::related_breakpoint, release_value(), bp_location::requested_address, RETURN_MASK_ALL, savestring(), skip_spaces_const(), skip_to_space_const(), startswith(), target_masked_watch_num_registers(), breakpoint::thread, throw_exception(), TRY, breakpoint::type, TYPE_TARGET_TYPE, type_to_string(), update_watchpoint(), watchpoint::val, watchpoint::val_bitpos, watchpoint::val_bitsize, watchpoint::val_valid, valid_thread_id(), value_addr(), value_as_address(), value_bitpos(), value_bitsize(), value_free_to_mark(), value_mark(), value_type(), watchpoint_breakpoint_ops, watchpoint_exp_is_const(), watchpoint::watchpoint_frame, watchpoint::watchpoint_thread, xfree(), and xstrprintf().
Referenced by awatch_command_wrapper(), rwatch_command_wrapper(), watch_command_wrapper(), and watch_maybe_just_location().
Definition at line 11350 of file breakpoint.c.
References hw_write, and watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
Definition at line 11359 of file breakpoint.c.
References check_for_argument(), skip_spaces(), and watch_command_1().
Referenced by awatch_command(), rwatch_command(), and watch_command().
|
static |
Definition at line 5007 of file breakpoint.c.
References async_reason_lookup(), watchpoint::base, bpstats::breakpoint_at, breakpoint::commands, contained_in(), current_uiout, decref_counted_command_line(), EXEC_ASYNC_WATCHPOINT_SCOPE, watchpoint::exp, watchpoint::exp_valid_block, extract_bitfield_from_watchpoint_value(), fetch_subexp_value(), frame_find_by_id(), gdb_assert, gdbarch_stack_frame_destroyed_p(), get_current_frame(), get_frame_arch(), get_frame_function(), get_frame_pc(), if(), is_masked_watchpoint(), breakpoint::number, bpstats::old_val, release_value(), select_frame(), SYMBOL_BLOCK_VALUE, ui_out_field_int(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_text(), watchpoint::val, watchpoint::val_bitsize, watchpoint::val_valid, value_equal_contents(), value_free_to_mark(), value_mark(), watchpoint_del_at_next_stop(), watchpoint::watchpoint_frame, watchpoint_in_thread_scope(), WP_DELETED, WP_IGNORE, WP_VALUE_CHANGED, and WP_VALUE_NOT_CHANGED.
Referenced by bpstat_check_watchpoint().
|
static |
Definition at line 1723 of file breakpoint.c.
References watchpoint::base, bp_watchpoint_scope, disp_del_at_next_stop, breakpoint::disposition, gdb_assert, breakpoint::related_breakpoint, and breakpoint::type.
Referenced by bpstat_check_watchpoint(), delete_breakpoint(), update_watchpoint(), and watchpoint_check().
|
static |
Definition at line 10330 of file breakpoint.c.
References expression::elts, LOC_BLOCK, LOC_CONST, LOC_CONST_BYTES, expression::nelts, exp_element::opcode, operator_length(), exp_element::symbol, and SYMBOL_CLASS.
Referenced by watch_command_1().
|
static |
Definition at line 1711 of file breakpoint.c.
References watchpoint::base, current_program_space, inferior_ptid, is_executing(), null_ptid, breakpoint::pspace, ptid_equal(), and watchpoint::watchpoint_thread.
Referenced by update_watchpoint(), and watchpoint_check().
|
static |
Definition at line 6950 of file breakpoint.c.
References bp_location::address, program_space::aspace, watchpoint::cond_exp, gdb_assert, bp_location::length, bp_location::owner, bp_location::pspace, target_can_accel_watchpoint_condition, breakpoint::type, and bp_location::watchpoint_type.
Referenced by breakpoint_locations_match(), and insert_bp_location().
Definition at line 4690 of file breakpoint.c.
References _, fprintf_unfiltered(), get_user_print_options(), and value_print().
Referenced by print_it_watchpoint().
|
static |
Definition at line 6839 of file breakpoint.c.
References breakpoint_1(), current_uiout, is_watchpoint(), and ui_out_message().
Referenced by _initialize_breakpoint().
int watchpoints_triggered | ( | struct target_waitstatus * | ws | ) |
Definition at line 4912 of file breakpoint.c.
References bp_location::address, ALL_BREAKPOINTS, current_target, watchpoint::hw_wp_mask, is_hardware_watchpoint(), is_masked_watchpoint(), bp_location::length, breakpoint::loc, bp_location::next, target_stopped_by_watchpoint, target_stopped_data_address, target_watchpoint_addr_within_range, watch_triggered_no, watch_triggered_unknown, watch_triggered_yes, and watchpoint::watchpoint_triggered.
Referenced by handle_signal_stop().
|
static |
Definition at line 10781 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
|
static |
Definition at line 10558 of file breakpoint.c.
References bp_hardware_watchpoint, bp_watchpoint, and breakpoint::type.
Referenced by initialize_breakpoint_ops().
Definition at line 5926 of file breakpoint.c.
References gdb_assert, ui_out_query_field(), and wrap_indent.
Referenced by print_breakpoint_location().
|
static |
Definition at line 447 of file breakpoint.c.
|
static |
Definition at line 429 of file breakpoint.c.
struct breakpoint_ops base_breakpoint_ops |
Definition at line 12761 of file breakpoint.c.
Referenced by dtor_catch_exec(), dtor_catch_solib(), dtor_catch_syscall(), dtor_watchpoint(), initialize_breakpoint_ops(), initialize_signal_catchpoint_ops(), initialize_syscall_catchpoint_ops(), and signal_catchpoint_dtor().
|
static |
Definition at line 300 of file breakpoint.c.
Referenced by initialize_breakpoint_ops().
struct breakpoint_ops bkpt_breakpoint_ops |
Definition at line 313 of file breakpoint.c.
Referenced by bpfinishpy_init(), bppy_init(), break_command_1(), check_status_exception_catchpoint(), dtor_exception(), dtor_exception_catchpoint(), gdbscm_register_breakpoint_x(), initialize_ada_catchpoint_ops(), initialize_breakpoint_ops(), initialize_throw_catchpoint_ops(), mi_cmd_break_insert_1(), re_set_exception(), and spu_catch_start().
|
static |
Definition at line 316 of file breakpoint.c.
Referenced by break_command_1(), and initialize_breakpoint_ops().
|
static |
Definition at line 599 of file breakpoint.c.
Referenced by update_global_location_list().
|
static |
Definition at line 603 of file breakpoint.c.
Referenced by breakpoint_xfer_memory(), and update_global_location_list().
|
static |
Definition at line 12604 of file breakpoint.c.
|
static |
Definition at line 611 of file breakpoint.c.
|
static |
Definition at line 619 of file breakpoint.c.
struct breakpoint* breakpoint_chain |
Definition at line 595 of file breakpoint.c.
Referenced by add_to_breakpoint_chain(), and tui_update_breakpoint_info().
|
static |
Definition at line 3363 of file breakpoint.c.
|
static |
Definition at line 380 of file breakpoint.c.
|
static |
Definition at line 396 of file breakpoint.c.
|
static |
Definition at line 15468 of file breakpoint.c.
|
static |
Definition at line 8611 of file breakpoint.c.
Referenced by catch_exec_command_1(), and initialize_breakpoint_ops().
|
static |
Definition at line 8037 of file breakpoint.c.
Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().
|
static |
Definition at line 8356 of file breakpoint.c.
Referenced by add_solib_catchpoint(), and initialize_breakpoint_ops().
|
static |
Definition at line 8153 of file breakpoint.c.
Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().
|
static |
Definition at line 487 of file breakpoint.c.
|
static |
Definition at line 484 of file breakpoint.c.
Referenced by bp_condition_evaluator().
Definition at line 490 of file breakpoint.c.
|
static |
Definition at line 488 of file breakpoint.c.
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), and translate_condition_evaluation_mode().
|
static |
Definition at line 502 of file breakpoint.c.
Referenced by set_condition_evaluation_mode().
|
static |
Definition at line 498 of file breakpoint.c.
Referenced by set_condition_evaluation_mode().
|
static |
Definition at line 489 of file breakpoint.c.
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), and translate_condition_evaluation_mode().
|
static |
Definition at line 358 of file breakpoint.c.
struct breakpoint_ops dprintf_breakpoint_ops |
Definition at line 319 of file breakpoint.c.
Referenced by dprintf_command(), initialize_breakpoint_ops(), and mi_cmd_break_insert_1().
|
static |
Definition at line 354 of file breakpoint.c.
|
static |
Definition at line 344 of file breakpoint.c.
|
static |
Definition at line 337 of file breakpoint.c.
|
static |
Definition at line 330 of file breakpoint.c.
|
static |
Definition at line 329 of file breakpoint.c.
Definition at line 331 of file breakpoint.c.
|
static |
Definition at line 328 of file breakpoint.c.
|
static |
Definition at line 15756 of file breakpoint.c.
|
static |
Definition at line 545 of file breakpoint.c.
|
static |
Definition at line 3288 of file breakpoint.c.
|
static |
Definition at line 303 of file breakpoint.c.
Referenced by create_exception_master_breakpoint(), create_jit_event_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_solib_event_breakpoint_1(), create_std_terminate_master_breakpoint(), create_thread_event_breakpoint(), and initialize_breakpoint_ops().
|
static |
Definition at line 309 of file breakpoint.c.
Referenced by initialize_breakpoint_ops(), and set_longjmp_breakpoint().
Definition at line 3329 of file breakpoint.c.
|
static |
Definition at line 10920 of file breakpoint.c.
Referenced by initialize_breakpoint_ops(), is_masked_watchpoint(), and watch_command_1().
|
static |
Definition at line 306 of file breakpoint.c.
Referenced by initialize_breakpoint_ops(), longjmp_bkpt_dtor(), new_single_step_breakpoint(), set_longjmp_breakpoint_for_call_dummy(), set_momentary_breakpoint(), set_std_terminate_breakpoint(), and watch_command_1().
|
static |
Definition at line 3366 of file breakpoint.c.
Referenced by create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), and msym_not_found_p().
|
static |
Definition at line 14955 of file breakpoint.c.
|
static |
Definition at line 548 of file breakpoint.c.
|
static |
Definition at line 413 of file breakpoint.c.
|
static |
Definition at line 10174 of file breakpoint.c.
Referenced by break_range_command(), and initialize_breakpoint_ops().
|
static |
Definition at line 680 of file breakpoint.c.
Referenced by end_rbreak_breakpoints().
|
static |
Definition at line 13527 of file breakpoint.c.
Referenced by initialize_breakpoint_ops(), strace_command(), and strace_marker_p().
int target_exact_watchpoints = 0 |
Definition at line 551 of file breakpoint.c.
Referenced by _initialize_rs6000_tdep().
|
static |
Definition at line 15471 of file breakpoint.c.
|
static |
Definition at line 14954 of file breakpoint.c.
struct breakpoint_ops tracepoint_breakpoint_ops |
Definition at line 13329 of file breakpoint.c.
Referenced by create_tracepoint_from_upload(), ftrace_command(), initialize_breakpoint_ops(), mi_cmd_break_insert_1(), strace_command(), and trace_command().
|
static |
Definition at line 13353 of file breakpoint.c.
Referenced by initialize_breakpoint_ops(), and trace_command().
|
static |
Definition at line 10740 of file breakpoint.c.
Referenced by initialize_breakpoint_ops(), and watch_command_1().