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 "ui-out.h"
#include "cli/cli-script.h"
#include "block.h"
#include "solib.h"
#include "solist.h"
#include "observable.h"
#include "memattr.h"
#include "ada-lang.h"
#include "top.h"
#include "ui.h"
#include "valprint.h"
#include "jit.h"
#include "parser-defs.h"
#include "gdbsupport/gdb_regex.h"
#include "probe.h"
#include "cli/cli-utils.h"
#include "stack.h"
#include "ax-gdb.h"
#include "dummy-frame.h"
#include "interps.h"
#include "gdbsupport/format.h"
#include "thread-fsm.h"
#include "tid-parse.h"
#include "cli/cli-style.h"
#include "cli/cli-decode.h"
#include <unordered_set>
#include "readline/tilde.h"
#include "mi/mi-common.h"
#include "extension.h"
#include <algorithm>
#include "progspace-and-thread.h"
#include "gdbsupport/array-view.h"
#include "gdbsupport/gdb_optional.h"
#include "gdbsupport/common-utils.h"
Go to the source code of this file.
Classes | |
struct | ordinary_breakpoint |
struct | internal_breakpoint |
struct | momentary_breakpoint |
struct | dprintf_breakpoint |
struct | ranged_breakpoint |
struct | static_marker_tracepoint |
struct | bp_locations_at_addr_range |
struct | condition_command_opts |
struct | longjmp_breakpoint |
struct | breakpoint_objfile_data |
struct | lang_and_radix |
struct | masked_watchpoint |
struct | watch_options |
struct | until_break_fsm |
Macros | |
#define | breakpoint_debug_printf(fmt, ...) |
#define | NUM_LONGJMP_NAMES ARRAY_SIZE(longjmp_names) |
#define | BP_TEMPFLAG 1 |
#define | BP_HARDWAREFLAG 2 |
#define | internal_error_pure_virtual_called() gdb_assert_not_reached ("pure virtual function called") |
#define | LOCATION_SPEC_HELP_STRING "Linespecs are colon-separated lists of location parameters, such as\n\source filename, function name, label name, and line number.\n\Example: To specify the start of a label named \"the_top\" in the\n\function \"fact\" in the file \"factorial.c\", use\n\\"factorial.c:fact:the_top\".\n\\n\Address locations begin with \"*\" and specify an exact address in the\n\program. Example: To specify the fourth byte past the start function\n\\"main\", use \"*main + 4\".\n\\n\Explicit locations are similar to linespecs but use an option/argument\n\syntax to specify location parameters.\n\Example: To specify the start of the label named \"the_top\" in the\n\function \"fact\" in the file \"factorial.c\", use \"-source factorial.c\n\-function fact -label the_top\".\n\\n\By default, a specified function is matched against the program's\n\functions in all scopes. For C++, this means in all namespaces and\n\classes. For Ada, this means in all packages. E.g., in C++,\n\\"func()\" matches \"A::func()\", \"A::B::func()\", etc. The\n\\"-qualified\" flag overrides this behavior, making GDB interpret the\n\specified name as a complete fully-qualified name instead." |
#define | BREAK_ARGS_HELP(command) command" [PROBE_MODIFIER] [LOCATION] [thread THREADNUM]\n\\t[-force-condition] [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 linespec, address, or explicit location as described\n\below.\n\\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\With the \"-force-condition\" flag, the condition is defined even when\n\it is invalid for all current locations.\n\\n" LOCATION_SPEC_HELP_STRING "\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 | ugll_insert_mode { UGLL_DONT_INSERT , UGLL_MAY_INSERT , UGLL_INSERT } |
enum | wp_check_result { WP_DELETED = 1 , WP_VALUE_CHANGED = 2 , WP_VALUE_NOT_CHANGED = 3 , WP_IGNORE = 4 } |
enum class | extract_bp_kind { bp , loc } |
Functions | |
static void | map_breakpoint_numbers (const char *, gdb::function_view< void(breakpoint *)>) |
static void | create_sals_from_location_spec_default (location_spec *locspec, linespec_result *canonical) |
static void | create_breakpoints_sal (struct gdbarch *, struct linespec_result *, gdb::unique_xmalloc_ptr< char >, gdb::unique_xmalloc_ptr< char >, enum bptype, enum bpdisp, int, int, int, int, int, int, int, unsigned) |
static int | can_use_hardware_watchpoint (const std::vector< value_ref_ptr > &vals) |
static void | mention (const breakpoint *) |
static breakpoint * | add_to_breakpoint_chain (std::unique_ptr< breakpoint > &&b) |
static struct breakpoint * | momentary_breakpoint_from_master (struct breakpoint *orig, enum bptype type, int loc_enabled, int thread) |
static void | breakpoint_adjustment_warning (CORE_ADDR, CORE_ADDR, int, bool) |
static CORE_ADDR | adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr, enum bptype bptype, struct program_space *pspace) |
static bool | watchpoint_locations_match (const struct bp_location *loc1, const struct bp_location *loc2) |
static bool | breakpoint_locations_match (const struct bp_location *loc1, const struct bp_location *loc2, bool sw_hw_bps_match=false) |
static bool | breakpoint_location_address_match (struct bp_location *bl, const struct address_space *aspace, CORE_ADDR addr) |
static bool | breakpoint_location_address_range_overlap (struct bp_location *, const address_space *, CORE_ADDR, int) |
static int | remove_breakpoint (struct bp_location *) |
static int | remove_breakpoint_1 (struct bp_location *, enum remove_bp_reason) |
static enum print_stop_action | print_bp_stop_message (bpstat *bs) |
static int | hw_breakpoint_used_count (void) |
static int | hw_watchpoint_use_count (struct breakpoint *) |
static int | hw_watchpoint_used_count_others (struct breakpoint *except, enum bptype type, int *other_type_used) |
static void | enable_breakpoint_disp (struct breakpoint *, enum bpdisp, int count) |
static void | decref_bp_location (struct bp_location **loc) |
static std::vector< symtab_and_line > | bkpt_probe_decode_location_spec (struct breakpoint *b, location_spec *locspec, struct program_space *search_pspace) |
static bool | bl_address_is_meaningful (bp_location *loc) |
static int | find_loc_num_by_location (const bp_location *loc) |
static const char * | ugll_insert_mode_text (ugll_insert_mode insert_mode) |
static const char * | remove_bp_reason_str (remove_bp_reason reason) |
static std::string | breakpoint_location_address_str (const bp_location *bl) |
static void | update_global_location_list (enum ugll_insert_mode) |
static void | update_global_location_list_nothrow (enum ugll_insert_mode) |
static void | insert_breakpoint_locations (void) |
static void | trace_pass_command (const char *, int) |
static void | set_tracepoint_count (int num) |
static bool | is_masked_watchpoint (const struct breakpoint *b) |
static bool | strace_marker_p (struct breakpoint *b) |
static void | bkpt_probe_create_sals_from_location_spec (location_spec *locspec, struct linespec_result *canonical) |
static void | tracepoint_probe_create_sals_from_location_spec (location_spec *locspec, struct linespec_result *canonical) |
struct command_line * | breakpoint_commands (struct breakpoint *b) |
const char * | bpdisp_text (enum bpdisp disp) |
static void | show_can_use_hw_watchpoints (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | show_pending_break_support (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | show_automatic_hardware_breakpoints (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | show_always_inserted_mode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | show_debug_breakpoint (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
int | breakpoints_should_be_inserted_now (void) |
static const char * | translate_condition_evaluation_mode (const char *mode) |
static const char * | breakpoint_condition_evaluation_mode (void) |
static bool | gdb_evaluates_breakpoint_condition_p (void) |
breakpoint_range | all_breakpoints () |
breakpoint_safe_range | all_breakpoints_safe () |
tracepoint_range | all_tracepoints () |
const std::vector< bp_location * > & | all_bp_locations () |
static bp_locations_at_addr_range | all_bp_locations_at_addr (CORE_ADDR addr) |
static bool | breakpoint_enabled (struct breakpoint *b) |
static void | set_breakpoint_count (int num) |
void | clear_breakpoint_hit_counts (void) |
struct breakpoint * | get_breakpoint (int num) |
static bool | has_multiple_locations (int num) |
static void | mark_breakpoint_modified (struct breakpoint *b) |
static void | mark_breakpoint_location_modified (struct bp_location *loc) |
static void | set_condition_evaluation_mode (const char *args, int from_tty, struct cmd_list_element *c) |
static void | show_condition_evaluation_mode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | set_breakpoint_location_condition (const char *cond_string, bp_location *loc, int bp_num, int loc_num) |
void | notify_breakpoint_modified (breakpoint *b) |
void | set_breakpoint_condition (struct breakpoint *b, const char *exp, int from_tty, bool force) |
void | set_breakpoint_condition (int bpnum, const char *exp, int from_tty, bool force) |
static gdb::option::option_def_group | make_condition_command_options_def_group (condition_command_opts *cc_opts) |
static void | condition_completer (struct cmd_list_element *cmd, completion_tracker &tracker, const char *text, const char *) |
static void | condition_command (const char *arg, int from_tty) |
static void | check_no_tracepoint_commands (struct command_line *commands) |
static bool | is_tracepoint_type (bptype type) |
bool | is_tracepoint (const struct breakpoint *b) |
template<typename... Arg> | |
static std::unique_ptr< code_breakpoint > | new_breakpoint_from_type (struct gdbarch *gdbarch, bptype type, Arg &&... args) |
static void | validate_commands_for_breakpoint (struct breakpoint *b, struct command_line *commands) |
std::vector< breakpoint * > | static_tracepoints_here (CORE_ADDR addr) |
void | breakpoint_set_commands (struct breakpoint *b, counted_command_line &&commands) |
void | breakpoint_set_silent (struct breakpoint *b, int silent) |
void | breakpoint_set_thread (struct breakpoint *b, int thread) |
void | breakpoint_set_inferior (struct breakpoint *b, int inferior) |
void | breakpoint_set_task (struct breakpoint *b, int task) |
static void | commands_command_1 (const char *arg, int from_tty, struct command_line *control) |
static void | commands_command (const char *arg, int from_tty) |
enum command_control_type | commands_from_control_command (const char *arg, struct command_line *cmd) |
static bool | bp_location_has_shadow (struct bp_location *bl) |
static void | one_breakpoint_xfer_memory (gdb_byte *readbuf, gdb_byte *writebuf, const gdb_byte *writebuf_org, ULONGEST memaddr, LONGEST len, struct bp_target_info *target_info, struct gdbarch *gdbarch) |
void | breakpoint_xfer_memory (gdb_byte *readbuf, gdb_byte *writebuf, const gdb_byte *writebuf_org, ULONGEST memaddr, LONGEST len) |
bool | is_breakpoint (const struct breakpoint *bpt) |
static bool | is_hardware_watchpoint (const struct breakpoint *bpt) |
bool | is_watchpoint (const struct breakpoint *bpt) |
static bool | watchpoint_in_thread_scope (struct watchpoint *b) |
static void | watchpoint_del_at_next_stop (struct watchpoint *w) |
static struct value * | extract_bitfield_from_watchpoint_value (struct watchpoint *w, struct value *val) |
static void | add_dummy_location (struct breakpoint *b, struct program_space *pspace) |
static void | update_watchpoint (struct watchpoint *b, bool reparse) |
static bool | should_be_inserted (struct bp_location *bl) |
static bool | unduplicated_should_be_inserted (struct bp_location *bl) |
static agent_expr_up | parse_cond_to_aexpr (CORE_ADDR scope, struct expression *cond) |
static void | build_target_condition_list (struct bp_location *bl) |
static agent_expr_up | parse_cmd_to_aexpr (CORE_ADDR scope, char *cmd) |
static void | build_target_command_list (struct bp_location *bl) |
static int | breakpoint_kind (const struct bp_location *bl, CORE_ADDR *addr) |
static void | rethrow_on_target_close_error (const gdb_exception &e) |
static int | insert_bp_location (struct bp_location *bl, struct ui_file *tmp_error_stream, int *disabled_breaks, int *hw_breakpoint_error, int *hw_bp_error_explained_already) |
void | breakpoint_program_space_exit (struct program_space *pspace) |
void | insert_breakpoints (void) |
static void | update_inserted_breakpoint_locations (void) |
int | remove_breakpoints (void) |
static void | remove_threaded_breakpoints (thread_info *tp, gdb::optional< ULONGEST >, int) |
static void | remove_inferior_breakpoints (struct inferior *inf) |
void | remove_breakpoints_inf (inferior *inf) |
static void | set_breakpoint_number (int internal, struct breakpoint *b) |
static struct breakpoint * | create_internal_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address, enum bptype type) |
static struct breakpoint * | create_internal_breakpoint (struct gdbarch *gdbarch, struct bound_minimal_symbol &msym, enum bptype type) |
static bool | msym_not_found_p (const struct minimal_symbol *msym) |
static struct breakpoint_objfile_data * | get_breakpoint_objfile_data (struct objfile *objfile) |
static void | create_overlay_event_breakpoint (void) |
static bool | create_longjmp_master_breakpoint_probe (objfile *objfile) |
static bool | create_longjmp_master_breakpoint_names (objfile *objfile) |
static void | create_longjmp_master_breakpoint (void) |
static void | create_std_terminate_master_breakpoint (void) |
static bool | create_exception_master_breakpoint_probe (objfile *objfile) |
static bool | create_exception_master_breakpoint_hook (objfile *objfile) |
static void | create_exception_master_breakpoint (void) |
static bool | breakpoint_location_spec_empty_p (const struct breakpoint *b) |
void | update_breakpoints_after_exec (void) |
int | detach_breakpoints (ptid_t ptid) |
void | mark_breakpoints_out (void) |
void | breakpoint_init_inferior (enum inf_context context) |
enum breakpoint_here | breakpoint_here_p (const address_space *aspace, CORE_ADDR pc) |
int | breakpoint_in_range_p (const address_space *aspace, CORE_ADDR addr, ULONGEST len) |
int | moribund_breakpoint_here_p (const address_space *aspace, CORE_ADDR pc) |
static bool | bp_location_inserted_here_p (const struct bp_location *bl, const address_space *aspace, CORE_ADDR pc) |
int | breakpoint_inserted_here_p (const address_space *aspace, CORE_ADDR pc) |
int | software_breakpoint_inserted_here_p (const address_space *aspace, CORE_ADDR pc) |
int | hardware_breakpoint_inserted_here_p (const address_space *aspace, CORE_ADDR pc) |
int | hardware_watchpoint_inserted_in_range (const address_space *aspace, CORE_ADDR addr, ULONGEST len) |
bool | is_catchpoint (struct breakpoint *b) |
void | bpstat_clear (bpstat **bsp) |
bpstat * | bpstat_copy (bpstat *bs) |
bpstat * | bpstat_find_breakpoint (bpstat *bsp, struct breakpoint *breakpoint) |
bool | bpstat_explains_signal (bpstat *bsp, enum gdb_signal sig) |
int | bpstat_num (bpstat **bsp, int *num) |
int | bpstat_locno (const bpstat *bs) |
void | print_num_locno (const bpstat *bs, struct ui_out *uiout) |
void | bpstat_clear_actions (void) |
static void | breakpoint_about_to_proceed (void) |
static bool | command_line_is_silent (struct command_line *cmd) |
static void | set_hit_convenience_vars (int bpnum, int locno) |
static bool | bpstat_do_actions_1 (bpstat **bsp) |
static thread_info * | get_bpstat_thread () |
void | bpstat_do_actions (void) |
static void | watchpoint_value_print (struct value *val, struct ui_file *stream) |
void | maybe_print_thread_hit_breakpoint (struct ui_out *uiout) |
void | print_solib_event (bool is_catchpoint) |
enum print_stop_action | bpstat_print (bpstat *bs, target_waitkind kind) |
static bool | breakpoint_cond_eval (expression *exp) |
int | watchpoints_triggered (const target_waitstatus &ws) |
static wp_check_result | watchpoint_check (bpstat *bs) |
static bool | bpstat_check_location (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws) |
static void | bpstat_check_watchpoint (bpstat *bs) |
static void | bpstat_check_breakpoint_conditions (bpstat *bs, thread_info *thread) |
static bool | need_moribund_for_location_type (const struct bp_location *loc) |
bpstat * | build_bpstat_chain (const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws) |
bpstat * | bpstat_stop_status (const address_space *aspace, CORE_ADDR bp_addr, thread_info *thread, const target_waitstatus &ws, bpstat *stop_chain) |
bpstat * | bpstat_stop_status_nowatch (const address_space *aspace, CORE_ADDR bp_addr, thread_info *thread, const target_waitstatus &ws) |
static void | handle_jit_event (CORE_ADDR address) |
struct bpstat_what | bpstat_what (bpstat *bs_head) |
void | bpstat_run_callbacks (bpstat *bs_head) |
bool | bpstat_should_step () |
bool | bpstat_causes_stop (bpstat *bs) |
static int | wrap_indent_at_field (struct ui_out *uiout, const char *col_name) |
static const char * | bp_condition_evaluator (const breakpoint *b) |
static const char * | bp_location_condition_evaluator (const struct bp_location *bl) |
static void | print_breakpoint_location (const breakpoint *b, const bp_location *loc) |
static const char * | bptype_string (enum bptype type) |
static void | output_thread_groups (struct ui_out *uiout, const char *field_name, const std::vector< int > &inf_nums, int mi_only) |
static bool | print_one_breakpoint_location (struct breakpoint *b, struct bp_location *loc, int loc_number, const bp_location **last_loc, int allflag, bool raw_loc) |
static void | print_one_breakpoint (breakpoint *b, const bp_location **last_loc, int allflag) |
static int | breakpoint_address_bits (struct breakpoint *b) |
void | print_breakpoint (breakpoint *b) |
int | user_breakpoint_p (struct breakpoint *b) |
int | pending_breakpoint_p (struct breakpoint *b) |
static int | breakpoint_1 (const char *bp_num_list, bool show_internal, bool(*filter)(const struct breakpoint *)) |
static void | default_collect_info (void) |
static void | info_breakpoints_command (const char *args, int from_tty) |
static void | info_watchpoints_command (const char *args, int from_tty) |
static void | maintenance_info_breakpoints (const char *args, int from_tty) |
static bool | breakpoint_has_pc (struct breakpoint *b, struct program_space *pspace, CORE_ADDR pc, struct obj_section *section) |
void | describe_other_breakpoints (struct gdbarch *gdbarch, struct program_space *pspace, CORE_ADDR pc, struct obj_section *section, int thread) |
int | breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, const address_space *aspace2, CORE_ADDR addr2) |
static bool | breakpoint_address_match_range (const address_space *aspace1, CORE_ADDR addr1, int len1, const address_space *aspace2, CORE_ADDR addr2) |
static bool | breakpoint_location_address_match (struct bp_location *bl, const address_space *aspace, CORE_ADDR addr) |
static bool | tracepoint_locations_match (const struct bp_location *loc1, const struct bp_location *loc2) |
static CORE_ADDR | adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr, enum bptype bptype, struct program_space *pspace) |
static bp_loc_type | bp_location_from_bp_type (bptype type) |
static void | set_breakpoint_location_function (struct bp_location *loc) |
struct gdbarch * | get_sal_arch (struct symtab_and_line sal) |
void | set_longjmp_breakpoint (struct thread_info *tp, struct frame_id frame) |
void | delete_longjmp_breakpoint (int thread) |
void | delete_longjmp_breakpoint_at_next_stop (int thread) |
struct breakpoint * | set_longjmp_breakpoint_for_call_dummy (void) |
void | check_longjmp_breakpoint_for_call_dummy (struct thread_info *tp) |
void | enable_overlay_breakpoints (void) |
void | disable_overlay_breakpoints (void) |
void | set_std_terminate_breakpoint (void) |
void | delete_std_terminate_breakpoint (void) |
struct breakpoint * | create_thread_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address) |
struct breakpoint * | create_jit_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address) |
void | remove_jit_event_breakpoints (void) |
void | remove_solib_event_breakpoints (void) |
void | remove_solib_event_breakpoints_at_next_stop (void) |
static struct breakpoint * | create_solib_event_breakpoint_1 (struct gdbarch *gdbarch, CORE_ADDR address, enum ugll_insert_mode insert_mode) |
struct breakpoint * | create_solib_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address) |
struct breakpoint * | create_and_insert_solib_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address) |
void | disable_breakpoints_in_shlibs (void) |
static void | disable_breakpoints_in_unloaded_shlib (program_space *pspace, so_list *solib) |
static void | disable_breakpoints_in_freed_objfile (struct objfile *objfile) |
static void | notify_breakpoint_created (breakpoint *b) |
breakpoint * | install_breakpoint (int internal, std::unique_ptr< breakpoint > &&arg, int update_gll) |
void | disable_watchpoints_before_interactive_call_start (void) |
void | enable_watchpoints_after_interactive_call_stop (void) |
void | disable_breakpoints_before_startup (void) |
void | enable_breakpoints_after_startup (void) |
template<typename... Arg> | |
static momentary_breakpoint * | new_momentary_breakpoint (struct gdbarch *gdbarch, enum bptype type, Arg &&... args) |
breakpoint_up | set_momentary_breakpoint (struct gdbarch *gdbarch, struct symtab_and_line sal, struct frame_id frame_id, enum bptype type) |
struct breakpoint * | clone_momentary_breakpoint (struct breakpoint *orig) |
breakpoint_up | set_momentary_breakpoint_at_pc (struct gdbarch *gdbarch, CORE_ADDR pc, enum bptype type) |
static bool | bp_loc_is_permanent (struct bp_location *loc) |
static void | handle_automatic_hardware_breakpoints (bp_location *bl) |
static void | update_dprintf_command_list (struct breakpoint *b) |
static void | update_dprintf_commands (const char *args, int from_tty, struct cmd_list_element *c) |
static void | create_breakpoint_sal (struct gdbarch *gdbarch, gdb::array_view< const symtab_and_line > sals, location_spec_up &&locspec, gdb::unique_xmalloc_ptr< char > filter, gdb::unique_xmalloc_ptr< char > cond_string, gdb::unique_xmalloc_ptr< char > extra_string, enum bptype type, enum bpdisp disposition, int thread, int task, int inferior, int ignore_count, int from_tty, int enabled, int internal, unsigned flags, int display_canonical) |
static void | parse_breakpoint_sals (location_spec *locspec, struct linespec_result *canonical) |
static void | breakpoint_sals_to_pc (std::vector< symtab_and_line > &sals) |
static void | check_fast_tracepoint_sals (struct gdbarch *gdbarch, gdb::array_view< const symtab_and_line > sals) |
static void | find_condition_and_thread (const char *tok, CORE_ADDR pc, gdb::unique_xmalloc_ptr< char > *cond_string, int *thread, int *inferior, int *task, gdb::unique_xmalloc_ptr< char > *rest) |
static void | find_condition_and_thread_for_sals (const std::vector< symtab_and_line > &sals, const char *input, gdb::unique_xmalloc_ptr< char > *cond_string, int *thread, int *inferior, int *task, gdb::unique_xmalloc_ptr< char > *rest) |
static std::vector< symtab_and_line > | decode_static_tracepoint_spec (const char **arg_p) |
static const struct breakpoint_ops * | breakpoint_ops_for_location_spec_type (enum location_spec_type locspec_type, bool is_tracepoint) |
const struct breakpoint_ops * | breakpoint_ops_for_location_spec (const location_spec *locspec, bool is_tracepoint) |
int | create_breakpoint (struct gdbarch *gdbarch, location_spec *locspec, const char *cond_string, int thread, int inferior, const char *extra_string, bool force_condition, int parse_extra, 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) |
static void | break_command_1 (const char *arg, int flag, int from_tty) |
void | resolve_sal_pc (struct symtab_and_line *sal) |
void | break_command (const char *arg, int from_tty) |
void | tbreak_command (const char *arg, int from_tty) |
static void | hbreak_command (const char *arg, int from_tty) |
static void | thbreak_command (const char *arg, int from_tty) |
static void | dprintf_command (const char *arg, int from_tty) |
static void | agent_printf_command (const char *arg, int from_tty) |
static CORE_ADDR | find_breakpoint_range_end (struct symtab_and_line sal) |
static void | break_range_command (const char *arg, int from_tty) |
static bool | watchpoint_exp_is_const (const struct expression *exp) |
static void | watch_command_1 (const char *arg, int accessflag, int from_tty, bool just_location, bool internal) |
void | watch_command_wrapper (const char *arg, int from_tty, bool internal) |
static gdb::option::option_def_group | make_watch_options_def_group (watch_options *opts) |
static void | watch_maybe_just_location (const char *arg, int accessflag, int from_tty) |
static void | watch_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *) |
static void | watch_command (const char *arg, int from_tty) |
void | rwatch_command_wrapper (const char *arg, int from_tty, bool internal) |
static void | rwatch_command (const char *arg, int from_tty) |
void | awatch_command_wrapper (const char *arg, int from_tty, bool internal) |
static void | awatch_command (const char *arg, int from_tty) |
void | until_break_command (const char *arg, int from_tty, int anywhere) |
static int | compare_breakpoints (const breakpoint *a, const breakpoint *b) |
static void | clear_command (const char *arg, int from_tty) |
void | breakpoint_auto_delete (bpstat *bs) |
static int | bp_location_is_less_than (const bp_location *a, const bp_location *b) |
static void | bp_locations_target_extensions_update (void) |
static void | download_tracepoint_locations (void) |
static void | swap_insertion (struct bp_location *left, struct bp_location *right) |
static void | force_breakpoint_reinsertion (struct bp_location *bl) |
void | breakpoint_retire_moribund (void) |
static void | bpstat_remove_bp_location (bpstat *bps, struct breakpoint *bpt) |
static int | bpstat_remove_breakpoint_callback (struct thread_info *th, void *data) |
static void | strace_marker_create_sals_from_location_spec (location_spec *locspec, struct linespec_result *canonical) |
static void | strace_marker_create_breakpoints_sal (struct gdbarch *gdbarch, struct linespec_result *canonical, gdb::unique_xmalloc_ptr< char > cond_string, gdb::unique_xmalloc_ptr< char > extra_string, enum bptype type_wanted, enum bpdisp disposition, int thread, int task, int inferior, int ignore_count, int from_tty, int enabled, int internal, unsigned flags) |
static void | notify_breakpoint_deleted (breakpoint *b) |
void | delete_breakpoint (struct breakpoint *bpt) |
static void | iterate_over_related_breakpoints (struct breakpoint *b, gdb::function_view< void(breakpoint *)> function) |
static void | delete_command (const char *arg, int from_tty) |
static bool | all_locations_are_pending (struct breakpoint *b, struct program_space *pspace) |
static bool | ambiguous_names_p (const bp_location_range &locs) |
static struct symtab_and_line | update_static_tracepoint (tracepoint *tp, struct symtab_and_line sal) |
static bool | locations_are_equal (const bp_location_list &a, const bp_location_range &b) |
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) |
static void | breakpoint_re_set_one (breakpoint *b) |
void | breakpoint_re_set (void) |
void | breakpoint_re_set_thread (struct breakpoint *b) |
void | set_ignore_count (int bptnum, int count, int from_tty) |
static void | ignore_command (const char *args, int from_tty) |
static void | map_breakpoint_number_range (std::pair< int, int > bp_num_range, gdb::function_view< void(breakpoint *)> function) |
static struct bp_location * | find_location_by_number (int bp_num, int loc_num) |
static int | extract_bp_num (extract_bp_kind kind, const char *start, int trailer, const char **end_out=NULL) |
static std::pair< int, int > | extract_bp_or_bp_range (extract_bp_kind kind, const std::string &arg, std::string::size_type arg_offset) |
static void | extract_bp_number_and_location (const std::string &arg, std::pair< int, int > &bp_num_range, std::pair< int, int > &bp_loc_range) |
static void | enable_disable_bp_num_loc (int bp_num, int loc_num, bool enable) |
void | enable_disable_bp_location (bp_location *loc, bool enable) |
static void | enable_disable_breakpoint_location_range (int bp_num, std::pair< int, int > &bp_loc_range, bool enable) |
void | disable_breakpoint (struct breakpoint *bpt) |
static void | enable_disable_command (const char *args, int from_tty, bool enable) |
static void | disable_command (const char *args, int from_tty) |
void | enable_breakpoint (struct breakpoint *bpt) |
static void | enable_command (const char *args, int from_tty) |
static void | enable_once_command (const char *args, int from_tty) |
static void | enable_count_command (const char *args, int from_tty) |
static void | enable_delete_command (const char *args, int from_tty) |
static void | invalidate_bp_value_on_memory_change (struct inferior *inferior, CORE_ADDR addr, ssize_t len, const bfd_byte *data) |
void | insert_single_step_breakpoint (struct gdbarch *gdbarch, const address_space *aspace, CORE_ADDR next_pc) |
int | insert_single_step_breakpoints (struct gdbarch *gdbarch) |
int | breakpoint_has_location_inserted_here (struct breakpoint *bp, const address_space *aspace, CORE_ADDR pc) |
int | single_step_breakpoint_inserted_here_p (const address_space *aspace, CORE_ADDR pc) |
static void | trace_command (const char *arg, int from_tty) |
static void | ftrace_command (const char *arg, int from_tty) |
static void | strace_command (const char *arg, int from_tty) |
static const char * | read_uploaded_action (std::string &buffer) |
struct tracepoint * | create_tracepoint_from_upload (struct uploaded_tp *utp) |
static void | info_tracepoints_command (const char *args, int from_tty) |
static void | enable_trace_command (const char *args, int from_tty) |
static void | disable_trace_command (const char *args, int from_tty) |
static void | delete_trace_command (const char *arg, int from_tty) |
static void | trace_pass_set_count (struct tracepoint *tp, int count, int from_tty) |
struct tracepoint * | get_tracepoint (int num) |
struct tracepoint * | get_tracepoint_by_number_on_target (int num) |
struct tracepoint * | get_tracepoint_by_number (const char **arg, number_or_range_parser *parser) |
static void | save_breakpoints (const char *filename, int from_tty, bool(*filter)(const struct breakpoint *)) |
static void | save_breakpoints_command (const char *args, int from_tty) |
static void | save_tracepoints_command (const char *args, int from_tty) |
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) |
static bool | is_non_inline_function (struct breakpoint *b) |
int | pc_at_non_inline_function (const address_space *aspace, CORE_ADDR pc, const target_waitstatus &ws) |
void | breakpoint_free_objfile (struct objfile *objfile) |
void | _initialize_breakpoint () |
#define BP_HARDWAREFLAG 2 |
Definition at line 5240 of file breakpoint.c.
Referenced by break_command_1(), hbreak_command(), and thbreak_command().
#define BP_TEMPFLAG 1 |
Definition at line 5239 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]\n\\t[-force-condition] [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 linespec, address, or explicit location as described\n\below.\n\\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\With the \"-force-condition\" flag, the condition is defined even when\n\it is invalid for all current locations.\n\\n" LOCATION_SPEC_HELP_STRING "\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 14586 of file breakpoint.c.
#define breakpoint_debug_printf | ( | fmt, | |
... ) |
Definition at line 583 of file breakpoint.c.
Referenced by insert_bp_location(), remove_breakpoint_1(), remove_breakpoints_inf(), and update_global_location_list().
#define internal_error_pure_virtual_called | ( | ) | gdb_assert_not_reached ("pure virtual function called") |
Definition at line 11906 of file breakpoint.c.
Referenced by breakpoint::breakpoint_hit(), breakpoint::insert_location(), breakpoint::print_it(), breakpoint::print_mention(), breakpoint::print_recreate(), breakpoint::remove_location(), and breakpoint::resources_needed().
#define LOCATION_SPEC_HELP_STRING "Linespecs are colon-separated lists of location parameters, such as\n\source filename, function name, label name, and line number.\n\Example: To specify the start of a label named \"the_top\" in the\n\function \"fact\" in the file \"factorial.c\", use\n\\"factorial.c:fact:the_top\".\n\\n\Address locations begin with \"*\" and specify an exact address in the\n\program. Example: To specify the fourth byte past the start function\n\\"main\", use \"*main + 4\".\n\\n\Explicit locations are similar to linespecs but use an option/argument\n\syntax to specify location parameters.\n\Example: To specify the start of the label named \"the_top\" in the\n\function \"fact\" in the file \"factorial.c\", use \"-source factorial.c\n\-function fact -label the_top\".\n\\n\By default, a specified function is matched against the program's\n\functions in all scopes. For C++, this means in all namespaces and\n\classes. For Ada, this means in all packages. E.g., in C++,\n\\"func()\" matches \"A::func()\", \"A::B::func()\", etc. The\n\\"-qualified\" flag overrides this behavior, making GDB interpret the\n\specified name as a complete fully-qualified name instead." |
Definition at line 14557 of file breakpoint.c.
#define NUM_LONGJMP_NAMES ARRAY_SIZE(longjmp_names) |
Definition at line 3494 of file breakpoint.c.
Referenced by create_longjmp_master_breakpoint_names().
|
strong |
Enumerator | |
---|---|
bp | |
loc |
Definition at line 13440 of file breakpoint.c.
enum ugll_insert_mode |
Enumerator | |
---|---|
UGLL_DONT_INSERT | |
UGLL_MAY_INSERT | |
UGLL_INSERT |
Definition at line 171 of file breakpoint.c.
enum wp_check_result |
Enumerator | |
---|---|
WP_DELETED | |
WP_VALUE_CHANGED | |
WP_VALUE_NOT_CHANGED | |
WP_IGNORE |
Definition at line 5224 of file breakpoint.c.
void _initialize_breakpoint | ( | ) |
Definition at line 14692 of file breakpoint.c.
Referenced by initialize_all_files().
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 14617 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.
|
static |
Definition at line 1994 of file breakpoint.c.
References breakpoint::add_location(), bp_loc_other, breakpoint::has_locations(), and loc.
Referenced by catchpoint::catchpoint(), and update_watchpoint().
|
static |
Definition at line 7600 of file breakpoint.c.
References breakpoint_chain.
Referenced by create_internal_breakpoint(), insert_single_step_breakpoint(), install_breakpoint(), momentary_breakpoint_from_master(), and set_momentary_breakpoint().
|
static |
Referenced by code_breakpoint::add_location(), set_gdbarch_adjust_breakpoint_address(), and watch_command_1().
|
static |
Definition at line 7440 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(), gdbarch_adjust_breakpoint_address_p(), gdbarch_remove_non_address_bits(), and switch_to_program_space_and_thread().
|
static |
Definition at line 9554 of file breakpoint.c.
const std::vector< bp_location * > & all_bp_locations | ( | ) |
Definition at line 733 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().
|
static |
Definition at line 792 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().
breakpoint_range all_breakpoints | ( | ) |
Definition at line 704 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(), check_longjmp_breakpoint_for_call_dummy(), clear_breakpoint_hit_counts(), clear_command(), condition_completer(), 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 712 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_inferior_breakpoints(), 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().
|
static |
Definition at line 12745 of file breakpoint.c.
References loc, breakpoint::locations(), and breakpoint::pspace.
Referenced by update_breakpoint_locations().
tracepoint_range all_tracepoints | ( | ) |
Definition at line 720 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().
|
static |
Definition at line 12761 of file breakpoint.c.
References name, xcalloc(), and xfree().
Referenced by update_breakpoint_locations().
|
static |
Definition at line 10817 of file breakpoint.c.
References watch_maybe_just_location().
void awatch_command_wrapper | ( | const char * | arg, |
int | from_tty, | ||
bool | internal ) |
Definition at line 10811 of file breakpoint.c.
References watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
|
static |
Definition at line 12307 of file breakpoint.c.
References linespec_sals::canonical, parse_probes(), and linespec_sals::sals.
Referenced by tracepoint_probe_create_sals_from_location_spec().
|
static |
Definition at line 12319 of file breakpoint.c.
References parse_probes(), and linespec_sals::sals.
Referenced by code_breakpoint::decode_location_spec().
|
static |
Definition at line 7247 of file breakpoint.c.
References bp_loc_other, and loc.
Referenced by bp_loc_is_permanent(), breakpoint_address_bits(), and update_global_location_list().
|
static |
Definition at line 6243 of file breakpoint.c.
References condition_evaluation_both, condition_evaluation_host, condition_evaluation_target, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), breakpoint::locations(), and target_supports_evaluation_of_breakpoint_conditions().
Referenced by print_breakpoint_location(), and print_one_breakpoint_location().
|
static |
Definition at line 8516 of file breakpoint.c.
References bl_address_is_meaningful(), gdbarch_program_breakpoint_here_p(), loc, and switch_to_program_space_and_thread().
Referenced by code_breakpoint::add_location().
|
static |
Definition at line 6278 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 7498 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_loc_software_watchpoint, bp_loc_tracepoint, 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_marker_tracepoint, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, and bp_watchpoint_scope.
|
static |
Definition at line 1693 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_locations_target_extensions_update(), and breakpoint_xfer_memory().
|
static |
Definition at line 4428 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 11190 of file breakpoint.c.
References bp_location::address, bp_loc_hardware_breakpoint, bp_location::length, bp_location::loc_type, program_space::num, breakpoint::number, bp_location::owner, bp_location::permanent, and bp_location::pspace.
Referenced by update_global_location_list().
|
static |
Definition at line 11233 of file breakpoint.c.
References all_bp_locations(), bp_location_has_shadow(), bp_locations_placed_address_before_address_max, bp_locations_shadow_len_after_address_max, bp_target_info::placed_address, and bp_location::target_info.
Referenced by update_global_location_list().
const char * bpdisp_text | ( | enum bpdisp | disp | ) |
Definition at line 505 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 6201 of file breakpoint.c.
References bpstat::next, and bpstat::stop.
Referenced by bpstat_stop_status(), handle_inferior_event(), and handle_syscall_event().
|
static |
Definition at line 5571 of file breakpoint.c.
References ada_get_task_number(), block_innermost_frame(), bpstat::bp_location_at, bpstat_locno(), bpstat::breakpoint_at, breakpoint_cond_eval(), breakpoint_ext_lang_cond_says_stop(), bp_location::cond, watchpoint::cond_exp, watchpoint::cond_exp_valid_block, disp_del_at_next_stop, breakpoint::disposition, exception_fprintf(), find_loc_num_by_location(), breakpoint::frame_id, frame_id_p(), gdb_stderr, get_current_frame(), get_stack_frame_id(), thread_info::global_num, breakpoint::hit_count, breakpoint::ignore_count, thread_info::inf, breakpoint::inferior, infrun_debug_printf, INFRUN_SCOPED_DEBUG_ENTER_EXIT, is_watchpoint(), notify_breakpoint_modified(), inferior::num, breakpoint::number, thread_info::ptid, select_frame(), bpstat::stop, breakpoint::task, breakpoint::thread, frame_id::to_string(), and to_string().
Referenced by bpstat_stop_status().
|
static |
Definition at line 5390 of file breakpoint.c.
References breakpoint::breakpoint_hit(), and bp_location::owner.
Referenced by build_bpstat_chain(), and pc_at_non_inline_function().
|
static |
Definition at line 5406 of file breakpoint.c.
References all_breakpoints(), bp_access_watchpoint, bp_hardware_watchpoint, bpstat::bp_location_at, bp_read_watchpoint, bp_watchpoint, bpstat::breakpoint_at, exception_fprintf(), gdb_printf(), gdb_stderr, breakpoint::number, bpstat::print_it, print_it_done, print_it_noop, bpstat::stop, SWITCH_THRU_ALL_UIS, 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, and WP_VALUE_NOT_CHANGED.
Referenced by watchpoint::check_status().
void bpstat_clear | ( | bpstat ** | bsp | ) |
Definition at line 4537 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 4706 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 4571 of file breakpoint.c.
References bpstat::next.
Referenced by save_infcall_control_state().
void bpstat_do_actions | ( | void | ) |
Definition at line 4902 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().
|
static |
Definition at line 4773 of file breakpoint.c.
References ui::async, bpstat_locno(), bpstat::breakpoint_at, breakpoint_proceeded, command_line_is_silent(), bpstat::commands, current_ui, execute_control_command(), executing_breakpoint_commands, bpstat::next, command_line::next, breakpoint::number, prevent_dont_repeat(), bpstat::print, and set_hit_convenience_vars().
Referenced by bpstat_do_actions().
bool bpstat_explains_signal | ( | bpstat * | bsp, |
enum gdb_signal | sig ) |
Definition at line 4614 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 4598 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 4660 of file breakpoint.c.
References bp_location::address, bpstat::bp_location_at, bpstat::breakpoint_at, bp_location::gdbarch, breakpoint::has_multiple_locations(), loc, breakpoint::locations(), breakpoint::number, and paddress().
Referenced by bpstat_check_breakpoint_conditions(), bpstat_do_actions_1(), and print_num_locno().
int bpstat_num | ( | bpstat ** | bsp, |
int * | num ) |
Definition at line 4638 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 5082 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().
|
static |
Definition at line 11774 of file breakpoint.c.
References bpstat::breakpoint_at, bpstat::next, and bpstat::old_val.
Referenced by bpstat_remove_breakpoint_callback().
|
static |
Definition at line 11789 of file breakpoint.c.
References bpstat_remove_bp_location(), thread_info::control, and thread_control_state::stop_bpstat.
Referenced by delete_breakpoint().
void bpstat_run_callbacks | ( | bpstat * | bs_head | ) |
Definition at line 6157 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 6187 of file breakpoint.c.
References all_breakpoints(), bp_watchpoint, breakpoint_enabled(), breakpoint::has_locations(), and breakpoint::type.
Referenced by currently_stepping(), and resume_1().
bpstat * bpstat_stop_status | ( | const address_space * | aspace, |
CORE_ADDR | bp_addr, | ||
thread_info * | thread, | ||
const target_waitstatus & | ws, | ||
bpstat * | stop_chain ) |
Definition at line 5824 of file breakpoint.c.
References breakpoint::after_condition_true(), bp_disabled, bp_shlib_event, bpstat_causes_stop(), bpstat_check_breakpoint_conditions(), bpstat::breakpoint_at, 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, notify_breakpoint_modified(), 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 5935 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 5979 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.
Referenced by process_event_stop_test().
|
static |
Definition at line 6369 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_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, and type.
Referenced by breakpoint_1(), create_breakpoint(), and print_one_breakpoint_location().
void break_command | ( | const char * | arg, |
int | from_tty ) |
Definition at line 9493 of file breakpoint.c.
References break_command_1().
Referenced by mi_cmd_break_commands(), and rbreak_command().
|
static |
Definition at line 9413 of file breakpoint.c.
References bp_breakpoint, bp_hardware_breakpoint, BP_HARDWAREFLAG, BP_TEMPFLAG, breakpoint_ops_for_location_spec(), create_breakpoint(), current_language, get_current_arch(), linespec_result::locspec, pending_break_support, and string_to_location_spec().
Referenced by break_command(), hbreak_command(), tbreak_command(), and thbreak_command().
|
static |
Definition at line 9718 of file breakpoint.c.
References bp_hardware_breakpoint, current_language, decode_line_full(), DECODE_LINE_FUNFIRSTLINE, find_breakpoint_range_end(), get_current_arch(), hbreak_command(), hw_breakpoint_used_count(), install_breakpoint(), symtab_and_line::line, linespec_result::lsals, parse_breakpoint_sals(), symtab_and_line::pc, linespec_sals::sals, string_to_location_spec(), symtab_and_line::symtab, target_can_use_hardware_watchpoint(), and target_ranged_break_num_registers().
|
static |
Definition at line 6970 of file breakpoint.c.
References bp_location::address, all_breakpoints(), annotate_breakpoints_headers(), annotate_breakpoints_table(), annotate_breakpoints_table_end(), annotate_field(), bptype_string(), breakpoint_address_bits(), current_uiout, bp_location::gdbarch, get_user_print_options(), ui_out::is_mi_like_p(), loc, breakpoint::locations(), ui_out::message(), breakpoint::number, number_is_in_list(), parse_and_eval_long(), print_one_breakpoint(), QUIT, server_command, set_next_address(), ui_out::table_body(), ui_out::table_header(), breakpoint::type, ui_left, ui_noalign, and user_breakpoint_p().
Referenced by info_breakpoints_command(), info_tracepoints_command(), info_watchpoints_command(), and maintenance_info_breakpoints().
|
static |
Definition at line 4724 of file breakpoint.c.
References breakpoint_proceeded, thread_info::control, thread_control_state::in_infcall, inferior_ptid, and inferior_thread().
|
static |
Definition at line 6913 of file breakpoint.c.
References bl_address_is_meaningful(), gdbarch_addr_bit(), loc, and breakpoint::locations().
Referenced by breakpoint_1().
int breakpoint_address_match | ( | const address_space * | aspace1, |
CORE_ADDR | addr1, | ||
const address_space * | aspace2, | ||
CORE_ADDR | addr2 ) |
Definition at line 7299 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().
|
static |
Definition at line 7313 of file breakpoint.c.
References gdbarch_has_global_breakpoints(), and target_gdbarch().
Referenced by ranged_breakpoint::breakpoint_hit(), and breakpoint_location_address_match().
|
static |
Definition at line 7417 of file breakpoint.c.
Referenced by adjust_breakpoint_address(), and ordinary_breakpoint::print_it().
void breakpoint_auto_delete | ( | bpstat * | bs | ) |
Definition at line 11170 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 494 of file breakpoint.c.
References breakpoint::commands.
Referenced by bppy_get_commands(), remote_target::download_tracepoint(), encode_actions(), gdbscm_breakpoint_commands(), and tdump_command().
|
static |
Definition at line 5116 of file breakpoint.c.
References expression::evaluate(), and value_true().
Referenced by bpstat_check_breakpoint_conditions().
|
static |
Definition at line 672 of file breakpoint.c.
References condition_evaluation_mode, and 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 838 of file breakpoint.c.
References bp_enabled, and breakpoint::enable_state.
Referenced by bpstat_should_step(), breakpoint_here_p(), breakpoint_in_range_p(), build_bpstat_chain(), 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(), print_one_breakpoint_location(), remove_breakpoint_1(), and should_be_inserted().
void breakpoint_free_objfile | ( | struct objfile * | objfile | ) |
Definition at line 14675 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 13978 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().
|
static |
Definition at line 7172 of file breakpoint.c.
References breakpoint::locations(), and overlay_debugging.
Referenced by describe_other_breakpoints().
enum breakpoint_here breakpoint_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc ) |
Definition at line 4352 of file breakpoint.c.
References all_bp_locations(), program_space::aspace, 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 4384 of file breakpoint.c.
References all_bp_locations(), program_space::aspace, 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 | context | ) |
Definition at line 4240 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, breakpoint::clear_locations(), current_program_space, decref_bp_location(), delete_breakpoint(), watchpoint::exp_valid_block, breakpoint::first_loc(), gdbarch_has_global_breakpoints(), breakpoint::has_locations(), inf_starting, 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 4446 of file breakpoint.c.
References all_bp_locations_at_addr(), program_space::aspace, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, and bp_location_inserted_here_p().
Referenced by darwin_nat_target::cancel_breakpoint(), fbsd_nat_target::detach(), do_target_wait_1(), handle_inferior_event(), record_check_stopped_by_breakpoint(), resume_1(), resume_stopped_resumed_lwps(), and status_callback().
|
static |
Definition at line 2779 of file breakpoint.c.
References bp_single_step, find_thread_global_id(), bp_location::gdbarch, gdbarch_breakpoint_kind_from_current_state(), gdbarch_breakpoint_kind_from_pc(), get_thread_regcache(), bp_location::owner, reg_buffer::regcache, breakpoint::thread, and breakpoint::type.
Referenced by insert_bp_location(), and code_breakpoint::insert_location().
|
static |
Definition at line 7329 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.
|
static |
|
static |
Definition at line 7348 of file breakpoint.c.
References bp_location::address, program_space::aspace, gdbarch_has_global_breakpoints(), bp_location::length, mem_ranges_overlap(), bp_location::pspace, and target_gdbarch().
Referenced by breakpoint_in_range_p().
|
static |
Definition at line 252 of file breakpoint.c.
References bp_location::address, bp_location::gdbarch, breakpoint::number, bp_location::owner, paddress(), and bp_location::to_string().
Referenced by insert_bp_location(), and remove_breakpoint_1().
|
static |
Definition at line 3892 of file breakpoint.c.
References breakpoint::locspec.
Referenced by code_breakpoint::re_set(), and update_breakpoints_after_exec().
|
static |
Definition at line 7387 of file breakpoint.c.
References bp_location::address, program_space::aspace, breakpoint_address_match(), is_hardware_watchpoint(), is_tracepoint(), bp_location::length, bp_location::loc_type, bp_location::owner, bp_location::pspace, tracepoint_locations_match(), and watchpoint_locations_match().
Referenced by build_target_command_list(), update_breakpoint_locations(), and update_global_location_list().
const struct breakpoint_ops * breakpoint_ops_for_location_spec | ( | const location_spec * | locspec, |
bool | is_tracepoint ) |
Definition at line 9198 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().
|
static |
Definition at line 9176 of file breakpoint.c.
References bkpt_probe_breakpoint_ops, code_breakpoint_ops, is_tracepoint(), PROBE_LOCATION_SPEC, and tracepoint_probe_breakpoint_ops.
Referenced by breakpoint_ops_for_location_spec().
void breakpoint_program_space_exit | ( | struct program_space * | pspace | ) |
Definition at line 3141 of file breakpoint.c.
References all_bp_locations(), all_breakpoints_safe(), delete_breakpoint(), loc, breakpoint::pspace, UGLL_DONT_INSERT, and update_global_location_list().
Referenced by program_space::~program_space().
void breakpoint_re_set | ( | void | ) |
Definition at line 13229 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().
|
static |
Definition at line 13217 of file breakpoint.c.
References breakpoint::input_radix, input_radix, breakpoint::language, breakpoint::re_set(), and set_language().
Referenced by breakpoint_re_set().
void breakpoint_re_set_thread | ( | struct breakpoint * | b | ) |
Definition at line 13285 of file breakpoint.c.
References current_program_space, breakpoint::first_loc(), thread_info::global_num, inferior_thread(), bp_location::pspace, and breakpoint::thread.
Referenced by follow_inferior_reset_breakpoints().
void breakpoint_retire_moribund | ( | void | ) |
Definition at line 11744 of file breakpoint.c.
References decref_bp_location(), loc, and moribund_locations.
Referenced by handle_inferior_event().
|
static |
Definition at line 8914 of file breakpoint.c.
References resolve_sal_pc(), and linespec_sals::sals.
Referenced by create_breakpoint().
void breakpoint_set_commands | ( | struct breakpoint * | b, |
counted_command_line && | commands ) |
Definition at line 1519 of file breakpoint.c.
References breakpoint::commands, notify_breakpoint_modified(), 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_inferior | ( | struct breakpoint * | b, |
int | inferior ) |
Definition at line 1564 of file breakpoint.c.
References breakpoint::inferior, notify_breakpoint_modified(), breakpoint::task, and breakpoint::thread.
Referenced by bppy_set_inferior().
void breakpoint_set_silent | ( | struct breakpoint * | b, |
int | silent ) |
Definition at line 1533 of file breakpoint.c.
References 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 1583 of file breakpoint.c.
References breakpoint::inferior, notify_breakpoint_modified(), breakpoint::task, and breakpoint::thread.
Referenced by bppy_set_task(), and gdbscm_set_breakpoint_task_x().
void breakpoint_set_thread | ( | struct breakpoint * | b, |
int | thread ) |
Definition at line 1545 of file breakpoint.c.
References breakpoint::inferior, notify_breakpoint_modified(), breakpoint::task, 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 1818 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 598 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 5748 of file breakpoint.c.
References all_breakpoints(), bp_hardware_watchpoint, bp_watchpoint_scope, bpstat_check_location(), breakpoint_enabled(), breakpoint_location_address_match(), breakpoint::first_loc(), 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().
|
static |
Definition at line 2671 of file breakpoint.c.
References bp_location::address, all_bp_locations_at_addr(), bp_dprintf, bp_enabled, breakpoint_locations_match(), disconnected_dprintf, dprintf_style, dprintf_style_agent, is_breakpoint(), loc, 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, bp_target_info::tcommands, and breakpoint::type.
Referenced by insert_bp_location().
|
static |
Definition at line 2493 of file breakpoint.c.
References bp_location::address, all_bp_locations_at_addr(), bp_enabled, bp_target_info::conditions, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), loc, bp_location::needs_update, program_space::num, parse_cond_to_aexpr(), bp_location::pspace, bp_location::target_info, and target_supports_evaluation_of_breakpoint_conditions().
Referenced by insert_bp_location().
|
static |
Definition at line 10633 of file breakpoint.c.
References value::address, can_use_hw_watchpoints, check_typedef(), type::code(), value::deprecated_modifiable(), is_scalar_type_recursive(), value::lazy(), type::length(), value::lval(), lval_memory, lval_register, not_lval, target_exact_watchpoints, target_region_ok_for_hw_watchpoint(), and value::type().
Referenced by update_watchpoint().
|
static |
Definition at line 8928 of file breakpoint.c.
References gdbarch_fast_tracepoint_valid_at(), get_sal_arch(), paddress(), and linespec_sals::sals.
Referenced by create_breakpoint().
void check_longjmp_breakpoint_for_call_dummy | ( | struct thread_info * | tp | ) |
Definition at line 7761 of file breakpoint.c.
References all_breakpoints(), 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::inferior, breakpoint::related_breakpoint, breakpoint::thread, and breakpoint::type.
Referenced by process_event_stop_test().
|
static |
Definition at line 1334 of file breakpoint.c.
References command_line::body_list_0, command_line::body_list_1, check_no_tracepoint_commands(), command_line::control_type, command_line::line, command_line::next, and while_stepping_control.
Referenced by check_no_tracepoint_commands(), and validate_commands_for_breakpoint().
void clear_breakpoint_hit_counts | ( | void | ) |
Definition at line 876 of file breakpoint.c.
References all_breakpoints().
Referenced by run_command_1().
|
static |
Definition at line 11010 of file breakpoint.c.
References all_breakpoints(), bp_none, DECODE_LINE_FUNFIRSTLINE, DECODE_LINE_LIST_MODE, decode_line_with_current_source(), delete_breakpoint(), gdb_printf(), gdb_putc(), get_last_displayed_sal(), is_watchpoint(), loc, breakpoint::locations(), section_is_overlay(), symtab_and_line::symtab, symtab_to_fullname(), breakpoint::type, and user_breakpoint_p().
struct breakpoint * clone_momentary_breakpoint | ( | struct breakpoint * | orig | ) |
Definition at line 8361 of file breakpoint.c.
References momentary_breakpoint_from_master(), breakpoint::thread, and breakpoint::type.
Referenced by follow_fork().
|
static |
Definition at line 4745 of file breakpoint.c.
References command_line::line.
Referenced by bpstat_do_actions_1(), and bpstat_stop_status().
|
static |
Definition at line 1673 of file breakpoint.c.
References commands_command_1().
|
static |
Definition at line 1600 of file breakpoint.c.
References command_line::body_list_0, breakpoint_count, breakpoint::commands, is_tracepoint(), command_line::line, map_breakpoint_numbers(), notify_breakpoint_modified(), prev_breakpoint_count, read_command_lines(), validate_actionline(), and validate_commands_for_breakpoint().
Referenced by commands_command(), and commands_from_control_command().
enum command_control_type commands_from_control_command | ( | const char * | arg, |
struct command_line * | cmd ) |
Definition at line 1684 of file breakpoint.c.
References commands_command_1(), and simple_control.
Referenced by execute_control_command_1().
|
static |
Definition at line 10990 of file breakpoint.c.
References breakpoint::number.
|
static |
Definition at line 1306 of file breakpoint.c.
References error_no_arg(), condition_command_opts::force_condition, get_number(), make_condition_command_options_def_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR, and set_breakpoint_condition().
|
static |
Definition at line 1246 of file breakpoint.c.
References completion_tracker::add_completion(), completion_tracker::advance_custom_word_point_by(), advance_to_expression_complete_word_point(), all_breakpoints(), complete_internalvar(), gdb::option::complete_on_all_options(), gdb::option::complete_options(), expression_completer(), make_condition_command_options_def_group(), breakpoint::number, and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR.
struct breakpoint * create_and_insert_solib_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address ) |
Definition at line 7971 of file breakpoint.c.
References create_solib_event_breakpoint_1(), delete_breakpoint(), breakpoint::first_loc(), bp_location::inserted, and UGLL_INSERT.
int create_breakpoint | ( | struct gdbarch * | gdbarch, |
location_spec * | locspec, | ||
const char * | cond_string, | ||
int | thread, | ||
int | inferior, | ||
const char * | extra_string, | ||
bool | force_condition, | ||
int | parse_extra, | ||
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 9210 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().
|
static |
Definition at line 8742 of file breakpoint.c.
References flags, install_breakpoint(), and new_breakpoint_from_type().
Referenced by create_breakpoints_sal().
|
static |
Definition at line 8787 of file breakpoint.c.
References create_breakpoint_sal(), flags, linespec_result::locspec, linespec_result::lsals, linespec_result::pre_expanded, and linespec_result::special_display.
|
static |
Definition at line 3869 of file breakpoint.c.
References create_exception_master_breakpoint_hook(), create_exception_master_breakpoint_probe(), current_program_space, and program_space::objfiles().
Referenced by breakpoint_re_set().
|
static |
Definition at line 3830 of file breakpoint.c.
References objfile::arch(), bp_disabled, bp_exception_master, create_internal_breakpoint(), breakpoint::enable_state, breakpoint_objfile_data::exception_msym, get_breakpoint_objfile_data(), breakpoint::locspec, lookup_minimal_symbol(), bound_minimal_symbol::minsym, msym_not_found, msym_not_found_p(), and new_explicit_location_spec_function().
Referenced by create_exception_master_breakpoint().
|
static |
Definition at line 3779 of file breakpoint.c.
References objfile::arch(), bp_disabled, bp_exception_master, probe::can_evaluate_arguments(), create_internal_breakpoint(), breakpoint::enable_state, breakpoint_objfile_data::exception_probes, breakpoint_objfile_data::exception_searched, find_probes_in_objfile(), get_breakpoint_objfile_data(), breakpoint::locspec, and new_probe_location_spec().
Referenced by create_exception_master_breakpoint().
|
static |
Definition at line 3452 of file breakpoint.c.
References add_to_breakpoint_chain(), and internal_breakpoint_number.
Referenced by create_exception_master_breakpoint_hook(), create_exception_master_breakpoint_probe(), create_internal_breakpoint(), create_jit_event_breakpoint(), create_longjmp_master_breakpoint_names(), create_longjmp_master_breakpoint_probe(), create_overlay_event_breakpoint(), create_solib_event_breakpoint_1(), create_std_terminate_master_breakpoint(), create_thread_event_breakpoint(), and watch_command_1().
|
static |
Definition at line 3467 of file breakpoint.c.
References create_internal_breakpoint(), current_inferior(), gdbarch_convert_from_func_ptr_addr(), gdbarch_skip_entrypoint(), gdbarch_skip_entrypoint_p(), and bound_minimal_symbol::value_address().
struct breakpoint * create_jit_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address ) |
Definition at line 7911 of file breakpoint.c.
References bp_jit_event, and create_internal_breakpoint().
Referenced by jit_breakpoint_re_set_internal().
|
static |
Definition at line 3702 of file breakpoint.c.
References create_longjmp_master_breakpoint_names(), create_longjmp_master_breakpoint_probe(), current_program_space, program_space::objfiles(), program_spaces, and set_current_program_space().
Referenced by breakpoint_re_set().
|
static |
Definition at line 3655 of file breakpoint.c.
References objfile::arch(), bp_disabled, bp_longjmp_master, create_internal_breakpoint(), breakpoint::enable_state, gdbarch_get_longjmp_target_p(), get_breakpoint_objfile_data(), breakpoint::locspec, breakpoint_objfile_data::longjmp_msym, longjmp_names, lookup_minimal_symbol_text(), bound_minimal_symbol::minsym, msym_not_found, msym_not_found_p(), new_explicit_location_spec_function(), NUM_LONGJMP_NAMES, and bound_minimal_symbol::value_address().
Referenced by create_longjmp_master_breakpoint().
|
static |
Definition at line 3606 of file breakpoint.c.
References objfile::arch(), bp_disabled, bp_longjmp_master, probe::can_evaluate_arguments(), create_internal_breakpoint(), breakpoint::enable_state, find_probes_in_objfile(), get_breakpoint_objfile_data(), breakpoint::locspec, breakpoint_objfile_data::longjmp_probes, breakpoint_objfile_data::longjmp_searched, and new_probe_location_spec().
Referenced by create_longjmp_master_breakpoint().
|
static |
Definition at line 3555 of file breakpoint.c.
References objfile::arch(), bp_disabled, bp_enabled, bp_overlay_event, create_internal_breakpoint(), current_program_space, breakpoint::enable_state, get_breakpoint_objfile_data(), breakpoint::locspec, lookup_minimal_symbol_text(), bound_minimal_symbol::minsym, msym_not_found, msym_not_found_p(), new_explicit_location_spec_function(), program_space::objfiles(), overlay_debugging, overlay_events_enabled, breakpoint_objfile_data::overlay_msym, ovly_auto, and bound_minimal_symbol::value_address().
Referenced by breakpoint_re_set().
|
static |
Definition at line 13208 of file breakpoint.c.
References parse_breakpoint_sals().
struct breakpoint * create_solib_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address ) |
Definition at line 7963 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().
|
static |
Definition at line 7952 of file breakpoint.c.
References bp_shlib_event, create_internal_breakpoint(), and update_global_location_list_nothrow().
Referenced by create_and_insert_solib_event_breakpoint(), and create_solib_event_breakpoint().
|
static |
Definition at line 3731 of file breakpoint.c.
References objfile::arch(), bp_disabled, bp_std_terminate_master, create_internal_breakpoint(), current_program_space, breakpoint::enable_state, get_breakpoint_objfile_data(), breakpoint::locspec, lookup_minimal_symbol(), bound_minimal_symbol::minsym, mst_file_text, mst_text, msym_not_found, msym_not_found_p(), new_explicit_location_spec_function(), program_space::objfiles(), program_spaces, set_current_program_space(), and breakpoint_objfile_data::terminate_msym.
Referenced by breakpoint_re_set().
struct breakpoint * create_thread_event_breakpoint | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address ) |
Definition at line 7887 of file breakpoint.c.
References bp_location::address, bp_enabled, bp_thread_event, create_internal_breakpoint(), breakpoint::enable_state, breakpoint::first_loc(), breakpoint::locspec, new_address_location_spec(), UGLL_MAY_INSERT, and update_global_location_list_nothrow().
Referenced by pd_enable().
struct tracepoint * create_tracepoint_from_upload | ( | struct uploaded_tp * | utp | ) |
Definition at line 14120 of file breakpoint.c.
References uploaded_tp::actions, uploaded_tp::addr, uploaded_tp::at_string, breakpoint_set_commands(), uploaded_tp::cmd_strings, code_breakpoint_ops, uploaded_tp::cond, uploaded_tp::cond_string, create_breakpoint(), CREATE_BREAKPOINT_FLAGS_INSERTED, current_language, uploaded_tp::enabled, get_current_arch(), get_tracepoint(), breakpoint::hit_count, uploaded_tp::hit_count, breakpoint::locspec, next_cmd, breakpoint::number, uploaded_tp::number, uploaded_tp::pass, pending_break_support, read_command_lines_1(), read_uploaded_action(), uploaded_tp::step_actions, string_to_location_spec(), this_utp, trace_pass_command(), tracepoint::traceframe_usage, uploaded_tp::traceframe_usage, tracepoint_count, and uploaded_tp::type.
Referenced by merge_uploaded_tracepoints().
|
static |
Definition at line 9141 of file breakpoint.c.
References find_pc_line(), symtab_and_line::pc, and target_static_tracepoint_markers_by_strid().
Referenced by static_marker_tracepoint::decode_location_spec(), and strace_marker_create_sals_from_location_spec().
|
static |
Definition at line 7591 of file breakpoint.c.
References bp_location_ref_policy::decref().
Referenced by breakpoint_init_inferior(), breakpoint_retire_moribund(), and update_global_location_list().
|
static |
Definition at line 7123 of file breakpoint.c.
References current_uiout, default_collect, ui_out::field_string(), and ui_out::text().
Referenced by info_breakpoints_command(), info_tracepoints_command(), and maintenance_info_breakpoints().
void delete_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 12586 of file breakpoint.c.
References bp_none, bp_watchpoint_scope, bpstat_remove_breakpoint_callback(), breakpoint_chain, breakpoint::clear_locations(), iterate_over_threads(), notify_breakpoint_deleted(), breakpoint::number, breakpoint::related_breakpoint, breakpoint::type, UGLL_DONT_INSERT, update_global_location_list(), and watchpoint_del_at_next_stop().
Referenced by amd_dbgapi_remove_breakpoint_callback(), bpfinishpy_detect_out_scope_cb(), 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(), detach_amd_dbgapi(), 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_inferior_breakpoints(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_threaded_breakpoints(), update_breakpoints_after_exec(), and jiter_objfile_data::~jiter_objfile_data().
|
static |
Definition at line 12707 of file breakpoint.c.
References all_breakpoints(), all_breakpoints_safe(), delete_breakpoint(), dont_repeat(), iterate_over_related_breakpoints(), map_breakpoint_numbers(), query(), and user_breakpoint_p().
void delete_longjmp_breakpoint | ( | int | thread | ) |
Definition at line 7692 of file breakpoint.c.
References all_breakpoints_safe(), bp_exception, bp_longjmp, delete_breakpoint(), breakpoint::inferior, 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 7706 of file breakpoint.c.
References all_breakpoints_safe(), bp_exception, bp_longjmp, disp_del_at_next_stop, breakpoint::disposition, breakpoint::inferior, breakpoint::thread, and breakpoint::type.
Referenced by clear_thread_inferior_resources().
void delete_std_terminate_breakpoint | ( | void | ) |
Definition at line 7879 of file breakpoint.c.
References all_breakpoints_safe(), bp_std_terminate, delete_breakpoint(), and breakpoint::type.
Referenced by call_function_by_hand_dummy().
|
static |
Definition at line 14245 of file breakpoint.c.
References all_breakpoints_safe(), all_tracepoints(), delete_breakpoint(), dont_repeat(), is_tracepoint(), iterate_over_related_breakpoints(), map_breakpoint_numbers(), query(), and user_breakpoint_p().
void describe_other_breakpoints | ( | struct gdbarch * | gdbarch, |
struct program_space * | pspace, | ||
CORE_ADDR | pc, | ||
struct obj_section * | section, | ||
int | thread ) |
Definition at line 7189 of file breakpoint.c.
References address_style, all_breakpoints(), bp_call_disabled, bp_disabled, breakpoint_has_pc(), current_uiout, breakpoint::enable_state, find_thread_global_id(), gdb_printf(), breakpoint::number, paddress(), print_thread_id(), cli_style_option::style(), styled_string(), breakpoint::task, breakpoint::thread, and user_breakpoint_p().
Referenced by code_breakpoint::code_breakpoint().
int detach_breakpoints | ( | ptid_t | ptid | ) |
Definition at line 4017 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 13669 of file breakpoint.c.
References bp_disabled, bp_watchpoint_scope, current_trace_status(), breakpoint::enable_state, is_tracepoint(), breakpoint::locations(), mark_breakpoint_modified(), 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(), enable_disable_command(), gdbscm_set_breakpoint_enabled_x(), svr4_update_solib_event_breakpoint(), and watchpoint_del_at_next_stop().
void disable_breakpoints_before_startup | ( | void | ) |
Definition at line 8271 of file breakpoint.c.
References current_program_space, program_space::executing_startup, UGLL_DONT_INSERT, and update_global_location_list().
|
static |
Definition at line 8066 of file breakpoint.c.
References all_breakpoints(), bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, objfile::flags, is_addr_in_objfile(), is_breakpoint(), is_tracepoint(), loc, breakpoint::locations(), mark_breakpoint_location_modified(), notify_breakpoint_modified(), OBJF_SHARED, OBJF_USERLOADED, and objfile::pspace.
void disable_breakpoints_in_shlibs | ( | void | ) |
Definition at line 7990 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().
|
static |
Definition at line 8021 of file breakpoint.c.
References all_bp_locations(), bp_breakpoint, bp_hardware_breakpoint, bp_jit_event, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, is_tracepoint(), loc, notify_breakpoint_modified(), target_terminal::ours_for_output(), breakpoint::pspace, so_list::so_name, solib_contains_address_p(), and breakpoint::type.
|
static |
Definition at line 13754 of file breakpoint.c.
References enable_disable_command().
Referenced by disable_trace_command().
void disable_overlay_breakpoints | ( | void | ) |
Definition at line 7852 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().
|
static |
Definition at line 14238 of file breakpoint.c.
References disable_command().
void disable_watchpoints_before_interactive_call_start | ( | void | ) |
Definition at line 8249 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().
|
static |
Definition at line 11265 of file breakpoint.c.
References all_tracepoints(), bp_fast_tracepoint, breakpoint::locations(), may_insert_fast_tracepoints, may_insert_tracepoints, notify_breakpoint_modified(), breakpoint::number, tracepoint::number_on_target, 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 9522 of file breakpoint.c.
References bp_dprintf, code_breakpoint_ops, create_breakpoint(), current_language, get_current_arch(), pending_break_support, and string_to_location_spec().
void enable_breakpoint | ( | struct breakpoint * | bpt | ) |
Definition at line 13821 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().
|
static |
Definition at line 13760 of file breakpoint.c.
References bp_disabled, bp_enabled, bp_hardware_breakpoint, current_trace_status(), breakpoint::disposition, breakpoint::enable_count, breakpoint::enable_state, exception_fprintf(), gdb_stderr, hw_breakpoint_used_count(), is_tracepoint(), is_watchpoint(), breakpoint::locations(), mark_breakpoint_modified(), notify_breakpoint_modified(), breakpoint::number, target_can_use_hardware_watchpoint(), target_enable_tracepoint(), target_supports_enable_disable_tracepoint(), breakpoint::type, UGLL_MAY_INSERT, update_global_location_list(), and update_watchpoint().
Referenced by enable_breakpoint(), enable_count_command(), enable_delete_command(), and enable_once_command().
void enable_breakpoints_after_startup | ( | void | ) |
Definition at line 8278 of file breakpoint.c.
References breakpoint_re_set(), current_program_space, and program_space::executing_startup.
|
static |
Definition at line 13832 of file breakpoint.c.
References enable_disable_command().
Referenced by enable_trace_command().
|
static |
Definition at line 13852 of file breakpoint.c.
References disp_disable, enable_breakpoint_disp(), error_no_arg(), get_number(), iterate_over_related_breakpoints(), and map_breakpoint_numbers().
|
static |
Definition at line 13873 of file breakpoint.c.
References disp_del, enable_breakpoint_disp(), iterate_over_related_breakpoints(), and map_breakpoint_numbers().
void enable_disable_bp_location | ( | bp_location * | loc, |
bool | enable ) |
Definition at line 13616 of file breakpoint.c.
References current_trace_status(), enable, find_loc_num_by_location(), is_tracepoint(), loc, mark_breakpoint_location_modified(), notify_breakpoint_modified(), target_disable_tracepoint(), target_supports_enable_disable_tracepoint(), UGLL_DONT_INSERT, and update_global_location_list().
Referenced by bplocpy_set_enabled().
|
static |
Definition at line 13568 of file breakpoint.c.
References current_trace_status(), enable, find_location_by_number(), is_tracepoint(), loc, mark_breakpoint_location_modified(), notify_breakpoint_modified(), target_disable_tracepoint(), target_supports_enable_disable_tracepoint(), UGLL_DONT_INSERT, and update_global_location_list().
Referenced by enable_disable_breakpoint_location_range().
|
static |
Definition at line 13656 of file breakpoint.c.
References enable, and enable_disable_bp_num_loc().
Referenced by enable_disable_command().
|
static |
Definition at line 13700 of file breakpoint.c.
References all_breakpoints(), disable_breakpoint(), enable, enable_breakpoint(), enable_disable_breakpoint_location_range(), extract_arg(), extract_bp_number_and_location(), has_multiple_locations(), map_breakpoint_number_range(), and user_breakpoint_p().
Referenced by disable_command(), and enable_command().
|
static |
Definition at line 13838 of file breakpoint.c.
References disp_disable, enable_breakpoint_disp(), iterate_over_related_breakpoints(), and map_breakpoint_numbers().
void enable_overlay_breakpoints | ( | void | ) |
Definition at line 7840 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().
|
static |
Definition at line 14230 of file breakpoint.c.
References enable_command().
void enable_watchpoints_after_interactive_call_stop | ( | void | ) |
Definition at line 8260 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().
|
static |
Definition at line 1971 of file breakpoint.c.
References value::allocate(), value::contents_for_printing(), value::offset(), value::type(), value::unpack_bitfield(), watchpoint::val_bitpos, and watchpoint::val_bitsize.
Referenced by update_watchpoint(), and watchpoint_check().
|
static |
Definition at line 13456 of file breakpoint.c.
References bp, and get_number_trailer().
Referenced by extract_bp_number_and_location(), and extract_bp_or_bp_range().
|
static |
Definition at line 13534 of file breakpoint.c.
References bp, extract_bp_num(), extract_bp_or_bp_range(), and loc.
Referenced by enable_disable_command().
|
static |
Definition at line 13483 of file breakpoint.c.
References bp, extract_bp_num(), and range.
Referenced by extract_bp_number_and_location().
|
static |
Definition at line 9691 of file breakpoint.c.
References ui_out::end(), 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 8959 of file breakpoint.c.
References block_for_pc(), thread_info::global_num, parse_exp_1(), parse_thread_id(), valid_global_inferior_id(), and valid_task_id().
Referenced by find_condition_and_thread_for_sals().
|
static |
Definition at line 9090 of file breakpoint.c.
References find_condition_and_thread().
Referenced by create_breakpoint(), and code_breakpoint::location_spec_to_sals().
|
static |
Definition at line 13596 of file breakpoint.c.
References loc.
Referenced by bpstat_check_breakpoint_conditions(), and enable_disable_bp_location().
|
static |
Definition at line 13421 of file breakpoint.c.
References get_breakpoint(), loc, breakpoint::locations(), and breakpoint::number.
Referenced by enable_disable_bp_num_loc().
|
static |
Definition at line 11346 of file breakpoint.c.
References bp_location::address, all_bp_locations_at_addr(), condition_updated, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), loc, program_space::num, bp_location::pspace, and target_supports_evaluation_of_breakpoint_conditions().
Referenced by update_global_location_list().
|
static |
Definition at line 14038 of file breakpoint.c.
References bp_fast_tracepoint, code_breakpoint_ops, create_breakpoint(), current_language, get_current_arch(), pending_break_support, and string_to_location_spec().
|
static |
Definition at line 681 of file breakpoint.c.
References breakpoint_condition_evaluation_mode(), and condition_evaluation_host.
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), build_target_condition_list(), force_breakpoint_reinsertion(), and mark_breakpoint_location_modified().
|
static |
Definition at line 4890 of file breakpoint.c.
References thread_info::executing(), inferior_ptid, inferior_thread(), thread_info::state, target_has_execution(), and THREAD_EXITED.
Referenced by bpstat_do_actions().
struct breakpoint * get_breakpoint | ( | int | num | ) |
Definition at line 887 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().
|
static |
Definition at line 3544 of file breakpoint.c.
References breakpoint_objfile_key, and registry< T >::get().
Referenced by create_exception_master_breakpoint_hook(), create_exception_master_breakpoint_probe(), create_longjmp_master_breakpoint_names(), create_longjmp_master_breakpoint_probe(), create_overlay_event_breakpoint(), and create_std_terminate_master_breakpoint().
struct gdbarch * get_sal_arch | ( | struct symtab_and_line | sal | ) |
Definition at line 7653 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 code_breakpoint::add_location(), check_fast_tracepoint_sals(), and code_breakpoint::code_breakpoint().
struct tracepoint * get_tracepoint | ( | int | num | ) |
Definition at line 14342 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 14375 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 14356 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 8413 of file breakpoint.c.
References bp_location::address, mem_region::attrib, automatic_hardware_breakpoints, bp_hardware_breakpoint, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, gdb_printf(), bp_location::loc_type, lookup_mem_region(), MEM_RW, mem_attrib::mode, new_type(), bp_location::owner, and breakpoint::type.
Referenced by update_global_location_list().
|
static |
Definition at line 5948 of file breakpoint.c.
References get_current_frame(), get_frame_arch(), target_terminal::inferior(), infrun_debug_printf, jit_event_handler(), lookup_minimal_symbol_by_pc(), bound_minimal_symbol::objfile, target_terminal::ours_for_output(), and objfile::separate_debug_objfile_backlink.
Referenced by bpstat_run_callbacks().
int hardware_breakpoint_inserted_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc ) |
Definition at line 4482 of file breakpoint.c.
References all_bp_locations_at_addr(), program_space::aspace, 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 4498 of file breakpoint.c.
References all_breakpoints(), program_space::aspace, bp_access_watchpoint, bp_hardware_watchpoint, breakpoint_enabled(), and loc.
Referenced by record_full_exec_insn().
|
static |
Definition at line 900 of file breakpoint.c.
References all_breakpoints(), and breakpoint::has_multiple_locations().
Referenced by enable_disable_command().
|
static |
Definition at line 9505 of file breakpoint.c.
References BP_HARDWAREFLAG, and break_command_1().
Referenced by break_range_command().
|
static |
Definition at line 8183 of file breakpoint.c.
References all_breakpoints(), bp_hardware_breakpoint, breakpoint_enabled(), breakpoint::locations(), breakpoint::resources_needed(), and breakpoint::type.
Referenced by break_range_command(), code_breakpoint::code_breakpoint(), and enable_breakpoint_disp().
|
static |
Definition at line 8203 of file breakpoint.c.
References breakpoint_enabled(), breakpoint::locations(), and breakpoint::resources_needed().
Referenced by hw_watchpoint_used_count_others(), and update_watchpoint().
|
static |
Definition at line 8226 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 13345 of file breakpoint.c.
References error_no_arg(), gdb_printf(), get_number(), longest_to_int(), program_space::num, parse_and_eval(), set_ignore_count(), and value_as_long().
|
static |
Definition at line 7141 of file breakpoint.c.
References breakpoint_1(), and default_collect_info().
|
static |
Definition at line 14209 of file breakpoint.c.
References breakpoint_1(), current_uiout, default_collect_info(), is_tracepoint(), and ui_out::message().
|
static |
Definition at line 7149 of file breakpoint.c.
References breakpoint_1(), current_uiout, is_watchpoint(), and ui_out::message().
|
static |
Definition at line 2827 of file breakpoint.c.
References bp_location::address, all_bp_locations(), program_space::aspace, mem_region::attrib, automatic_hardware_breakpoints, bp_catchpoint, bp_disabled, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_software_breakpoint, breakpoint_debug_printf, breakpoint_kind(), breakpoint_location_address_str(), build_target_command_list(), build_target_condition_list(), disp_del_at_next_stop, breakpoint::disposition, bp_location::duplicate, breakpoint::enable_state, gdb_printf(), bp_location::gdbarch, breakpoint::insert_location(), bp_location::inserted, is_breakpoint(), bp_target_info::kind, bp_target_info::length, bp_location::length, loc, bp_location::loc_type, lookup_mem_region(), MEM_RW, memory_error_message(), mem_attrib::mode, bp_location::needs_update, notify_breakpoint_modified(), breakpoint::number, overlay_debugging, overlay_events_enabled, bp_location::overlay_target_info, overlay_unmapped_address(), ovly_off, bp_location::owner, paddress(), bp_target_info::placed_address, bp_target_info::placed_address_space, bp_location::pspace, bp_target_info::reqstd_address, rethrow_on_target_close_error(), 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, breakpoint::type, watchpoint_locations_match(), and bp_location::watchpoint_type.
Referenced by insert_breakpoint_locations(), and update_inserted_breakpoint_locations().
|
static |
Definition at line 3247 of file breakpoint.c.
References all_bp_locations(), all_breakpoints(), breakpoint_enabled(), string_file::c_str(), disp_del_at_next_stop, gdbarch_has_global_breakpoints(), inferior_ptid, insert_bp_location(), is_hardware_watchpoint(), loc, target_terminal::ours_for_output(), ui_file::printf(), ui_file::puts(), remove_breakpoint(), should_be_inserted(), switch_to_program_space_and_thread(), target_gdbarch(), target_has_execution(), valid_global_inferior_id(), and valid_global_thread_id().
Referenced by update_global_location_list().
void insert_breakpoints | ( | void | ) |
Definition at line 3167 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 13918 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 13954 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().
breakpoint * install_breakpoint | ( | int | internal, |
std::unique_ptr< breakpoint > && | arg, | ||
int | update_gll ) |
Definition at line 8165 of file breakpoint.c.
References add_to_breakpoint_chain(), breakpoint_count, is_tracepoint(), mention(), notify_breakpoint_created(), set_breakpoint_number(), set_tracepoint_count(), UGLL_MAY_INSERT, and update_global_location_list().
Referenced by add_solib_catchpoint(), amd_dbgapi_insert_breakpoint_callback(), 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().
|
static |
Definition at line 13891 of file breakpoint.c.
References all_breakpoints(), bp, bp_enabled, bp_hardware_watchpoint, bp_loc_hardware_watchpoint, loc, watchpoint::val, and watchpoint::val_valid.
bool is_breakpoint | ( | const struct breakpoint * | bpt | ) |
Definition at line 1905 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(), 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 4528 of file breakpoint.c.
References bp_catchpoint, and breakpoint::type.
Referenced by print_one_breakpoint(), print_one_breakpoint_location(), and print_solib_event().
|
static |
Definition at line 1915 of file breakpoint.c.
References bp_access_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, and breakpoint::type.
Referenced by bpstat_stop_status(), watchpoint::breakpoint_hit(), 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 10277 of file breakpoint.c.
Referenced by update_watchpoint(), watchpoint_check(), and watchpoints_triggered().
|
static |
Definition at line 14642 of file breakpoint.c.
References bp_shlib_event, and breakpoint::type.
Referenced by pc_at_non_inline_function().
bool is_tracepoint | ( | const struct breakpoint * | b | ) |
Definition at line 1379 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().
|
static |
Definition at line 1368 of file breakpoint.c.
References bp_fast_tracepoint, bp_static_marker_tracepoint, bp_static_tracepoint, and bp_tracepoint.
Referenced by is_tracepoint().
bool is_watchpoint | ( | const struct breakpoint * | bpt | ) |
Definition at line 1925 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(), 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().
|
static |
Definition at line 12675 of file breakpoint.c.
References breakpoint::related_breakpoint.
Referenced by delete_command(), delete_trace_command(), enable_count_command(), enable_delete_command(), and enable_once_command().
|
static |
Definition at line 12914 of file breakpoint.c.
Referenced by update_breakpoint_locations().
|
static |
Definition at line 7164 of file breakpoint.c.
References breakpoint_1(), and default_collect_info().
|
inlinestatic |
Definition at line 1238 of file breakpoint.c.
References condition_command_option_defs.
Referenced by condition_command(), and condition_completer().
|
static |
Definition at line 10756 of file breakpoint.c.
References watch_option_defs.
Referenced by watch_command_completer(), and watch_maybe_just_location().
|
static |
Definition at line 13371 of file breakpoint.c.
References all_breakpoints_safe(), gdb_printf(), and breakpoint::number.
Referenced by enable_disable_command(), and map_breakpoint_numbers().
|
static |
Definition at line 13402 of file breakpoint.c.
References error_no_arg(), number_or_range_parser::finished(), number_or_range_parser::get_number(), map_breakpoint_number_range(), and program_space::num.
Referenced by commands_command_1(), delete_command(), delete_trace_command(), enable_count_command(), enable_delete_command(), and enable_once_command().
|
static |
Definition at line 936 of file breakpoint.c.
References condition_modified, gdb_evaluates_breakpoint_condition_p(), is_breakpoint(), loc, and target_supports_evaluation_of_breakpoint_conditions().
Referenced by bp_location::bp_location(), disable_breakpoints_in_freed_objfile(), enable_disable_bp_location(), enable_disable_bp_num_loc(), and set_condition_evaluation_mode().
|
static |
Definition at line 915 of file breakpoint.c.
Referenced by disable_breakpoint(), enable_breakpoint_disp(), and set_breakpoint_condition().
void mark_breakpoints_out | ( | void | ) |
Definition at line 4220 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 4940 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().
|
static |
Definition at line 8389 of file breakpoint.c.
References current_uiout, and breakpoint::print_mention().
Referenced by install_breakpoint(), masked_watchpoint::print_it(), and watchpoint::print_it().
|
static |
Definition at line 8329 of file breakpoint.c.
References add_to_breakpoint_chain(), bp_location::address, bp_location::enabled, breakpoint::first_loc(), breakpoint::frame_id, bp_location::gdbarch, breakpoint::gdbarch, bp_location::line_number, new_momentary_breakpoint(), bp_location::probe, bp_location::pspace, breakpoint::pspace, bp_location::requested_address, bp_location::section, set_breakpoint_location_function(), 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 | ( | const address_space * | aspace, |
CORE_ADDR | pc ) |
Definition at line 4416 of file breakpoint.c.
References program_space::aspace, breakpoint_location_address_match(), loc, and moribund_locations.
Referenced by adjust_pc_after_break().
|
static |
Definition at line 3535 of file breakpoint.c.
References msym_not_found.
Referenced by create_exception_master_breakpoint_hook(), create_longjmp_master_breakpoint_names(), create_overlay_event_breakpoint(), and create_std_terminate_master_breakpoint().
|
static |
Definition at line 5737 of file breakpoint.c.
References bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, loc, target_supports_stopped_by_hw_breakpoint(), and target_supports_stopped_by_sw_breakpoint().
Referenced by build_bpstat_chain(), and update_global_location_list().
|
static |
Definition at line 1389 of file breakpoint.c.
References bp_breakpoint, bp_dprintf, bp_fast_tracepoint, bp_hardware_breakpoint, bp_static_marker_tracepoint, bp_static_tracepoint, and bp_tracepoint.
Referenced by create_breakpoint(), and create_breakpoint_sal().
|
static |
Definition at line 8288 of file breakpoint.c.
References bp_exception, and bp_longjmp.
Referenced by momentary_breakpoint_from_master(), and set_momentary_breakpoint().
|
static |
Definition at line 8158 of file breakpoint.c.
References gdb::observers::breakpoint_created, and interps_notify_breakpoint_created().
Referenced by install_breakpoint().
|
static |
Definition at line 12576 of file breakpoint.c.
References gdb::observers::breakpoint_deleted, and interps_notify_breakpoint_deleted().
Referenced by delete_breakpoint().
void notify_breakpoint_modified | ( | breakpoint * | b | ) |
Definition at line 1083 of file breakpoint.c.
References gdb::observers::breakpoint_modified, and interps_notify_breakpoint_modified().
Referenced by bpstat_check_breakpoint_conditions(), bpstat_stop_status(), breakpoint_set_commands(), breakpoint_set_inferior(), breakpoint_set_silent(), breakpoint_set_task(), breakpoint_set_thread(), commands_command_1(), disable_breakpoint(), disable_breakpoints_in_freed_objfile(), disable_breakpoints_in_unloaded_shlib(), download_tracepoint_locations(), enable_breakpoint_disp(), enable_disable_bp_location(), enable_disable_bp_num_loc(), insert_bp_location(), merge_uploaded_tracepoints(), mi_cmd_break_passcount(), set_breakpoint_condition(), set_ignore_count(), start_tracing(), trace_pass_set_count(), and update_breakpoint_locations().
|
static |
Definition at line 1714 of file breakpoint.c.
References program_space::aspace, bp, breakpoint_address_match(), current_program_space, and gdbarch_breakpoint_from_pc().
Referenced by breakpoint_xfer_memory().
|
static |
Definition at line 6427 of file breakpoint.c.
References field_name(), ui_out::field_string(), ui_out::is_mi_like_p(), and ui_out::text().
Referenced by print_one_breakpoint_location().
|
static |
Definition at line 8832 of file breakpoint.c.
References as_linespec_location_spec(), linespec_sals::canonical, decode_line_full(), DECODE_LINE_FUNFIRSTLINE, 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(), last_displayed_sal_is_valid(), symtab_and_line::line, LINESPEC_LOCATION_SPEC, symtab_and_line::pc, linespec_sals::sals, linespec_location_spec::spec_string, symtab_and_line::symtab, and location_spec::type().
Referenced by break_range_command(), and create_sals_from_location_spec_default().
|
static |
Definition at line 2593 of file breakpoint.c.
References block_for_pc(), gen_printf(), get_current_arch(), parse_exp_1(), and PARSER_COMMA_TERMINATES.
Referenced by build_target_command_list().
|
static |
Definition at line 2461 of file breakpoint.c.
References gen_eval_for_expr().
Referenced by build_target_condition_list().
int pc_at_non_inline_function | ( | const address_space * | aspace, |
CORE_ADDR | pc, | ||
const target_waitstatus & | ws ) |
Definition at line 14653 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 6951 of file breakpoint.c.
References breakpoint::has_locations().
Referenced by bppy_get_pending().
|
static |
Definition at line 4973 of file breakpoint.c.
References bpstat::breakpoint_at, breakpoint::print_it(), bpstat::print_it, print_it_done, print_it_noop, print_it_normal, PRINT_SRC_AND_LOC, and PRINT_UNKNOWN.
Referenced by bpstat_print().
void print_breakpoint | ( | breakpoint * | b | ) |
Definition at line 6933 of file breakpoint.c.
References print_one_breakpoint().
Referenced by breakpoint_notify(), and mi_print_breakpoint_for_event().
|
static |
Definition at line 6296 of file breakpoint.c.
References bp_condition_evaluator(), bp_dprintf, bp_location_condition_evaluator(), breakpoint_condition_evaluation_mode(), condition_evaluation_both, condition_evaluation_target, current_uiout, demangle, breakpoint::display_canonical, breakpoint::extra_string, ui_out::field_signed(), ui_out::field_stream(), ui_out::field_string(), file_name_style, function_name_style, is_breakpoint(), ui_out::is_mi_like_p(), loc, breakpoint::locspec, print_address_symbolic(), general_symbol_info::print_name(), set_current_program_space(), cli_style_option::style(), symbol::symbol(), symtab_to_filename_for_display(), symtab_to_fullname(), ui_out::text(), breakpoint::type, ui_out::wrap_hint(), and wrap_indent_at_field().
Referenced by ranged_breakpoint::print_one(), print_one_breakpoint_location(), and bp_location::to_string().
Definition at line 4687 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().
|
static |
Definition at line 6850 of file breakpoint.c.
References current_uiout, bp_location::disabled_by_cond, bp_location::enabled, breakpoint::first_loc(), fix_multi_location_breakpoint_output, fix_multi_location_breakpoint_output_globally, breakpoint::has_locations(), breakpoint::has_multiple_locations(), is_ada_exception_catchpoint(), is_catchpoint(), is_exception_catchpoint(), is_hardware_watchpoint(), ui_out::is_mi_like_p(), loc, breakpoint::locations(), print_one_breakpoint_location(), and ui_out::test_flags().
Referenced by breakpoint_1(), and print_breakpoint().
|
static |
Definition at line 6474 of file breakpoint.c.
References all_inferiors(), annotate_field(), annotate_record(), bp_catchpoint, bp_condition_evaluator(), bpdisp_text(), bptype_string(), breakpoint_condition_evaluation_mode(), breakpoint_enabled(), breakpoint::commands, breakpoint::cond_string, condition_evaluation_target, current_uiout, bp_location::disabled_by_cond, breakpoint::disposition, breakpoint::enable_count, breakpoint::enable_state, bp_location::enabled, watchpoint::exp_string, ui_out::field_core_addr(), ui_out::field_fmt(), ui_out::field_signed(), ui_out::field_skip(), ui_out::field_string(), find_thread_global_id(), breakpoint::first_loc(), fix_breakpoint_script_output, fix_breakpoint_script_output_globally, breakpoint::frame_id, frame_id_p(), breakpoint::gdbarch, gdbarch_has_global_breakpoints(), get_user_print_options(), breakpoint::has_locations(), breakpoint::has_multiple_locations(), breakpoint::hit_count, breakpoint::ignore_count, breakpoint::inferior, is_ada_exception_catchpoint(), is_breakpoint(), is_catchpoint(), is_exception_catchpoint(), ui_out::is_mi_like_p(), is_tracepoint(), is_watchpoint(), loc, breakpoint::locspec, ui_out::message(), metadata_style, breakpoint::number, number_of_inferiors(), output_thread_groups(), tracepoint::pass_count, print_breakpoint_location(), print_command_lines(), breakpoint::print_one(), breakpoint::print_one_detail(), print_thread_id(), program_spaces, signed_field(), frame_id::stack_addr, string_field(), cli_style_option::style(), target_gdbarch(), breakpoint::task, ui_out::test_flags(), ui_out::text(), breakpoint::thread, tracepoint::traceframe_usage, and breakpoint::type.
Referenced by print_one_breakpoint().
void print_solib_event | ( | bool | is_catchpoint | ) |
Definition at line 5011 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().
|
static |
Definition at line 14100 of file breakpoint.c.
References uploaded_tp::cmd_strings, next_cmd, and this_utp.
Referenced by create_tracepoint_from_upload().
|
static |
Definition at line 230 of file breakpoint.c.
References DETACH_BREAKPOINT, and REMOVE_BREAKPOINT.
Referenced by remove_breakpoint_1().
|
static |
Definition at line 4201 of file breakpoint.c.
References bp_none, bp_location::owner, bp_location::pspace, REMOVE_BREAKPOINT, remove_breakpoint_1(), switch_to_program_space_and_thread(), and breakpoint::type.
Referenced by insert_breakpoint_locations(), remove_breakpoints(), remove_breakpoints_inf(), and update_global_location_list().
|
static |
Definition at line 4057 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_debug_printf, breakpoint_enabled(), breakpoint_location_address_str(), DETACH_BREAKPOINT, bp_location::duplicate, bp_location::gdbarch, bp_location::inserted, bp_location::loc_type, memory_validate_breakpoint(), breakpoint::number, overlay_debugging, overlay_events_enabled, bp_location::overlay_target_info, ovly_off, bp_location::owner, bp_location::pspace, remove_bp_reason_str(), REMOVE_BREAKPOINT, breakpoint::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(), and breakpoint::type.
Referenced by detach_breakpoints(), and remove_breakpoint().
int remove_breakpoints | ( | void | ) |
Definition at line 3352 of file breakpoint.c.
References all_bp_locations(), is_tracepoint(), and remove_breakpoint().
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 3409 of file breakpoint.c.
References all_bp_locations(), breakpoint_debug_printf, and remove_breakpoint().
Referenced by fbsd_nat_target::detach(), linux_nat_target::detach(), amd_dbgapi_target::detach(), follow_fork_inferior(), and remote_target::remote_detach_1().
|
static |
Definition at line 3387 of file breakpoint.c.
References all_breakpoints_safe(), delete_breakpoint(), disp_del, disp_del_at_next_stop, breakpoint::disposition, gdb_printf(), breakpoint::inferior, breakpoint::number, and user_breakpoint_p().
void remove_jit_event_breakpoints | ( | void | ) |
Definition at line 7919 of file breakpoint.c.
References all_breakpoints_safe(), bp_jit_event, current_program_space, delete_breakpoint(), breakpoint::first_loc(), bp_location::pspace, and breakpoint::type.
void remove_solib_event_breakpoints | ( | void | ) |
Definition at line 7928 of file breakpoint.c.
References all_breakpoints_safe(), bp_shlib_event, current_program_space, delete_breakpoint(), breakpoint::first_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 7939 of file breakpoint.c.
References all_breakpoints_safe(), bp_shlib_event, current_program_space, disp_del_at_next_stop, breakpoint::disposition, breakpoint::first_loc(), bp_location::pspace, and breakpoint::type.
|
static |
Definition at line 3367 of file breakpoint.c.
References all_breakpoints_safe(), delete_breakpoint(), gdb_printf(), thread_info::global_num, breakpoint::number, print_thread_id(), breakpoint::thread, and user_breakpoint_p().
void resolve_sal_pc | ( | struct symtab_and_line * | sal | ) |
Definition at line 9443 of file breakpoint.c.
References blockvector_for_pc_sect(), symtab::compunit(), symtab_and_line::explicit_line, find_line_pc(), symtab_and_line::line, block::linkage_function(), lookup_minimal_symbol_by_pc(), bound_minimal_symbol::minsym, bound_minimal_symbol::obj_section(), general_symbol_info::obj_section(), compunit_symtab::objfile(), symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, skip_prologue_sal(), switch_to_program_space_and_thread(), symtab_and_line::symtab, and symtab_to_filename_for_display().
Referenced by breakpoint_sals_to_pc(), info_scope_command(), jump_command(), code_breakpoint::location_spec_to_sals(), and until_break_command().
|
static |
Definition at line 2801 of file breakpoint.c.
Referenced by insert_bp_location().
|
static |
Definition at line 10805 of file breakpoint.c.
References watch_maybe_just_location().
void rwatch_command_wrapper | ( | const char * | arg, |
int | from_tty, | ||
bool | internal ) |
Definition at line 10799 of file breakpoint.c.
References watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
|
static |
Definition at line 14430 of file breakpoint.c.
References all_breakpoints(), bp_disabled, bp_dprintf, current_uiout, default_collect, gdb_printf(), is_tracepoint(), is_watchpoint(), loc, stdio_file::open(), print_command_lines(), ui_file::printf(), stdio_file::puts(), save_trace_state_variables(), and user_breakpoint_p().
Referenced by save_breakpoints_command(), and save_tracepoints_command().
|
static |
Definition at line 14540 of file breakpoint.c.
References save_breakpoints().
|
static |
Definition at line 14548 of file breakpoint.c.
References is_tracepoint(), and save_breakpoints().
void set_breakpoint_condition | ( | int | bpnum, |
const char * | exp, | ||
int | from_tty, | ||
bool | force ) |
Definition at line 1187 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 1090 of file breakpoint.c.
References innermost_block_tracker::block(), block_for_pc(), watchpoint::cond_exp, watchpoint::cond_exp_valid_block, breakpoint::cond_string, breakpoint::condition_not_parsed, gdb_printf(), is_watchpoint(), breakpoint::last_loc(), loc, breakpoint::locations(), mark_breakpoint_modified(), notify_breakpoint_modified(), breakpoint::number, parse_exp_1(), and set_breakpoint_location_condition().
Referenced by bppy_set_condition(), condition_command(), gdbscm_set_breakpoint_condition_x(), mi_cmd_break_condition(), and set_breakpoint_condition().
|
static |
Definition at line 846 of file breakpoint.c.
References breakpoint_count, lookup_internalvar(), prev_breakpoint_count, and set_internalvar_integer().
Referenced by set_breakpoint_number().
|
static |
Definition at line 1036 of file breakpoint.c.
References block_for_pc(), breakpoint::cond_string, gdb_printf(), loc, and parse_exp_1().
Referenced by code_breakpoint::code_breakpoint(), and set_breakpoint_condition().
|
static |
Definition at line 7613 of file breakpoint.c.
References bp_breakpoint, bp_gnu_ifunc_resolver, bp_hardware_breakpoint, find_pc_partial_function(), breakpoint::has_single_location(), is_tracepoint(), loc, mst_data_gnu_ifunc, mst_text_gnu_ifunc, breakpoint::related_breakpoint, and breakpoint::type.
Referenced by code_breakpoint::add_location(), and momentary_breakpoint_from_master().
|
static |
Definition at line 3438 of file breakpoint.c.
References breakpoint_count, internal_breakpoint_number, breakpoint::number, and set_breakpoint_count().
Referenced by install_breakpoint().
|
static |
Definition at line 957 of file breakpoint.c.
References all_bp_locations(), condition_evaluation_mode, condition_evaluation_mode_1, condition_evaluation_target, is_breakpoint(), loc, mark_breakpoint_location_modified(), target_supports_evaluation_of_breakpoint_conditions(), translate_condition_evaluation_mode(), UGLL_MAY_INSERT, and update_global_location_list().
|
static |
Definition at line 4756 of file breakpoint.c.
References lookup_internalvar(), and set_internalvar_integer().
Referenced by bpstat_do_actions_1().
void set_ignore_count | ( | int | bptnum, |
int | count, | ||
int | from_tty ) |
Definition at line 13304 of file breakpoint.c.
References all_breakpoints(), gdb_printf(), breakpoint::ignore_count, is_tracepoint(), notify_breakpoint_modified(), 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 7668 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 7725 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 * | gdbarch, |
struct symtab_and_line | sal, | ||
struct frame_id frame_id | , | ||
enum bptype | type ) |
Definition at line 8304 of file breakpoint.c.
References add_to_breakpoint_chain(), bp, frame_id_artificial_p(), inferior_thread(), new_momentary_breakpoint(), symtab_and_line::pspace, 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().
breakpoint_up set_momentary_breakpoint_at_pc | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | pc, | ||
enum bptype | type ) |
Definition at line 8372 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 7866 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().
|
static |
Definition at line 14010 of file breakpoint.c.
References lookup_internalvar(), set_internalvar_integer(), and tracepoint_count.
Referenced by install_breakpoint().
|
static |
Definition at line 2380 of file breakpoint.c.
References bp_location::address, program_space::aspace, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_software_breakpoint, bp_single_step, breakpoint_enabled(), program_space::breakpoints_not_allowed, bp_location::disabled_by_cond, disp_del_at_next_stop, breakpoint::disposition, bp_location::duplicate, bp_location::enabled, program_space::executing_startup, bp_location::gdbarch, infrun_debug_printf, 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(), breakpoint::thread, thread_is_stepping_over_breakpoint(), breakpoint::type, 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 572 of file breakpoint.c.
References gdb_printf().
|
static |
Definition at line 553 of file breakpoint.c.
References gdb_printf().
|
static |
Definition at line 521 of file breakpoint.c.
References gdb_printf().
|
static |
Definition at line 1016 of file breakpoint.c.
References breakpoint_condition_evaluation_mode(), condition_evaluation_auto, condition_evaluation_mode, and gdb_printf().
|
static |
Definition at line 589 of file breakpoint.c.
References gdb_printf().
|
static |
Definition at line 537 of file breakpoint.c.
References gdb_printf().
int single_step_breakpoint_inserted_here_p | ( | const address_space * | aspace, |
CORE_ADDR | pc ) |
Definition at line 13994 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 4464 of file breakpoint.c.
References all_bp_locations_at_addr(), program_space::aspace, 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 1499 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().
|
static |
Definition at line 14058 of file breakpoint.c.
References bp_static_marker_tracepoint, bp_static_tracepoint, code_breakpoint_ops, create_breakpoint(), current_language, FULL, get_current_arch(), new_linespec_location_spec(), pending_break_support, strace_marker_breakpoint_ops, string_to_location_spec(), and type.
|
static |
Definition at line 12493 of file breakpoint.c.
References linespec_sals::canonical, flags, install_breakpoint(), and linespec_sals::sals.
|
static |
Definition at line 12474 of file breakpoint.c.
References as_linespec_location_spec(), linespec_sals::canonical, decode_static_tracepoint_spec(), FULL, new_linespec_location_spec(), linespec_sals::sals, and linespec_location_spec::spec_string.
|
static |
Definition at line 12568 of file breakpoint.c.
References bp_static_marker_tracepoint, and breakpoint::type.
Referenced by code_breakpoint::code_breakpoint().
|
static |
Definition at line 11317 of file breakpoint.c.
References bp_location::duplicate, 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 | ( | const char * | arg, |
int | from_tty ) |
Definition at line 9499 of file breakpoint.c.
References BP_TEMPFLAG, and break_command_1().
Referenced by run_command_1().
|
static |
Definition at line 9511 of file breakpoint.c.
References BP_HARDWAREFLAG, BP_TEMPFLAG, and break_command_1().
|
static |
Definition at line 14017 of file breakpoint.c.
References bp_tracepoint, breakpoint_ops_for_location_spec(), create_breakpoint(), current_language, get_current_arch(), pending_break_support, and string_to_location_spec().
|
static |
Definition at line 14300 of file breakpoint.c.
References all_tracepoints(), number_or_range_parser::finished(), get_tracepoint_by_number(), and trace_pass_set_count().
Referenced by create_tracepoint_from_upload().
|
static |
Definition at line 14284 of file breakpoint.c.
References gdb_printf(), notify_breakpoint_modified(), breakpoint::number, and tracepoint::pass_count.
Referenced by trace_pass_command().
|
static |
Definition at line 7368 of file breakpoint.c.
References bp_location::address, is_tracepoint(), and bp_location::owner.
Referenced by breakpoint_locations_match().
|
static |
Definition at line 12405 of file breakpoint.c.
References bkpt_probe_create_sals_from_location_spec(), and linespec_sals::canonical.
|
static |
Definition at line 656 of file breakpoint.c.
References condition_evaluation_auto, 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 207 of file breakpoint.c.
References UGLL_DONT_INSERT, UGLL_INSERT, and UGLL_MAY_INSERT.
Referenced by update_global_location_list().
|
static |
Definition at line 2447 of file breakpoint.c.
References bp_location::duplicate, and should_be_inserted().
Referenced by update_global_location_list().
void until_break_command | ( | const char * | arg, |
int | from_tty, | ||
int | anywhere ) |
Definition at line 10887 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 12969 of file breakpoint.c.
References code_breakpoint::add_location(), all_locations_are_pending(), ambiguous_names_p(), block_for_pc(), bp_disabled, breakpoint_locations_match(), bp_location::cond, breakpoint::cond_string, bp_location::disabled_by_cond, breakpoint::enable_state, find_breakpoint_range_end(), gdb_printf(), gdb_stderr, bp_location::length, breakpoint::locations(), locations_are_equal(), notify_breakpoint_modified(), breakpoint::number, parse_exp_1(), breakpoint::steal_locations(), and switch_to_program_space_and_thread().
Referenced by elf_gnu_ifunc_resolver_return_stop(), ada_catchpoint::re_set(), exception_catchpoint::re_set(), and code_breakpoint::re_set_default().
void update_breakpoints_after_exec | ( | void | ) |
Definition at line 3898 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().
|
static |
Definition at line 8537 of file breakpoint.c.
References breakpoint_set_commands(), dprintf_channel, dprintf_function, dprintf_style, dprintf_style_agent, dprintf_style_call, dprintf_style_gdb, breakpoint::extra_string, simple_control, and target_can_run_breakpoint_commands().
Referenced by code_breakpoint::code_breakpoint(), dprintf_breakpoint::re_set(), and update_dprintf_commands().
|
static |
Definition at line 8599 of file breakpoint.c.
References all_breakpoints(), bp_dprintf, breakpoint::type, and update_dprintf_command_list().
|
static |
Definition at line 11394 of file breakpoint.c.
References bp_location::address, all_bp_locations(), all_breakpoints(), all_inferiors(), bl_address_is_meaningful(), bp_access_watchpoint, bp_hardware_watchpoint, bp_location_is_less_than(), bp_locations, bp_locations_target_extensions_update(), bp_read_watchpoint, breakpoint_debug_printf, breakpoint_locations_match(), breakpoints_should_be_inserted_now(), bp_location::condition_changed, condition_modified, condition_unchanged, decref_bp_location(), download_tracepoint_locations(), bp_location::duplicate, force_breakpoint_reinsertion(), handle_automatic_hardware_breakpoints(), insert_breakpoint_locations(), is_breakpoint(), is_hardware_watchpoint(), is_tracepoint(), loc, breakpoint::locations(), moribund_locations, need_moribund_for_location_type(), overlay_debugging, bp_location::owner, paddress(), remove_breakpoint(), should_be_inserted(), swap_insertion(), target_is_non_stop_p(), thread_count(), breakpoint::type, UGLL_DONT_INSERT, UGLL_INSERT, ugll_insert_mode_text(), unduplicated_should_be_inserted(), update_inserted_breakpoint_locations(), and bp_location::watchpoint_type.
Referenced by bpstat_stop_status(), breakpoint_program_space_exit(), breakpoint_re_set(), create_breakpoint(), delete_breakpoint(), disable_breakpoint(), disable_breakpoints_before_startup(), disable_overlay_breakpoints(), disable_watchpoints_before_interactive_call_start(), enable_breakpoint_disp(), enable_disable_bp_location(), enable_disable_bp_num_loc(), enable_overlay_breakpoints(), enable_watchpoints_after_interactive_call_stop(), insert_breakpoints(), insert_single_step_breakpoint(), install_breakpoint(), set_breakpoint_condition(), set_condition_evaluation_mode(), and update_global_location_list_nothrow().
|
static |
Definition at line 11759 of file breakpoint.c.
References update_global_location_list().
Referenced by create_solib_event_breakpoint_1(), create_thread_event_breakpoint(), momentary_breakpoint_from_master(), and set_momentary_breakpoint().
|
static |
Definition at line 3192 of file breakpoint.c.
References all_bp_locations(), string_file::c_str(), gdbarch_has_global_breakpoints(), inferior_ptid, insert_bp_location(), is_breakpoint(), target_terminal::ours_for_output(), ui_file::puts(), switch_to_program_space_and_thread(), target_gdbarch(), and target_has_execution().
Referenced by update_global_location_list().
|
static |
Definition at line 12821 of file breakpoint.c.
References static_tracepoint_marker::address, current_uiout, ui_out::field_signed(), ui_out::field_string(), file_name_style, find_line_pc(), find_pc_line(), find_pc_sect_function(), function_name_style, ui_out::is_mi_like_p(), symtab_and_line::line, LINE_OFFSET_NONE, symtab_and_line::pc, general_symbol_info::print_name(), static_tracepoint_marker::str_id, cli_style_option::style(), symtab_and_line::symtab, symtab_to_filename_for_display(), symtab_to_fullname(), target_static_tracepoint_marker_at(), target_static_tracepoint_markers_by_strid(), and ui_out::text().
Referenced by code_breakpoint::location_spec_to_sals().
|
static |
Definition at line 2057 of file breakpoint.c.
References add_dummy_location(), breakpoint::add_location(), breakpoint::allocate_location(), bp, bp_access_watchpoint, bp_hardware_watchpoint, bp_loc_hardware_watchpoint, bp_loc_software_watchpoint, bp_read_watchpoint, bp_watchpoint, can_use_hardware_watchpoint(), can_use_hw_watchpoints, check_typedef(), breakpoint::clear_locations(), type::code(), watchpoint::cond_exp, watchpoint::cond_exp_valid_block, breakpoint::cond_string, disp_del_at_next_stop, breakpoint::disposition, 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(), gdb_printf(), bp_location::gdbarch, gdbarch_remove_non_address_bits(), gdbarch_stack_frame_destroyed_p(), get_current_frame(), get_frame_arch(), get_frame_pc(), get_frame_program_space(), get_selected_frame(), breakpoint::has_locations(), hw_watchpoint_use_count(), hw_watchpoint_used_count_others(), is_masked_watchpoint(), loc, breakpoint::locations(), value::lval(), lval_memory, breakpoint::number, parse_exp_1(), release_value(), select_frame(), target_can_use_hardware_watchpoint(), target_exact_watchpoints, target_has_execution(), breakpoint::type, type, watchpoint::val, watchpoint::val_bitpos, watchpoint::val_bitsize, watchpoint::val_valid, watchpoint_del_at_next_stop(), watchpoint::watchpoint_frame, watchpoint_in_thread_scope(), and watchpoint::works_in_software_mode().
Referenced by bpstat_stop_status(), enable_breakpoint_disp(), insert_breakpoints(), watchpoint::re_set(), and watch_command_1().
int user_breakpoint_p | ( | struct breakpoint * | b | ) |
Definition at line 6943 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_inferior_breakpoints(), remove_threaded_breakpoints(), save_breakpoints(), should_be_inserted(), and stopped_by_user_bp_inline_frame().
|
static |
Definition at line 1431 of file breakpoint.c.
References command_line::body_list_0, command_line::body_list_1, bp_fast_tracepoint, bp_static_marker_tracepoint, bp_static_tracepoint, c2, check_no_tracepoint_commands(), command_line::control_type, 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 commands_command_1().
|
static |
Definition at line 10793 of file breakpoint.c.
References watch_maybe_just_location().
|
static |
Definition at line 10286 of file breakpoint.c.
References adjust_breakpoint_address(), value::bitpos(), value::bitsize(), innermost_block_tracker::block(), block_innermost_frame(), bp_access_watchpoint, bp_enabled, bp_hardware_watchpoint, bp_read_watchpoint, bp_watchpoint_scope, create_internal_breakpoint(), current_language, current_program_space, disp_del, disp_donttouch, breakpoint::disposition, breakpoint::enable_state, fetch_subexp_value(), breakpoint::first_loc(), breakpoint::frame_id, frame_id_p(), frame_unwind_caller_arch(), frame_unwind_caller_id(), frame_unwind_caller_pc(), bp_location::gdbarch, get_frame_id(), thread_info::global_num, inferior_ptid, install_breakpoint(), loc, null_frame_id, parse_exp_1(), parse_thread_id(), parse_to_comma_and_eval(), inferior::pspace, breakpoint::related_breakpoint, release_value(), target_masked_watch_num_registers(), breakpoint::type, update_watchpoint(), valid_task_id(), value_addr(), value_as_address(), value_free_to_mark(), value_mark(), language_defn::watch_location_expression(), and watchpoint_exp_is_const().
Referenced by awatch_command_wrapper(), rwatch_command_wrapper(), watch_command_wrapper(), and watch_maybe_just_location().
|
static |
Definition at line 10779 of file breakpoint.c.
References advance_to_expression_complete_word_point(), gdb::option::complete_options(), expression_completer(), make_watch_options_def_group(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND.
void watch_command_wrapper | ( | const char * | arg, |
int | from_tty, | ||
bool | internal ) |
Definition at line 10717 of file breakpoint.c.
References watch_command_1().
Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().
|
static |
Definition at line 10765 of file breakpoint.c.
References make_watch_options_def_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, and watch_command_1().
Referenced by awatch_command(), rwatch_command(), and watch_command().
|
static |
Definition at line 5246 of file breakpoint.c.
References async_reason_lookup(), bpstat::breakpoint_at, breakpoint::commands, block::contains(), current_uiout, EXEC_ASYNC_WATCHPOINT_SCOPE, watchpoint::exp, watchpoint::exp_valid_block, extract_bitfield_from_watchpoint_value(), fetch_subexp_value(), ui_out::field_string(), frame_find_by_id(), gdbarch_stack_frame_destroyed_p(), get_current_frame(), get_frame_arch(), get_frame_function(), get_frame_pc(), is_masked_watchpoint(), ui_out::is_mi_like_p(), ui_out::message(), breakpoint::number, bpstat::old_val, release_value(), select_frame(), signed_field(), SWITCH_THRU_ALL_UIS, watchpoint::val, watchpoint::val_bitsize, watchpoint::val_valid, symbol::value_block(), 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 1953 of file breakpoint.c.
References bp_watchpoint_scope, disable_breakpoint(), disp_del_at_next_stop, breakpoint::disposition, breakpoint::related_breakpoint, and breakpoint::type.
Referenced by bpstat_check_watchpoint(), delete_breakpoint(), update_watchpoint(), and watchpoint_check().
|
static |
Definition at line 9836 of file breakpoint.c.
References expression::op.
Referenced by watch_command_1().
|
static |
Definition at line 1941 of file breakpoint.c.
References current_program_space, inferior_ptid, inferior_thread(), breakpoint::pspace, and watchpoint::watchpoint_thread.
Referenced by update_watchpoint(), and watchpoint_check().
|
static |
Definition at line 7256 of file breakpoint.c.
References bp_location::address, program_space::aspace, watchpoint::cond_exp, 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 4924 of file breakpoint.c.
References fprintf_styled(), get_user_print_options(), metadata_style, cli_style_option::style(), and value_print().
Referenced by watchpoint::print_it().
int watchpoints_triggered | ( | const target_waitstatus & | ws | ) |
Definition at line 5151 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, watch_triggered_no, watch_triggered_unknown, watch_triggered_yes, and watchpoint::watchpoint_triggered.
Referenced by bpstat_stop_status_nowatch(), and handle_signal_stop().
|
static |
Definition at line 6217 of file breakpoint.c.
References ui_out::query_table_field().
Referenced by print_breakpoint_location().
|
static |
Definition at line 569 of file breakpoint.c.
Referenced by breakpoints_should_be_inserted_now().
|
static |
Definition at line 551 of file breakpoint.c.
Referenced by handle_automatic_hardware_breakpoints(), and insert_bp_location().
|
static |
Definition at line 297 of file breakpoint.c.
Referenced by breakpoint_ops_for_location_spec_type().
|
static |
Definition at line 728 of file breakpoint.c.
Referenced by all_bp_locations(), bp_locations_at_addr_range::bp_locations_at_addr_range(), breakpoint_xfer_memory(), and update_global_location_list().
|
static |
Definition at line 803 of file breakpoint.c.
Referenced by bp_locations_target_extensions_update(), and breakpoint_xfer_memory().
|
static |
Definition at line 811 of file breakpoint.c.
Referenced by bp_locations_target_extensions_update(), and breakpoint_xfer_memory().
|
static |
Definition at line 699 of file breakpoint.c.
Referenced by add_to_breakpoint_chain(), all_breakpoints(), all_tracepoints(), and delete_breakpoint().
|
static |
Definition at line 820 of file breakpoint.c.
Referenced by commands_command_1(), create_breakpoint(), install_breakpoint(), scoped_rbreak_breakpoints::scoped_rbreak_breakpoints(), set_breakpoint_count(), and set_breakpoint_number().
|
static |
Definition at line 3527 of file breakpoint.c.
Referenced by get_breakpoint_objfile_data().
|
static |
Definition at line 502 of file breakpoint.c.
Referenced by bpstat_do_actions_1(), and breakpoint_about_to_proceed().
|
static |
Definition at line 832 of file breakpoint.c.
|
static |
Definition at line 833 of file breakpoint.c.
|
static |
Definition at line 518 of file breakpoint.c.
Referenced by can_use_hardware_watchpoint(), and update_watchpoint().
|
static |
Definition at line 14611 of file breakpoint.c.
Referenced by add_catch_command().
const struct breakpoint_ops code_breakpoint_ops |
Definition at line 290 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().
cmd_list_element* commands_cmd_element = nullptr |
Definition at line 14688 of file breakpoint.c.
Referenced by process_next_line().
|
static |
Definition at line 1224 of file breakpoint.c.
Referenced by make_condition_command_options_def_group().
|
static |
Definition at line 633 of file breakpoint.c.
Referenced by show_condition_evaluation_mode(), and translate_condition_evaluation_mode().
|
static |
Definition at line 630 of file breakpoint.c.
Referenced by bp_condition_evaluator(), and print_breakpoint_location().
|
static |
Definition at line 636 of file breakpoint.c.
|
static |
Definition at line 634 of file breakpoint.c.
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), gdb_evaluates_breakpoint_condition_p(), and translate_condition_evaluation_mode().
|
static |
Definition at line 648 of file breakpoint.c.
Referenced by breakpoint_condition_evaluation_mode(), set_condition_evaluation_mode(), and show_condition_evaluation_mode().
|
static |
Definition at line 644 of file breakpoint.c.
Referenced by set_condition_evaluation_mode().
|
static |
Definition at line 635 of file breakpoint.c.
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), print_breakpoint_location(), print_one_breakpoint_location(), set_condition_evaluation_mode(), and translate_condition_evaluation_mode().
|
static |
Definition at line 580 of file breakpoint.c.
|
static |
Definition at line 491 of file breakpoint.c.
Referenced by build_target_command_list().
|
static |
Definition at line 487 of file breakpoint.c.
Referenced by update_dprintf_command_list().
|
static |
Definition at line 477 of file breakpoint.c.
Referenced by update_dprintf_command_list().
|
static |
Definition at line 470 of file breakpoint.c.
Referenced by dprintf_breakpoint::breakpoint_hit(), build_target_command_list(), and update_dprintf_command_list().
|
static |
Definition at line 463 of file breakpoint.c.
Referenced by dprintf_breakpoint::breakpoint_hit(), build_target_command_list(), and update_dprintf_command_list().
|
static |
Definition at line 462 of file breakpoint.c.
Referenced by update_dprintf_command_list().
|
static |
Definition at line 464 of file breakpoint.c.
|
static |
Definition at line 461 of file breakpoint.c.
Referenced by update_dprintf_command_list().
|
static |
Definition at line 14684 of file breakpoint.c.
|
static |
Definition at line 689 of file breakpoint.c.
Referenced by bpstat_do_actions_1().
bool fix_breakpoint_script_output_globally = false |
Definition at line 6464 of file breakpoint.c.
Referenced by mi_cmd_fix_breakpoint_script_output(), and print_one_breakpoint_location().
bool fix_multi_location_breakpoint_output_globally = false |
Definition at line 6847 of file breakpoint.c.
Referenced by mi_cmd_fix_multi_location_breakpoint_output(), and print_one_breakpoint().
|
static |
Definition at line 3429 of file breakpoint.c.
Referenced by create_internal_breakpoint(), and set_breakpoint_number().
|
static |
Definition at line 3490 of file breakpoint.c.
Referenced by create_longjmp_master_breakpoint_names().
|
static |
Definition at line 816 of file breakpoint.c.
Referenced by breakpoint_init_inferior(), breakpoint_retire_moribund(), build_bpstat_chain(), moribund_breakpoint_here_p(), and update_global_location_list().
|
static |
Definition at line 3530 of file breakpoint.c.
Referenced by create_exception_master_breakpoint_hook(), create_longjmp_master_breakpoint_names(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), and msym_not_found_p().
|
static |
Definition at line 14097 of file breakpoint.c.
Referenced by create_tracepoint_from_upload(), and read_uploaded_action().
|
static |
Definition at line 692 of file breakpoint.c.
Referenced by create_overlay_event_breakpoint(), disable_overlay_breakpoints(), enable_overlay_breakpoints(), insert_bp_location(), and remove_breakpoint_1().
|
static |
Definition at line 535 of file breakpoint.c.
Referenced by break_command_1(), create_breakpoint(), create_tracepoint_from_upload(), dprintf_command(), ftrace_command(), strace_command(), and trace_command().
|
static |
Definition at line 826 of file breakpoint.c.
Referenced by commands_command_1(), create_breakpoint(), set_breakpoint_count(), and scoped_rbreak_breakpoints::~scoped_rbreak_breakpoints().
|
static |
Definition at line 855 of file breakpoint.c.
Referenced by scoped_rbreak_breakpoints::scoped_rbreak_breakpoints(), and scoped_rbreak_breakpoints::~scoped_rbreak_breakpoints().
struct cmd_list_element* save_cmdlist |
Definition at line 834 of file breakpoint.c.
|
static |
Definition at line 12561 of file breakpoint.c.
Referenced by strace_command().
bool target_exact_watchpoints = false |
Definition at line 695 of file breakpoint.c.
Referenced by _initialize_rs6000_tdep(), can_use_hardware_watchpoint(), and update_watchpoint().
|
static |
Definition at line 14614 of file breakpoint.c.
Referenced by add_catch_command().
|
static |
Definition at line 14096 of file breakpoint.c.
Referenced by create_tracepoint_from_upload(), and read_uploaded_action().
|
static |
Definition at line 830 of file breakpoint.c.
Referenced by create_tracepoint_from_upload(), get_tracepoint_by_number(), and set_tracepoint_count().
|
static |
Definition at line 304 of file breakpoint.c.
Referenced by breakpoint_ops_for_location_spec_type().
|
static |
Definition at line 10742 of file breakpoint.c.
Referenced by make_watch_options_def_group().