GDB (xrefs)
|
#include "frame.h"
#include "value.h"
#include "ax.h"
#include "command.h"
#include "gdbsupport/break-common.h"
#include "probe.h"
#include "location.h"
#include <vector>
#include "gdbsupport/array-view.h"
#include "gdbsupport/filtered-iterator.h"
#include "gdbsupport/function-view.h"
#include "gdbsupport/next-iterator.h"
#include "gdbsupport/iterator-range.h"
#include "gdbsupport/refcounted-object.h"
#include "gdbsupport/safe-iterator.h"
#include "cli/cli-script.h"
#include "target/waitstatus.h"
Go to the source code of this file.
Classes | |
struct | bp_target_info |
class | bp_location |
struct | bp_location_ref_policy |
struct | breakpoint_ops |
struct | breakpoint |
struct | code_breakpoint |
struct | watchpoint |
struct | tracepoint |
struct | catchpoint |
struct | bpstat_what |
struct | bpstat |
struct | breakpoint_deleter |
class | scoped_rbreak_breakpoints |
struct | tracepoint_filter |
Macros | |
#define | BREAKPOINT_MAX 16 |
#define | CATCH_PERMANENT ((void *) (uintptr_t) 0) |
#define | CATCH_TEMPORARY ((void *) (uintptr_t) 1) |
Typedefs | |
typedef gdb::ref_ptr< bp_location, bp_location_ref_policy > | bp_location_ref_ptr |
using | bp_location_range = next_range< bp_location > |
typedef std::unique_ptr< struct breakpoint, breakpoint_deleter > | breakpoint_up |
using | breakpoint_iterator = next_iterator< breakpoint > |
using | breakpoint_range = iterator_range< breakpoint_iterator > |
using | breakpoint_safe_range = basic_safe_range< breakpoint_range > |
using | tracepoint_iterator = filtered_iterator< breakpoint_iterator, tracepoint_filter > |
using | tracepoint_range = iterator_range< tracepoint_iterator > |
Variables | |
bool | target_exact_watchpoints |
const struct breakpoint_ops | code_breakpoint_ops |
cmd_list_element * | commands_cmd_element |
bool | fix_multi_location_breakpoint_output_globally |
bool | fix_breakpoint_script_output_globally |
#define BREAKPOINT_MAX 16 |
Definition at line 78 of file breakpoint.h.
#define CATCH_PERMANENT ((void *) (uintptr_t) 0) |
Definition at line 1464 of file breakpoint.h.
#define CATCH_TEMPORARY ((void *) (uintptr_t) 1) |
Definition at line 1465 of file breakpoint.h.
using bp_location_range = next_range<bp_location> |
Definition at line 613 of file breakpoint.h.
typedef gdb::ref_ptr<bp_location, bp_location_ref_policy> bp_location_ref_ptr |
Definition at line 538 of file breakpoint.h.
using breakpoint_iterator = next_iterator<breakpoint> |
Definition at line 1818 of file breakpoint.h.
using breakpoint_range = iterator_range<breakpoint_iterator> |
Definition at line 1822 of file breakpoint.h.
using breakpoint_safe_range = basic_safe_range<breakpoint_range> |
Definition at line 1831 of file breakpoint.h.
typedef std::unique_ptr<struct breakpoint, breakpoint_deleter> breakpoint_up |
Definition at line 1430 of file breakpoint.h.
using tracepoint_iterator = filtered_iterator<breakpoint_iterator, tracepoint_filter> |
Definition at line 1848 of file breakpoint.h.
using tracepoint_range = iterator_range<tracepoint_iterator> |
Definition at line 1853 of file breakpoint.h.
enum bp_loc_type |
Enumerator | |
---|---|
bp_loc_software_breakpoint | |
bp_loc_hardware_breakpoint | |
bp_loc_software_watchpoint | |
bp_loc_hardware_watchpoint | |
bp_loc_other |
Definition at line 314 of file breakpoint.h.
enum bp_print_how |
Enumerator | |
---|---|
print_it_normal | |
print_it_noop | |
print_it_done |
Definition at line 1272 of file breakpoint.h.
enum bpdisp |
Enumerator | |
---|---|
disp_del | |
disp_del_at_next_stop | |
disp_disable | |
disp_donttouch |
Definition at line 235 of file breakpoint.h.
Definition at line 1128 of file breakpoint.h.
enum bptype |
Definition at line 83 of file breakpoint.h.
Enumerator | |
---|---|
CREATE_BREAKPOINT_FLAGS_INSERTED |
Definition at line 1499 of file breakpoint.h.
enum breakpoint_here |
Enumerator | |
---|---|
no_breakpoint_here | |
ordinary_breakpoint_here | |
permanent_breakpoint_here |
Definition at line 1350 of file breakpoint.h.
enum condition_status |
Enumerator | |
---|---|
condition_unchanged | |
condition_modified | |
condition_updated |
Definition at line 247 of file breakpoint.h.
enum enable_state |
Enumerator | |
---|---|
bp_disabled | |
bp_enabled | |
bp_call_disabled |
Definition at line 216 of file breakpoint.h.
enum exception_event_kind |
Enumerator | |
---|---|
EX_EVENT_THROW | |
EX_EVENT_RETHROW | |
EX_EVENT_CATCH |
Definition at line 54 of file breakpoint.h.
enum inf_context |
Enumerator | |
---|---|
inf_starting | |
inf_running | |
inf_exited | |
inf_execd |
Definition at line 1340 of file breakpoint.h.
enum print_stop_action |
Enumerator | |
---|---|
PRINT_UNKNOWN | |
PRINT_SRC_AND_LOC | |
PRINT_SRC_ONLY | |
PRINT_NOTHING |
Definition at line 542 of file breakpoint.h.
enum remove_bp_reason |
Enumerator | |
---|---|
REMOVE_BREAKPOINT | |
DETACH_BREAKPOINT |
Definition at line 63 of file breakpoint.h.
enum stop_stack_kind |
Enumerator | |
---|---|
STOP_NONE | |
STOP_STACK_DUMMY | |
STOP_STD_TERMINATE |
Definition at line 1179 of file breakpoint.h.
enum watchpoint_triggered |
Enumerator | |
---|---|
watch_triggered_no | |
watch_triggered_unknown | |
watch_triggered_yes |
Definition at line 591 of file breakpoint.h.
void add_catch_command | ( | const char * | name, |
const char * | docstring, | ||
cmd_func_ftype * | func, | ||
completer_ftype * | completer, | ||
void * | user_data_catch, | ||
void * | user_data_tcatch | ||
) |
Definition at line 14303 of file breakpoint.c.
References add_cmd(), catch_cmdlist, class_breakpoint, cmd_list_element::completer, cmd_list_element::func, func, name, set_cmd_completer(), cmd_list_element::set_context(), and tcatch_cmdlist.
void add_solib_catchpoint | ( | const char * | arg, |
bool | is_load, | ||
bool | is_temp, | ||
bool | enabled | ||
) |
Definition at line 224 of file break-catch-load.c.
References bp_disabled, bp_enabled, get_current_arch(), and install_breakpoint().
Referenced by catch_load_or_unload(), and mi_catch_load_unload().
const std::vector< bp_location * > & all_bp_locations | ( | ) |
Definition at line 657 of file breakpoint.c.
References bp_locations.
Referenced by bp_locations_target_extensions_update(), breakpoint_free_objfile(), breakpoint_here_p(), breakpoint_in_range_p(), breakpoint_program_space_exit(), detach_breakpoints(), disable_breakpoints_in_shlibs(), disable_breakpoints_in_unloaded_shlib(), insert_bp_location(), insert_breakpoint_locations(), mark_breakpoints_out(), record_full_init_record_breakpoints(), remove_breakpoints(), remove_breakpoints_inf(), set_condition_evaluation_mode(), update_breakpoints_after_exec(), update_global_location_list(), and update_inserted_breakpoint_locations().
breakpoint_range all_breakpoints | ( | ) |
Definition at line 629 of file breakpoint.c.
References breakpoint_chain.
Referenced by all_breakpoints_safe(), bpstat_check_watchpoint(), bpstat_should_step(), breakpoint_1(), solib_catchpoint::breakpoint_hit(), build_bpstat_chain(), catching_syscall_number(), clear_breakpoint_hit_counts(), clear_command(), condition_completer(), delete_breakpoint(), delete_command(), describe_other_breakpoints(), disable_breakpoints_in_freed_objfile(), disable_overlay_breakpoints(), disable_watchpoints_before_interactive_call_start(), enable_disable_command(), enable_overlay_breakpoints(), enable_watchpoints_after_interactive_call_stop(), gdbpy_breakpoints(), gdbscm_breakpoints(), get_breakpoint(), hardware_watchpoint_inserted_in_range(), has_multiple_locations(), 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_breakpoint_condition(), set_ignore_count(), set_longjmp_breakpoint_for_call_dummy(), single_step_breakpoint_inserted_here_p(), static_tracepoints_here(), tui_source_window_base::update_breakpoint_info(), update_dprintf_commands(), update_global_location_list(), and watchpoints_triggered().
breakpoint_safe_range all_breakpoints_safe | ( | ) |
Definition at line 637 of file breakpoint.c.
References all_breakpoints().
Referenced by bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), breakpoint_auto_delete(), breakpoint_init_inferior(), breakpoint_program_space_exit(), breakpoint_re_set(), delete_command(), delete_longjmp_breakpoint(), delete_longjmp_breakpoint_at_next_stop(), delete_std_terminate_breakpoint(), delete_trace_command(), map_breakpoint_number_range(), pop_dummy_frame(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_solib_event_breakpoints_at_next_stop(), remove_threaded_breakpoints(), set_longjmp_breakpoint(), set_std_terminate_breakpoint(), svr4_update_solib_event_breakpoints(), and update_breakpoints_after_exec().
tracepoint_range all_tracepoints | ( | ) |
Definition at line 645 of file breakpoint.c.
References breakpoint_chain.
Referenced by delete_trace_command(), download_tracepoint_locations(), find_matching_tracepoint_location(), get_tracepoint(), get_tracepoint_by_number(), get_tracepoint_by_number_on_target(), process_tracepoint_on_disconnect(), start_tracing(), stop_tracing(), trace_pass_command(), and tstatus_command().
void awatch_command_wrapper | ( | const char * | arg, |
int | from_tty, | ||
bool | internal | ||
) |
Definition at line 10516 of file breakpoint.c.
References watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
const char * bpdisp_text | ( | enum bpdisp | disp | ) |
Definition at line 437 of file breakpoint.c.
Referenced by ada_catchpoint::print_it(), exec_catchpoint::print_it(), fork_catchpoint::print_it(), solib_catchpoint::print_it(), syscall_catchpoint::print_it(), exception_catchpoint::print_it(), ordinary_breakpoint::print_it(), ranged_breakpoint::print_it(), and print_one_breakpoint_location().
bool bpstat_causes_stop | ( | bpstat * | bs | ) |
Definition at line 6044 of file breakpoint.c.
References bpstat::next, and bpstat::stop.
Referenced by bpstat_stop_status(), handle_inferior_event(), and handle_syscall_event().
void bpstat_clear | ( | bpstat ** | bsp | ) |
Definition at line 4384 of file breakpoint.c.
References bpstat::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 4558 of file breakpoint.c.
References bpstat::commands, thread_info::control, inferior_ptid, inferior_thread(), bpstat::next, bpstat::old_val, and thread_control_state::stop_bpstat.
Referenced by bpstat_do_actions(), execute_command(), and fetch_inferior_event().
Definition at line 4418 of file breakpoint.c.
References bpstat::next.
Referenced by save_infcall_control_state().
void bpstat_do_actions | ( | void | ) |
Definition at line 4754 of file breakpoint.c.
References bpstat_clear_actions(), bpstat_do_actions_1(), thread_info::control, get_bpstat_thread(), and thread_control_state::stop_bpstat.
Referenced by catch_command_errors(), command_handler(), inferior_event_handler(), and mi_execute_command().
bool bpstat_explains_signal | ( | bpstat * | bsp, |
enum | gdb_signal | ||
) |
Definition at line 4461 of file breakpoint.c.
References bpstat::breakpoint_at, breakpoint::explains_signal(), and bpstat::next.
Referenced by handle_signal_stop().
bpstat * bpstat_find_breakpoint | ( | bpstat * | bsp, |
struct breakpoint * | breakpoint | ||
) |
Definition at line 4445 of file breakpoint.c.
References bpstat::breakpoint_at, and bpstat::next.
Referenced by until_break_fsm::should_stop(), and finish_command_fsm::should_stop().
int bpstat_locno | ( | const bpstat * | bs | ) |
Definition at line 4507 of file breakpoint.c.
References bp_location::address, bpstat::bp_location_at, bpstat::breakpoint_at, bp_location::gdbarch, breakpoint::loc, bp_location::next, breakpoint::number, and paddress().
Referenced by bpstat_do_actions_1(), and print_num_locno().
int bpstat_num | ( | bpstat ** | bsp, |
int * | num | ||
) |
Definition at line 4485 of file breakpoint.c.
References bpstat::next, and breakpoint::number.
Referenced by continue_command(), and info_program_command().
enum print_stop_action bpstat_print | ( | bpstat * | bs, |
target_waitkind | kind | ||
) |
Definition at line 4934 of file breakpoint.c.
References bpstat::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_location().
void bpstat_run_callbacks | ( | bpstat * | bs_head | ) |
Definition at line 6004 of file breakpoint.c.
References bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_jit_event, bpstat::bp_location_at, bpstat::breakpoint_at, gnu_ifunc_resolver_return_stop, gnu_ifunc_resolver_stop, handle_jit_event(), bpstat::next, and breakpoint::type.
Referenced by process_event_stop_test().
bool bpstat_should_step | ( | ) |
Definition at line 6032 of file breakpoint.c.
References all_breakpoints(), bp_watchpoint, breakpoint_enabled(), breakpoint::loc, and breakpoint::type.
Referenced by currently_stepping(), and resume_1().
bpstat * bpstat_stop_status | ( | const address_space * | aspace, |
CORE_ADDR | pc, | ||
thread_info * | thread, | ||
const target_waitstatus & | ws, | ||
bpstat * | stop_chain = nullptr |
||
) |
Definition at line 5672 of file breakpoint.c.
References breakpoint::after_condition_true(), bp_disabled, bp_shlib_event, bpstat_causes_stop(), bpstat_check_breakpoint_conditions(), bpstat::breakpoint_at, gdb::observers::breakpoint_modified, build_bpstat_chain(), breakpoint::check_status(), command_line_is_silent(), breakpoint::commands, bpstat::commands, disp_disable, breakpoint::disposition, breakpoint::enable_count, breakpoint::enable_state, handle_solib_event(), breakpoint::hit_count, is_hardware_watchpoint(), bpstat::next, bpstat::print, bpstat::print_it, print_it_noop, breakpoint::silent, bpstat::stop, breakpoint::thread, breakpoint::type, UGLL_DONT_INSERT, UGLL_MAY_INSERT, update_global_location_list(), and update_watchpoint().
Referenced by bpstat_stop_status_nowatch(), and handle_signal_stop().
bpstat * bpstat_stop_status_nowatch | ( | const address_space * | aspace, |
CORE_ADDR | bp_addr, | ||
thread_info * | thread, | ||
const target_waitstatus & | ws | ||
) |
Definition at line 5782 of file breakpoint.c.
References bpstat_stop_status(), target_stopped_by_watchpoint(), breakpoint::thread, and watchpoints_triggered().
Referenced by handle_inferior_event(), and handle_syscall_event().
struct bpstat_what bpstat_what | ( | bpstat * | bs_head | ) |
Definition at line 5826 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_software_breakpoint, 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_marker_tracepoint, 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, bpstat_what::call_dummy, bpstat_what::is_longjmp, bpstat_what::main_action, STOP_NONE, STOP_STACK_DUMMY, and STOP_STD_TERMINATE.
void break_command | ( | const char * | arg, |
int | from_tty | ||
) |
Definition at line 9223 of file breakpoint.c.
References break_command_1().
Referenced by mi_cmd_break_commands(), and rbreak_command().
int breakpoint_address_match | ( | const address_space * | aspace1, |
CORE_ADDR | addr1, | ||
const address_space * | aspace2, | ||
CORE_ADDR | addr2 | ||
) |
Definition at line 7122 of file breakpoint.c.
References gdbarch_has_global_breakpoints(), and target_gdbarch().
Referenced by bp_location_inserted_here_p(), code_breakpoint::breakpoint_hit(), breakpoint_location_address_match(), breakpoint_locations_match(), one_breakpoint_xfer_memory(), and stepping_past_instruction_at().
void breakpoint_auto_delete | ( | bpstat * | bs | ) |
Definition at line 10875 of file breakpoint.c.
References all_breakpoints_safe(), bpstat::breakpoint_at, delete_breakpoint(), disp_del, disp_del_at_next_stop, breakpoint::disposition, bpstat::next, and bpstat::stop.
Referenced by normal_stop(), and run_inferior_call().
struct command_line * breakpoint_commands | ( | struct breakpoint * | b | ) |
Definition at line 426 of file breakpoint.c.
References breakpoint::commands.
Referenced by bppy_get_commands(), remote_target::download_tracepoint(), encode_actions(), gdbscm_breakpoint_commands(), and tdump_command().
void breakpoint_free_objfile | ( | struct objfile * | objfile | ) |
Definition at line 14361 of file breakpoint.c.
References all_bp_locations(), and loc.
Referenced by objfile::~objfile().
int breakpoint_has_location_inserted_here | ( | struct breakpoint * | bp, |
const address_space * | aspace, | ||
CORE_ADDR | pc | ||
) |
Definition at line 13666 of file breakpoint.c.
References regcache::aspace(), bp, breakpoint_location_address_match(), and loc.
Referenced by single_step_breakpoint_inserted_here_p(), and thread_has_single_step_breakpoint_here().
enum breakpoint_here breakpoint_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4199 of file breakpoint.c.
References all_bp_locations(), bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, breakpoint_enabled(), breakpoint_location_address_match(), no_breakpoint_here, ordinary_breakpoint_here, overlay_debugging, permanent_breakpoint_here, section_is_mapped(), and section_is_overlay().
Referenced by crisv32_single_step_through_delay(), mips_single_step_through_delay(), proceed(), resume_1(), and thread_still_needs_step_over_bp().
int breakpoint_in_range_p | ( | const address_space * | aspace, |
CORE_ADDR | addr, | ||
ULONGEST | len | ||
) |
Definition at line 4231 of file breakpoint.c.
References all_bp_locations(), bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, breakpoint_enabled(), breakpoint_location_address_range_overlap(), overlay_debugging, section_is_mapped(), and section_is_overlay().
Referenced by displaced_step_buffers::prepare().
void breakpoint_init_inferior | ( | enum | inf_context | ) |
Definition at line 4087 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(), moribund_locations, bp_location::pspace, target_gdbarch(), breakpoint::type, watchpoint::val, and watchpoint::val_valid.
Referenced by detach_command(), follow_exec(), generic_mourn_inferior(), and init_wait_for_inferior().
int breakpoint_inserted_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4293 of file breakpoint.c.
References all_bp_locations_at_addr(), bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, and bp_location_inserted_here_p().
Referenced by darwin_nat_target::cancel_breakpoint(), do_target_wait_1(), handle_inferior_event(), record_check_stopped_by_breakpoint(), resume_1(), resume_stopped_resumed_lwps(), and status_callback().
const struct breakpoint_ops * breakpoint_ops_for_location_spec | ( | const location_spec * | locspec, |
bool | is_tracepoint | ||
) |
Definition at line 8933 of file breakpoint.c.
References breakpoint_ops_for_location_spec_type(), code_breakpoint_ops, is_tracepoint(), and location_spec::type().
Referenced by bppy_init(), break_command_1(), gdbscm_register_breakpoint_x(), mi_cmd_break_insert_1(), and trace_command().
void breakpoint_program_space_exit | ( | struct program_space * | pspace | ) |
Definition at line 3009 of file breakpoint.c.
References all_bp_locations(), all_breakpoints_safe(), delete_breakpoint(), loc, bp_location::next, bp_location::pspace, breakpoint::pspace, UGLL_DONT_INSERT, and update_global_location_list().
Referenced by program_space::~program_space().
void breakpoint_re_set | ( | void | ) |
Definition at line 12917 of file breakpoint.c.
References all_breakpoints_safe(), breakpoint_re_set_one(), create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), exception_fprintf(), gdb_stderr, input_radix, jit_breakpoint_re_set(), language_mode_manual, breakpoint::number, UGLL_MAY_INSERT, and update_global_location_list().
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(), solib_add(), and symbol_file_command().
void breakpoint_re_set_thread | ( | struct breakpoint * | b | ) |
Definition at line 12973 of file breakpoint.c.
References current_program_space, thread_info::global_num, inferior_thread(), breakpoint::loc, bp_location::pspace, and breakpoint::thread.
Referenced by follow_inferior_reset_breakpoints().
void breakpoint_retire_moribund | ( | void | ) |
Definition at line 11446 of file breakpoint.c.
References decref_bp_location(), loc, and moribund_locations.
Referenced by handle_inferior_event().
void breakpoint_set_commands | ( | struct breakpoint * | b, |
counted_command_line && | commands | ||
) |
Definition at line 1434 of file breakpoint.c.
References gdb::observers::breakpoint_modified, breakpoint::commands, and validate_commands_for_breakpoint().
Referenced by actions_command(), bppy_set_commands(), create_tracepoint_from_upload(), mi_cmd_break_commands(), and update_dprintf_command_list().
void breakpoint_set_silent | ( | struct breakpoint * | b, |
int | silent | ||
) |
Definition at line 1448 of file breakpoint.c.
References gdb::observers::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 1474 of file breakpoint.c.
References gdb::observers::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 1461 of file breakpoint.c.
References gdb::observers::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 1700 of file breakpoint.c.
References bp_location::address, bp_location_has_shadow(), bp_locations, bp_locations_placed_address_before_address_max, bp_locations_shadow_len_after_address_max, bp_none, bp_location::gdbarch, breakpoint::number, one_breakpoint_xfer_memory(), bp_location::owner, bp_location::target_info, and breakpoint::type.
Referenced by memory_xfer_partial().
int breakpoints_should_be_inserted_now | ( | void | ) |
Definition at line 514 of file breakpoint.c.
References all_inferiors(), all_non_exited_threads(), always_inserted_mode, gdbarch_has_global_breakpoints(), target_gdbarch(), and threads_are_executing().
Referenced by maybe_remove_breakpoints(), remote_target::start_remote(), and update_global_location_list().
bpstat * build_bpstat_chain | ( | const address_space * | aspace, |
CORE_ADDR | bp_addr, | ||
const target_waitstatus & | ws | ||
) |
Definition at line 5597 of file breakpoint.c.
References all_breakpoints(), bp_hardware_watchpoint, bp_watchpoint_scope, bpstat_check_location(), breakpoint_enabled(), breakpoint_location_address_match(), loc, breakpoint::loc, breakpoint::locations(), moribund_locations, need_moribund_for_location_type(), bpstat::print, bpstat::print_it, print_it_noop, breakpoint::related_breakpoint, bpstat::stop, target_supports_stopped_by_hw_breakpoint(), target_supports_stopped_by_sw_breakpoint(), breakpoint::type, watch_triggered_yes, and watchpoint::watchpoint_triggered.
Referenced by bpstat_stop_status(), and handle_signal_stop().
void catch_exception_event | ( | enum exception_event_kind | ex_event, |
const char * | regex, | ||
bool | tempflag, | ||
int | from_tty | ||
) |
Definition at line 424 of file break-catch-throw.c.
References ep_parse_optional_if_clause(), EX_EVENT_CATCH, EX_EVENT_RETHROW, EX_EVENT_THROW, extract_exception_regexp(), and handle_gnu_v3_exceptions().
Referenced by catch_catch_command(), catch_rethrow_command(), catch_throw_command(), and mi_cmd_catch_exception_event().
int catch_syscall_enabled | ( | void | ) |
Definition at line 476 of file break-catch-syscall.c.
References current_inferior(), get_catch_syscall_inferior_data(), and catch_syscall_inferior_data::total_syscalls_count.
Referenced by handle_syscall_event(), linux_handle_syscall_trap(), i386_linux_nat_target::low_resume(), nbsd_resume(), inf_ptrace_target::resume(), nbsd_nat_target::wait(), and fbsd_nat_target::wait_1().
bool catching_syscall_number | ( | int | syscall_number | ) |
Definition at line 509 of file break-catch-syscall.c.
References all_breakpoints(), and catching_syscall_number_1().
Referenced by handle_syscall_event(), linux_handle_syscall_trap(), nbsd_nat_target::wait(), and fbsd_nat_target::wait_1().
void check_longjmp_breakpoint_for_call_dummy | ( | struct thread_info * | tp | ) |
Definition at line 7570 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, get_current_frame(), get_frame_unwind_stop_reason(), get_prev_frame(), thread_info::global_num, breakpoint::next, breakpoint::related_breakpoint, breakpoint::thread, and breakpoint::type.
Referenced by process_event_stop_test().
void clear_breakpoint_hit_counts | ( | void | ) |
Definition at line 800 of file breakpoint.c.
References all_breakpoints().
Referenced by run_command_1().
void clear_displays | ( | void | ) |
Definition at line 2002 of file printcmd.c.
References all_displays.
Referenced by clear_symtab_users(), and undisplay_command().
struct breakpoint * clone_momentary_breakpoint | ( | struct breakpoint * | bpkt | ) |
Definition at line 8151 of file breakpoint.c.
References momentary_breakpoint_from_master(), breakpoint::thread, and breakpoint::type.
Referenced by follow_fork().
enum command_control_type commands_from_control_command | ( | const char * | arg, |
struct command_line * | cmd | ||
) |
Definition at line 1566 of file breakpoint.c.
References commands_command_1(), and simple_control.
Referenced by execute_control_command_1().
struct breakpoint * create_and_insert_solib_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7772 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, |
struct location_spec * | locspec, | ||
const char * | cond_string, | ||
int | thread, | ||
const char * | extra_string, | ||
bool | force_condition, | ||
int | parse_extra, | ||
int | tempflag, | ||
enum bptype | wanted_type, | ||
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 8945 of file breakpoint.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, block_for_pc(), bp_breakpoint, bp_disabled, bp_dprintf, bp_enabled, bp_fast_tracepoint, bp_hardware_breakpoint, bptype_string(), breakpoint_count, breakpoint_sals_to_pc(), check_fast_tracepoint_sals(), breakpoint_ops::create_breakpoints_sal, breakpoint_ops::create_sals_from_location_spec, current_program_space, disp_del, disp_donttouch, exception_print(), find_condition_and_thread_for_sals(), flags, gdb_stderr, install_breakpoint(), linespec_result::locspec, linespec_result::lsals, new_breakpoint_from_type(), nquery(), parse_exp_1(), pending_break_support, prev_breakpoint_count, linespec_sals::sals, UGLL_MAY_INSERT, and update_global_location_list().
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(), strace_command(), and trace_command().
struct breakpoint * create_jit_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7712 of file breakpoint.c.
References bp_jit_event, and create_internal_breakpoint().
Referenced by jit_breakpoint_re_set_internal().
struct breakpoint * create_solib_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7764 of file breakpoint.c.
References create_solib_event_breakpoint_1(), and UGLL_MAY_INSERT.
Referenced by darwin_solib_create_inferior_hook(), enable_break(), enable_break(), enable_break2(), svr4_create_probe_breakpoints(), and svr4_create_solib_event_breakpoints().
struct breakpoint * create_thread_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address | ||
) |
Definition at line 7688 of file breakpoint.c.
References bp_location::address, bp_enabled, bp_thread_event, create_internal_breakpoint(), breakpoint::enable_state, breakpoint::loc, breakpoint::locspec, new_address_location_spec(), UGLL_MAY_INSERT, and update_global_location_list_nothrow().
Referenced by pd_enable().
void delete_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 12254 of file breakpoint.c.
References all_breakpoints(), bp_none, bp_watchpoint_scope, bpstat_remove_breakpoint_callback(), breakpoint_chain, gdb::observers::breakpoint_deleted, iterate_over_threads(), breakpoint::next, breakpoint::number, breakpoint::related_breakpoint, breakpoint::type, UGLL_DONT_INSERT, update_global_location_list(), and watchpoint_del_at_next_stop().
Referenced by 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(), elf_gnu_ifunc_resolver_return_stop(), gdbscm_delete_breakpoint_x(), jit_breakpoint_re_set_internal(), breakpoint_deleter::operator()(), pop_dummy_frame_bpt(), internal_breakpoint::re_set(), code_breakpoint::re_set(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), update_breakpoints_after_exec(), and jiter_objfile_data::~jiter_objfile_data().
void delete_longjmp_breakpoint | ( | int | thread | ) |
Definition at line 7507 of file breakpoint.c.
References all_breakpoints_safe(), bp_exception, bp_longjmp, delete_breakpoint(), breakpoint::thread, and breakpoint::type.
Referenced by until_break_fsm::clean_up(), step_command_fsm::clean_up(), until_next_fsm::clean_up(), and finish_command_fsm::clean_up().
void delete_longjmp_breakpoint_at_next_stop | ( | int | thread | ) |
Definition at line 7518 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 7680 of file breakpoint.c.
References all_breakpoints_safe(), bp_std_terminate, delete_breakpoint(), and breakpoint::type.
Referenced by call_function_by_hand_dummy().
void describe_other_breakpoints | ( | struct gdbarch * | gdbarch, |
struct program_space * | pspace, | ||
CORE_ADDR | pc, | ||
struct obj_section * | section, | ||
int | thread | ||
) |
Definition at line 7018 of file breakpoint.c.
References address_style, all_breakpoints(), bp_call_disabled, bp_disabled, breakpoint_has_pc(), current_uiout, breakpoint::enable_state, gdb_printf(), breakpoint::number, paddress(), cli_style_option::style(), styled_string(), breakpoint::thread, and user_breakpoint_p().
Referenced by ada_catchpoint::ada_catchpoint(), and code_breakpoint::code_breakpoint().
int detach_breakpoints | ( | ptid_t | ptid | ) |
Definition at line 3868 of file breakpoint.c.
References all_bp_locations(), bp_loc_other, bp_loc_software_watchpoint, current_inferior(), DETACH_BREAKPOINT, inferior_ptid, and remove_breakpoint_1().
Referenced by handle_inferior_event(), and linux_handle_extended_wait().
void disable_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 13357 of file breakpoint.c.
References bp_disabled, bp_watchpoint_scope, gdb::observers::breakpoint_modified, current_trace_status(), breakpoint::enable_state, is_tracepoint(), breakpoint::locations(), mark_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(), enable_disable_command(), gdbscm_set_breakpoint_enabled_x(), and svr4_update_solib_event_breakpoint().
void disable_breakpoints_before_startup | ( | void | ) |
Definition at line 8063 of file breakpoint.c.
References current_program_space, program_space::executing_startup, UGLL_DONT_INSERT, and update_global_location_list().
void disable_breakpoints_in_shlibs | ( | void | ) |
Definition at line 7791 of file breakpoint.c.
References all_bp_locations(), bp_breakpoint, bp_hardware_breakpoint, bp_jit_event, current_program_space, is_tracepoint(), loc, solib_name_from_address(), and breakpoint::type.
Referenced by clear_solib(), and windows_nat_target::do_initial_windows_stuff().
void disable_current_display | ( | void | ) |
Definition at line 2253 of file printcmd.c.
References current_display_number, disable_display(), gdb_printf(), and gdb_stderr.
Referenced by normal_stop().
void disable_display | ( | int | num | ) |
Definition at line 2241 of file printcmd.c.
References all_displays, and gdb_printf().
Referenced by disable_current_display().
void disable_overlay_breakpoints | ( | void | ) |
Definition at line 7653 of file breakpoint.c.
References all_breakpoints(), bp_disabled, bp_overlay_event, breakpoint::enable_state, overlay_events_enabled, breakpoint::type, UGLL_DONT_INSERT, and update_global_location_list().
Referenced by overlay_manual_command(), and overlay_off_command().
void disable_watchpoints_before_interactive_call_start | ( | void | ) |
Definition at line 8041 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().
void do_displays | ( | void | ) |
Definition at line 2231 of file printcmd.c.
References all_displays, and do_one_display().
Referenced by display_command(), print_stop_event(), and tfind_1().
void enable_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 13509 of file breakpoint.c.
References breakpoint::disposition, and enable_breakpoint_disp().
Referenced by bppy_set_enabled(), enable_disable_command(), gdbscm_set_breakpoint_enabled_x(), and svr4_update_solib_event_breakpoint().
void enable_breakpoints_after_startup | ( | void | ) |
Definition at line 8070 of file breakpoint.c.
References breakpoint_re_set(), current_program_space, and program_space::executing_startup.
void enable_disable_bp_location | ( | bp_location * | loc, |
bool | enable | ||
) |
Definition at line 13304 of file breakpoint.c.
References gdb::observers::breakpoint_modified, current_trace_status(), enable, find_loc_num_by_location(), is_tracepoint(), loc, mark_breakpoint_location_modified(), target_disable_tracepoint(), target_supports_enable_disable_tracepoint(), UGLL_DONT_INSERT, and update_global_location_list().
Referenced by bplocpy_set_enabled().
void enable_overlay_breakpoints | ( | void | ) |
Definition at line 7641 of file breakpoint.c.
References all_breakpoints(), bp_enabled, bp_overlay_event, breakpoint::enable_state, overlay_events_enabled, breakpoint::type, UGLL_MAY_INSERT, and update_global_location_list().
Referenced by overlay_auto_command().
void enable_watchpoints_after_interactive_call_stop | ( | void | ) |
Definition at line 8052 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().
const char * ep_parse_optional_if_clause | ( | const char ** | arg | ) |
Definition at line 164 of file break-catch-exec.c.
Referenced by catch_exception_event(), catch_exec_command_1(), and catch_fork_command_1().
struct breakpoint * get_breakpoint | ( | int | num | ) |
Definition at line 811 of file breakpoint.c.
References all_breakpoints().
Referenced by bpscm_breakpoint_deleted(), find_location_by_number(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_modified(), and mi_cmd_break_commands().
struct gdbarch * get_sal_arch | ( | struct symtab_and_line | sal | ) |
Definition at line 7468 of file breakpoint.c.
References objfile::arch(), symtab::compunit(), obj_section::objfile, compunit_symtab::objfile(), symtab_and_line::section, and symtab_and_line::symtab.
Referenced by ada_catchpoint::ada_catchpoint(), code_breakpoint::add_location(), check_fast_tracepoint_sals(), and code_breakpoint::code_breakpoint().
struct tracepoint * get_tracepoint | ( | int | num | ) |
Definition at line 14031 of file breakpoint.c.
References all_tracepoints().
Referenced by create_tracepoint_from_upload(), get_traceframe_location(), mi_cmd_break_passcount(), tfind_tracepoint_command(), tfile_target::trace_find(), and tracefile_fetch_registers().
struct tracepoint * get_tracepoint_by_number | ( | const char ** | arg, |
number_or_range_parser * | parser | ||
) |
Definition at line 14064 of file breakpoint.c.
References all_tracepoints(), number_or_range_parser::finished(), gdb_printf(), number_or_range_parser::get_number(), get_number(), and tracepoint_count.
Referenced by actions_command(), and trace_pass_command().
struct tracepoint * get_tracepoint_by_number_on_target | ( | int | num | ) |
Definition at line 14045 of file breakpoint.c.
References all_tracepoints(), and tracepoint::number_on_target.
Referenced by tfile_get_traceframe_address(), and tfind_1().
int hardware_breakpoint_inserted_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4329 of file breakpoint.c.
References all_bp_locations_at_addr(), bp_loc_hardware_breakpoint, and bp_location_inserted_here_p().
Referenced by record_check_stopped_by_breakpoint(), save_stop_reason(), and save_waitstatus().
int hardware_watchpoint_inserted_in_range | ( | const address_space * | aspace, |
CORE_ADDR | addr, | ||
ULONGEST | len | ||
) |
Definition at line 4345 of file breakpoint.c.
References all_breakpoints(), bp_access_watchpoint, bp_hardware_watchpoint, breakpoint_enabled(), and loc.
Referenced by record_full_exec_insn().
void insert_breakpoints | ( | void | ) |
Definition at line 3047 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(), go32_nat_target::create_inferior(), gdbsim_target::create_inferior(), finish_step_over(), follow_exec(), follow_inferior_reset_breakpoints(), handle_inferior_event(), handle_vfork_done(), keep_going_pass_signal(), linux_fork_context(), resume_1(), scoped_switch_fork_info::scoped_switch_fork_info(), remote_target::start_remote(), and scoped_switch_fork_info::~scoped_switch_fork_info().
void insert_single_step_breakpoint | ( | struct gdbarch * | gdbarch, |
const address_space * | aspace, | ||
CORE_ADDR | next_pc | ||
) |
Definition at line 13606 of file breakpoint.c.
References add_to_breakpoint_chain(), bp_single_step, thread_info::control, current_program_space, symtab_and_line::explicit_pc, find_pc_line(), find_pc_overlay(), thread_info::global_num, inferior_thread(), null_frame_id, symtab_and_line::pc, symtab_and_line::section, thread_control_state::single_step_breakpoints, UGLL_INSERT, and update_global_location_list().
Referenced by insert_single_step_breakpoints(), keep_going_stepped_thread(), and resume_1().
int insert_single_step_breakpoints | ( | struct gdbarch * | gdbarch | ) |
Definition at line 13642 of file breakpoint.c.
References regcache::aspace(), gdbarch_software_single_step(), get_current_frame(), get_current_regcache(), get_frame_address_space(), and insert_single_step_breakpoint().
Referenced by maybe_software_singlestep(), record_full_wait_1(), and record_full_target::resume().
void install_breakpoint | ( | int | internal, |
std::unique_ptr< breakpoint > && | b, | ||
int | update_gll | ||
) |
Definition at line 7960 of file breakpoint.c.
References add_to_breakpoint_chain(), breakpoint_count, gdb::observers::breakpoint_created, is_tracepoint(), mention(), set_breakpoint_number(), set_tracepoint_count(), UGLL_MAY_INSERT, and update_global_location_list().
Referenced by add_solib_catchpoint(), break_range_command(), 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().
bool is_breakpoint | ( | const struct breakpoint * | bpt | ) |
Definition at line 1787 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(), 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_breakpoint_condition(), set_condition_evaluation_mode(), update_global_location_list(), and update_inserted_breakpoint_locations().
bool is_catchpoint | ( | struct breakpoint * | b | ) |
Definition at line 4375 of file breakpoint.c.
References bp_catchpoint, and breakpoint::type.
Referenced by print_one_breakpoint(), print_one_breakpoint_location(), and print_solib_event().
bool is_exception_catchpoint | ( | breakpoint * | bp | ) |
Definition at line 122 of file break-catch-throw.c.
References bp.
Referenced by print_one_breakpoint(), and print_one_breakpoint_location().
bool is_tracepoint | ( | const struct breakpoint * | b | ) |
Definition at line 1294 of file breakpoint.c.
References is_tracepoint_type(), and breakpoint::type.
Referenced by breakpoint_locations_match(), breakpoint_ops_for_location_spec(), breakpoint_ops_for_location_spec_type(), commands_command_1(), delete_trace_command(), disable_breakpoint(), disable_breakpoints_in_freed_objfile(), disable_breakpoints_in_shlibs(), disable_breakpoints_in_unloaded_shlib(), enable_breakpoint_disp(), enable_disable_bp_location(), enable_disable_bp_num_loc(), info_tracepoints_command(), install_breakpoint(), mi_cmd_break_commands(), tracepoint_filter::operator()(), print_one_breakpoint_location(), remove_breakpoints(), save_breakpoints(), save_tracepoints_command(), set_breakpoint_location_function(), set_ignore_count(), swap_insertion(), tracepoint_locations_match(), update_global_location_list(), and validate_commands_for_breakpoint().
bool is_watchpoint | ( | const struct breakpoint * | bpt | ) |
Definition at line 1807 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(), aarch64_point_is_aligned(), bppy_get_expression(), bppy_get_pending(), bpstat_check_breakpoint_conditions(), watchpoint::check_status(), clear_command(), debug_reg_change_callback(), disable_watchpoints_before_interactive_call_start(), enable_breakpoint_disp(), enable_watchpoints_after_interactive_call_stop(), gdbscm_breakpoint_expression(), info_watchpoints_command(), print_one_breakpoint_location(), save_breakpoints(), and set_breakpoint_condition().
void mark_breakpoints_out | ( | void | ) |
Definition at line 4067 of file breakpoint.c.
References all_bp_locations(), and current_program_space.
Referenced by breakpoint_init_inferior(), follow_exec(), and generic_mourn_inferior().
void maybe_print_thread_hit_breakpoint | ( | struct ui_out * | uiout | ) |
Definition at line 4792 of file breakpoint.c.
References ui_out::field_string(), inferior_thread(), ui_out::is_mi_like_p(), name, print_thread_id(), show_thread_that_caused_stop(), ui_out::text(), and thread_name().
Referenced by exec_catchpoint::print_it(), fork_catchpoint::print_it(), solib_catchpoint::print_it(), signal_catchpoint::print_it(), syscall_catchpoint::print_it(), exception_catchpoint::print_it(), ordinary_breakpoint::print_it(), ranged_breakpoint::print_it(), masked_watchpoint::print_it(), and watchpoint::print_it().
int moribund_breakpoint_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4263 of file breakpoint.c.
References breakpoint_location_address_match(), loc, and moribund_locations.
Referenced by adjust_pc_after_break().
int pc_at_non_inline_function | ( | const address_space * | aspace, |
CORE_ADDR | pc, | ||
const target_waitstatus & | ws | ||
) |
Definition at line 14339 of file breakpoint.c.
References all_breakpoints(), bpstat_check_location(), is_non_inline_function(), and breakpoint::locations().
Referenced by handle_signal_stop().
int pending_breakpoint_p | ( | struct breakpoint * | b | ) |
Definition at line 6780 of file breakpoint.c.
References breakpoint::loc.
Referenced by bppy_get_pending().
void print_breakpoint | ( | breakpoint * | bp | ) |
Definition at line 6762 of file breakpoint.c.
References print_one_breakpoint().
Referenced by breakpoint_notify(), and mi_print_breakpoint_for_event().
Definition at line 4539 of file breakpoint.c.
References bpstat_locno(), bpstat::breakpoint_at, ui_out::field_signed(), ui_out::message(), breakpoint::number, signed_field(), and ui_out::text().
Referenced by ada_catchpoint::print_it(), syscall_catchpoint::print_it(), exception_catchpoint::print_it(), ordinary_breakpoint::print_it(), and ranged_breakpoint::print_it().
void print_solib_event | ( | bool | is_catchpoint | ) |
Definition at line 4863 of file breakpoint.c.
References program_space::added_solibs, async_reason_lookup(), current_program_space, current_uiout, program_space::deleted_solibs, EXEC_ASYNC_SOLIB_EVENT, is_catchpoint(), and name.
Referenced by bpstat_print(), solib_catchpoint::print_it(), and internal_breakpoint::print_it().
int remove_breakpoints | ( | void | ) |
Definition at line 3226 of file breakpoint.c.
References all_bp_locations(), is_tracepoint(), remove_breakpoint(), and watchpoint::val.
Referenced by gdbsim_target::create_inferior(), linux_fork_context(), maybe_remove_breakpoints(), gdbsim_target::mourn_inferior(), scoped_switch_fork_info::scoped_switch_fork_info(), target_disconnect(), and scoped_switch_fork_info::~scoped_switch_fork_info().
void remove_breakpoints_inf | ( | inferior * | inf | ) |
Definition at line 3262 of file breakpoint.c.
References all_bp_locations(), remove_breakpoint(), and watchpoint::val.
Referenced by linux_nat_target::detach(), follow_fork_inferior(), and remote_target::remote_detach_1().
void remove_jit_event_breakpoints | ( | void | ) |
Definition at line 7720 of file breakpoint.c.
References all_breakpoints_safe(), bp_jit_event, current_program_space, delete_breakpoint(), breakpoint::loc, bp_location::pspace, and breakpoint::type.
void remove_solib_event_breakpoints | ( | void | ) |
Definition at line 7729 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 7740 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 rwatch_command_wrapper | ( | const char * | arg, |
int | from_tty, | ||
bool | internal | ||
) |
Definition at line 10504 of file breakpoint.c.
References watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
void set_breakpoint_condition | ( | int | bpnum, |
const char * | exp, | ||
int | from_tty, | ||
bool | force | ||
) |
Definition at line 1102 of file breakpoint.c.
References all_breakpoints(), ext_lang_capitalized_name(), EXT_LANG_NONE, get_breakpoint_cond_ext_lang(), is_breakpoint(), breakpoint::number, set_breakpoint_condition(), UGLL_MAY_INSERT, and update_global_location_list().
void set_breakpoint_condition | ( | struct breakpoint * | b, |
const char * | exp, | ||
int | from_tty, | ||
bool | force | ||
) |
Definition at line 1005 of file breakpoint.c.
References innermost_block_tracker::block(), block_for_pc(), gdb::observers::breakpoint_modified, watchpoint::cond_exp, watchpoint::cond_exp_valid_block, breakpoint::cond_string, breakpoint::condition_not_parsed, gdb_printf(), is_watchpoint(), loc, breakpoint::locations(), mark_breakpoint_modified(), breakpoint::number, parse_exp_1(), and set_breakpoint_location_condition().
Referenced by bppy_set_condition(), condition_command(), create_ada_exception_catchpoint(), gdbscm_set_breakpoint_condition_x(), mi_cmd_break_condition(), and set_breakpoint_condition().
void set_ignore_count | ( | int | bptnum, |
int | count, | ||
int | from_tty | ||
) |
Definition at line 12992 of file breakpoint.c.
References all_breakpoints(), gdb::observers::breakpoint_modified, gdb_printf(), breakpoint::ignore_count, is_tracepoint(), and breakpoint::number.
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 7483 of file breakpoint.c.
References all_breakpoints_safe(), bp_exception, bp_exception_master, bp_longjmp, bp_longjmp_master, current_program_space, thread_info::global_num, thread_info::initiating_frame, momentary_breakpoint_from_master(), breakpoint::pspace, and breakpoint::type.
Referenced by finish_forward(), step_command_fsm_prepare(), until_break_command(), and until_next_command().
struct breakpoint * set_longjmp_breakpoint_for_call_dummy | ( | void | ) |
Definition at line 7534 of file breakpoint.c.
References all_breakpoints(), bp_longjmp_call_dummy, bp_longjmp_master, current_program_space, thread_info::global_num, inferior_thread(), momentary_breakpoint_from_master(), breakpoint::pspace, breakpoint::related_breakpoint, breakpoint::thread, and breakpoint::type.
Referenced by call_function_by_hand_dummy().
breakpoint_up set_momentary_breakpoint | ( | struct gdbarch * | , |
struct symtab_and_line | , | ||
struct frame_id | , | ||
enum | bptype | ||
) |
breakpoint_up set_momentary_breakpoint_at_pc | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | pc, | ||
enum bptype | type | ||
) |
Definition at line 8162 of file breakpoint.c.
References symtab_and_line::explicit_pc, find_pc_line(), find_pc_overlay(), null_frame_id, symtab_and_line::pc, symtab_and_line::section, and set_momentary_breakpoint().
Referenced by insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), and insert_longjmp_resume_breakpoint().
void set_std_terminate_breakpoint | ( | void | ) |
Definition at line 7667 of file breakpoint.c.
References all_breakpoints_safe(), bp_std_terminate, bp_std_terminate_master, current_program_space, inferior_thread(), momentary_breakpoint_from_master(), breakpoint::pspace, and breakpoint::type.
Referenced by call_function_by_hand_dummy().
int single_step_breakpoint_inserted_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 13682 of file breakpoint.c.
References all_breakpoints(), regcache::aspace(), bp_single_step, and breakpoint_has_location_inserted_here().
Referenced by handle_signal_stop().
int software_breakpoint_inserted_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc | ||
) |
Definition at line 4311 of file breakpoint.c.
References all_bp_locations_at_addr(), bp_loc_software_breakpoint, and bp_location_inserted_here_p().
Referenced by adjust_pc_after_break(), save_stop_reason(), and save_waitstatus().
std::vector< breakpoint * > static_tracepoints_here | ( | CORE_ADDR | addr | ) |
Definition at line 1414 of file breakpoint.c.
References all_breakpoints(), bp_static_marker_tracepoint, bp_static_tracepoint, loc, breakpoint::locations(), and breakpoint::type.
Referenced by print_one_static_tracepoint_marker().
void tbreak_command | ( | const char * | arg, |
int | from_tty | ||
) |
Definition at line 9229 of file breakpoint.c.
References BP_TEMPFLAG, and break_command_1().
Referenced by run_command_1().
void until_break_command | ( | const char * | arg, |
int | from_tty, | ||
int | anywhere | ||
) |
Definition at line 10592 of file breakpoint.c.
References bp_until, clear_proceed_status(), command_interp(), current_language, decode_line_1(), DECODE_LINE_FUNFIRSTLINE, 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(), thread_info::global_num, inferior_thread(), last_displayed_sal_is_valid(), null_frame_id, symtab_and_line::pc, proceed(), resolve_sal_pc(), set_longjmp_breakpoint(), set_momentary_breakpoint(), thread_info::set_thread_fsm(), and string_to_location_spec().
Referenced by advance_command(), and until_command().
void update_breakpoint_locations | ( | code_breakpoint * | b, |
struct program_space * | filter_pspace, | ||
gdb::array_view< const symtab_and_line > | sals, | ||
gdb::array_view< const symtab_and_line > | sals_end | ||
) |
Definition at line 12659 of file breakpoint.c.
References code_breakpoint::add_location(), all_locations_are_pending(), ambiguous_names_p(), block_for_pc(), bp_disabled, breakpoint_locations_match(), gdb::observers::breakpoint_modified, bp_location::cond, breakpoint::cond_string, bp_location::disabled_by_cond, breakpoint::enable_state, bp_location::enabled, find_breakpoint_range_end(), bp_location::function_name, gdb_printf(), gdb_stderr, hoist_existing_locations(), bp_location::length, breakpoint::loc, breakpoint::locations(), locations_are_equal(), bp_location::next, notify, breakpoint::number, parse_exp_1(), and switch_to_program_space_and_thread().
Referenced by elf_gnu_ifunc_resolver_return_stop(), exception_catchpoint::re_set(), and code_breakpoint::re_set_default().
void update_breakpoints_after_exec | ( | void | ) |
Definition at line 3749 of file breakpoint.c.
References 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, breakpoint_location_spec_empty_p(), current_program_space, delete_breakpoint(), breakpoint::pspace, and breakpoint::type.
Referenced by follow_exec().
int user_breakpoint_p | ( | struct breakpoint * | b | ) |
Definition at line 6772 of file breakpoint.c.
References breakpoint::number.
Referenced by bppy_get_visibility(), breakpoint_1(), clear_command(), delete_command(), delete_trace_command(), describe_other_breakpoints(), enable_disable_command(), gdbpy_breakpoint_created(), remove_threaded_breakpoints(), save_breakpoints(), should_be_inserted(), and stopped_by_user_bp_inline_frame().
void watch_command_wrapper | ( | const char * | arg, |
int | from_tty, | ||
bool | internal | ||
) |
Definition at line 10422 of file breakpoint.c.
References watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
int watchpoints_triggered | ( | const target_waitstatus & | ws | ) |
Definition at line 5003 of file breakpoint.c.
References all_breakpoints(), current_inferior(), watchpoint::hw_wp_mask, is_hardware_watchpoint(), is_masked_watchpoint(), loc, breakpoint::locations(), target_stopped_by_watchpoint(), target_stopped_data_address, target_watchpoint_addr_within_range, inferior::top_target(), watch_triggered_no, watch_triggered_unknown, watch_triggered_yes, and watchpoint::watchpoint_triggered.
Referenced by bpstat_stop_status_nowatch(), and handle_signal_stop().
|
extern |
Definition at line 225 of file breakpoint.c.
Referenced by bpfinishpy_init(), breakpoint_ops_for_location_spec(), breakpoint_ops_for_location_spec_type(), create_tracepoint_from_upload(), dprintf_command(), ftrace_command(), mi_cmd_break_insert_1(), and strace_command().
|
extern |
Definition at line 14374 of file breakpoint.c.
Referenced by process_next_line().
|
extern |
Definition at line 6308 of file breakpoint.c.
Referenced by mi_cmd_fix_breakpoint_script_output(), and print_one_breakpoint_location().
|
extern |
Definition at line 6675 of file breakpoint.c.
Referenced by mi_cmd_fix_multi_location_breakpoint_output(), and print_one_breakpoint().
|
extern |
Definition at line 611 of file breakpoint.c.
Referenced by _initialize_rs6000_tdep(), can_use_hardware_watchpoint(), and update_watchpoint().