GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/breakpoint.c File Reference
#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 "observer.h"
#include "memattr.h"
#include "ada-lang.h"
#include "top.h"
#include "valprint.h"
#include "jit.h"
#include "parser-defs.h"
#include "gdb_regex.h"
#include "probe.h"
#include "cli/cli-utils.h"
#include "continuations.h"
#include "stack.h"
#include "skip.h"
#include "ax-gdb.h"
#include "dummy-frame.h"
#include "interps.h"
#include "format.h"
#include "thread-fsm.h"
#include "tid-parse.h"
#include "readline/readline.h"
#include "readline/history.h"
#include "mi/mi-common.h"
#include "extension.h"
#include <algorithm>
#include "progspace-and-thread.h"
#include "common/array-view.h"
#include "common/gdb_optional.h"

Go to the source code of this file.

Classes

struct  longjmp_breakpoint
 
struct  breakpoint_objfile_data
 
struct  breakpoint_objfile_data::overlay_msym
 
struct  breakpoint_objfile_data::terminate_msym
 
struct  breakpoint_objfile_data::exception_msym
 
struct  lang_and_radix
 
struct  fork_catchpoint
 
struct  solib_catchpoint
 
struct  exec_catchpoint
 
struct  until_break_fsm
 

Macros

#define ALL_BREAKPOINTS(B)   for (B = breakpoint_chain; B; B = B->next)
 
#define ALL_BREAKPOINTS_SAFE(B, TMP)
 
#define ALL_BP_LOCATIONS(B, BP_TMP)
 
#define ALL_BP_LOCATIONS_AT_ADDR(BP_LOCP_TMP, BP_LOCP_START, ADDRESS)
 
#define ALL_TRACEPOINTS(B)
 
#define NUM_LONGJMP_NAMES   ARRAY_SIZE(longjmp_names)
 
#define BP_TEMPFLAG   1
 
#define BP_HARDWAREFLAG   2
 
#define internal_error_pure_virtual_called()   gdb_assert_not_reached ("pure virtual function called")
 
#define LOCATION_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.\n"
 
#define BREAK_ARGS_HELP(command)   command" [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] [if CONDITION]\n\PROBE_MODIFIER shall be present if the command is to be placed in a\n\probe point. Accepted values are `-probe' (for a generic, automatically\n\guessed probe type), `-probe-stap' (for a SystemTap probe) or \n\`-probe-dtrace' (for a DTrace probe).\n\LOCATION may be a 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" LOCATION_HELP_STRING "\n\Multiple breakpoints at one place are permitted, and useful if their\n\conditions are different.\n\\n\Do \"help breakpoints\" for info on other commands dealing with breakpoints."
 

Enumerations

enum  exception_event_kind {
  EX_EVENT_THROW, EX_EVENT_RETHROW, EX_EVENT_CATCH, EX_EVENT_THROW,
  EX_EVENT_RETHROW, EX_EVENT_CATCH
}
 
enum  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  catch_fork_kind { catch_fork_temporary, catch_vfork_temporary, catch_fork_permanent, catch_vfork_permanent }
 
enum  extract_bp_kind { extract_bp_kind::bp, extract_bp_kind::loc }
 

Functions

static void map_breakpoint_numbers (const char *, gdb::function_view< void(breakpoint *)>)
 
static void breakpoint_re_set_default (struct breakpoint *)
 
static void create_sals_from_location_default (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
 
static void create_breakpoints_sal_default (struct gdbarch *, struct linespec_result *, gdb::unique_xmalloc_ptr< char >, gdb::unique_xmalloc_ptr< char >, enum bptype, enum bpdisp, int, int, int, const struct breakpoint_ops *, int, int, int, unsigned)
 
static std::vector< symtab_and_linedecode_location_default (struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
 
static int can_use_hardware_watchpoint (struct value *)
 
static void mention (struct breakpoint *)
 
static struct breakpointset_raw_breakpoint_without_location (struct gdbarch *, enum bptype, const struct breakpoint_ops *)
 
static struct bp_locationadd_location_to_breakpoint (struct breakpoint *, const struct symtab_and_line *)
 
struct breakpointset_raw_breakpoint (struct gdbarch *gdbarch, struct symtab_and_line, enum bptype, const struct breakpoint_ops *)
 
static struct breakpointmomentary_breakpoint_from_master (struct breakpoint *orig, enum bptype type, const struct breakpoint_ops *ops, int loc_enabled)
 
static void breakpoint_adjustment_warning (CORE_ADDR, CORE_ADDR, int, int)
 
static CORE_ADDR adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr, enum bptype bptype)
 
static void describe_other_breakpoints (struct gdbarch *, struct program_space *, CORE_ADDR, struct obj_section *, int)
 
static int watchpoint_locations_match (struct bp_location *loc1, struct bp_location *loc2)
 
static int breakpoint_location_address_match (struct bp_location *bl, const struct address_space *aspace, CORE_ADDR addr)
 
static int 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 free_bp_location (struct bp_location *loc)
 
static void incref_bp_location (struct bp_location *loc)
 
static void decref_bp_location (struct bp_location **loc)
 
static struct bp_locationallocate_bp_location (struct breakpoint *bpt)
 
static void update_global_location_list (enum ugll_insert_mode)
 
static void update_global_location_list_nothrow (enum ugll_insert_mode)
 
static int is_hardware_watchpoint (const struct breakpoint *bpt)
 
static void insert_breakpoint_locations (void)
 
static void trace_pass_command (const char *, int)
 
static void set_tracepoint_count (int num)
 
static int is_masked_watchpoint (const struct breakpoint *b)
 
static struct bp_location ** get_first_locp_gte_addr (CORE_ADDR address)
 
static int strace_marker_p (struct breakpoint *b)
 
struct command_linebreakpoint_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)
 
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 int gdb_evaluates_breakpoint_condition_p (void)
 
 VEC (bp_location_p)
 
static int breakpoint_enabled (struct breakpoint *b)
 
static void set_breakpoint_count (int num)
 
void clear_breakpoint_hit_counts (void)
 
struct breakpointget_breakpoint (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 int bp_locations_compare_addrs (const void *ap, const void *bp)
 
void set_breakpoint_condition (struct breakpoint *b, const char *exp, int from_tty)
 
static void condition_completer (struct cmd_list_element *cmd, completion_tracker &tracker, const char *text, const char *word)
 
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)
 
static bool is_longjmp_type (bptype type)
 
int is_tracepoint (const struct breakpoint *b)
 
static std::unique_ptr< breakpointnew_breakpoint_from_type (bptype type)
 
static void validate_commands_for_breakpoint (struct breakpoint *b, struct command_line *commands)
 
 VEC (breakpoint_p)
 
void breakpoint_set_commands (struct breakpoint *b, command_line_up &&commands)
 
void breakpoint_set_silent (struct breakpoint *b, int silent)
 
void breakpoint_set_thread (struct breakpoint *b, int thread)
 
void breakpoint_set_task (struct breakpoint *b, int task)
 
void check_tracepoint_command (char *line, void *closure)
 
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 int 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)
 
int is_breakpoint (const struct breakpoint *bpt)
 
int is_watchpoint (const struct breakpoint *bpt)
 
static int watchpoint_in_thread_scope (struct watchpoint *b)
 
static void watchpoint_del_at_next_stop (struct watchpoint *w)
 
static struct valueextract_bitfield_from_watchpoint_value (struct watchpoint *w, struct value *val)
 
static void software_watchpoint_add_no_memory_location (struct breakpoint *b, struct program_space *pspace)
 
static int is_no_memory_software_watchpoint (struct breakpoint *b)
 
static void update_watchpoint (struct watchpoint *b, int reparse)
 
static int should_be_inserted (struct bp_location *bl)
 
static int 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 (struct bp_location *bl, CORE_ADDR *addr)
 
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)
 
void iterate_over_bp_locations (walk_bp_location_callback callback)
 
static void update_inserted_breakpoint_locations (void)
 
int remove_breakpoints (void)
 
static void remove_threaded_breakpoints (struct thread_info *tp, int silent)
 
int remove_breakpoints_pid (int pid)
 
static void set_breakpoint_number (int internal, struct breakpoint *b)
 
static struct breakpointcreate_internal_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address, enum bptype type, const struct breakpoint_ops *ops)
 
static int msym_not_found_p (const struct minimal_symbol *msym)
 
static struct breakpoint_objfile_dataget_breakpoint_objfile_data (struct objfile *objfile)
 
static void free_breakpoint_objfile_data (struct objfile *obj, void *data)
 
static void create_overlay_event_breakpoint (void)
 
static void create_longjmp_master_breakpoint (void)
 
static void create_std_terminate_master_breakpoint (void)
 
static void create_exception_master_breakpoint (void)
 
static int breakpoint_event_location_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 int bp_location_inserted_here_p (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)
 
int is_catchpoint (struct breakpoint *ep)
 
void bpstat_clear (bpstat *bsp)
 
bpstat bpstat_copy (bpstat bs)
 
bpstat bpstat_find_breakpoint (bpstat bsp, struct breakpoint *breakpoint)
 
int bpstat_explains_signal (bpstat bsp, enum gdb_signal sig)
 
int bpstat_num (bpstat *bsp, int *num)
 
void bpstat_clear_actions (void)
 
static void breakpoint_about_to_proceed (void)
 
static int command_line_is_silent (struct command_line *cmd)
 
static int bpstat_do_actions_1 (bpstat *bsp)
 
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)
 
static void print_solib_event (int is_catchpoint)
 
enum print_stop_action bpstat_print (bpstat bs, int kind)
 
static bool breakpoint_cond_eval (expression *exp)
 
int watchpoints_triggered (struct target_waitstatus *ws)
 
static wp_check_result watchpoint_check (bpstat bs)
 
static int bpstat_check_location (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static void bpstat_check_watchpoint (bpstat bs)
 
static void bpstat_check_breakpoint_conditions (bpstat bs, ptid_t ptid)
 
static int need_moribund_for_location_type (struct bp_location *loc)
 
bpstat bpstat_stop_status (const address_space *aspace, CORE_ADDR bp_addr, ptid_t ptid, const struct target_waitstatus *ws)
 
static void handle_jit_event (void)
 
struct bpstat_what bpstat_what (bpstat bs_head)
 
void bpstat_run_callbacks (bpstat bs_head)
 
int bpstat_should_step (void)
 
int bpstat_causes_stop (bpstat bs)
 
static char * wrap_indent_at_field (struct ui_out *uiout, const char *col_name)
 
static const char * bp_condition_evaluator (struct breakpoint *b)
 
static const char * bp_location_condition_evaluator (struct bp_location *bl)
 
static void print_breakpoint_location (struct breakpoint *b, struct 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 void print_one_breakpoint_location (struct breakpoint *b, struct bp_location *loc, int loc_number, struct bp_location **last_loc, int allflag)
 
static void print_one_breakpoint (struct breakpoint *b, struct 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 *args, int allflag, int(*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 int breakpoint_has_pc (struct breakpoint *b, struct program_space *pspace, CORE_ADDR pc, struct obj_section *section)
 
static int breakpoint_address_is_meaningful (struct breakpoint *bpt)
 
int breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, const address_space *aspace2, CORE_ADDR addr2)
 
static int breakpoint_address_match_range (const address_space *aspace1, CORE_ADDR addr1, int len1, const address_space *aspace2, CORE_ADDR addr2)
 
static int breakpoint_location_address_match (struct bp_location *bl, const address_space *aspace, CORE_ADDR addr)
 
static int tracepoint_locations_match (struct bp_location *loc1, struct bp_location *loc2)
 
static int breakpoint_locations_match (struct bp_location *loc1, struct bp_location *loc2)
 
static CORE_ADDR adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr, enum bptype bptype)
 
static breakpointadd_to_breakpoint_chain (std::unique_ptr< breakpoint > &&b)
 
static void init_raw_breakpoint_without_location (struct breakpoint *b, struct gdbarch *gdbarch, enum bptype bptype, const struct breakpoint_ops *ops)
 
static void set_breakpoint_location_function (struct bp_location *loc, int explicit_loc)
 
struct gdbarchget_sal_arch (struct symtab_and_line sal)
 
static void init_raw_breakpoint (struct breakpoint *b, struct gdbarch *gdbarch, struct symtab_and_line sal, enum bptype bptype, const struct breakpoint_ops *ops)
 
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 breakpointset_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 breakpointcreate_thread_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address)
 
struct breakpointcreate_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 breakpointcreate_solib_event_breakpoint_1 (struct gdbarch *gdbarch, CORE_ADDR address, enum ugll_insert_mode insert_mode)
 
struct breakpointcreate_solib_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address)
 
struct breakpointcreate_and_insert_solib_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address)
 
void disable_breakpoints_in_shlibs (void)
 
static void disable_breakpoints_in_unloaded_shlib (struct so_list *solib)
 
static void disable_breakpoints_in_freed_objfile (struct objfile *objfile)
 
static int insert_catch_fork (struct bp_location *bl)
 
static int remove_catch_fork (struct bp_location *bl, enum remove_bp_reason reason)
 
static int breakpoint_hit_catch_fork (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static enum print_stop_action print_it_catch_fork (bpstat bs)
 
static void print_one_catch_fork (struct breakpoint *b, struct bp_location **last_loc)
 
static void print_mention_catch_fork (struct breakpoint *b)
 
static void print_recreate_catch_fork (struct breakpoint *b, struct ui_file *fp)
 
static int insert_catch_vfork (struct bp_location *bl)
 
static int remove_catch_vfork (struct bp_location *bl, enum remove_bp_reason reason)
 
static int breakpoint_hit_catch_vfork (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static enum print_stop_action print_it_catch_vfork (bpstat bs)
 
static void print_one_catch_vfork (struct breakpoint *b, struct bp_location **last_loc)
 
static void print_mention_catch_vfork (struct breakpoint *b)
 
static void print_recreate_catch_vfork (struct breakpoint *b, struct ui_file *fp)
 
static int insert_catch_solib (struct bp_location *ignore)
 
static int remove_catch_solib (struct bp_location *ignore, enum remove_bp_reason reason)
 
static int breakpoint_hit_catch_solib (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static void check_status_catch_solib (struct bpstats *bs)
 
static enum print_stop_action print_it_catch_solib (bpstat bs)
 
static void print_one_catch_solib (struct breakpoint *b, struct bp_location **locs)
 
static void print_mention_catch_solib (struct breakpoint *b)
 
static void print_recreate_catch_solib (struct breakpoint *b, struct ui_file *fp)
 
void add_solib_catchpoint (const char *arg, int is_load, int is_temp, int enabled)
 
static void catch_load_or_unload (const char *arg, int from_tty, int is_load, struct cmd_list_element *command)
 
static void catch_load_command_1 (const char *arg, int from_tty, struct cmd_list_element *command)
 
static void catch_unload_command_1 (const char *arg, int from_tty, struct cmd_list_element *command)
 
void init_catchpoint (struct breakpoint *b, struct gdbarch *gdbarch, int tempflag, const char *cond_string, const struct breakpoint_ops *ops)
 
void install_breakpoint (int internal, std::unique_ptr< breakpoint > &&arg, int update_gll)
 
static void create_fork_vfork_event_catchpoint (struct gdbarch *gdbarch, int tempflag, const char *cond_string, const struct breakpoint_ops *ops)
 
static int insert_catch_exec (struct bp_location *bl)
 
static int remove_catch_exec (struct bp_location *bl, enum remove_bp_reason reason)
 
static int breakpoint_hit_catch_exec (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static enum print_stop_action print_it_catch_exec (bpstat bs)
 
static void print_one_catch_exec (struct breakpoint *b, struct bp_location **last_loc)
 
static void print_mention_catch_exec (struct breakpoint *b)
 
static void print_recreate_catch_exec (struct breakpoint *b, struct ui_file *fp)
 
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)
 
static struct breakpointnew_single_step_breakpoint (int thread, struct gdbarch *gdbarch)
 
breakpoint_up set_momentary_breakpoint (struct gdbarch *gdbarch, struct symtab_and_line sal, struct frame_id frame_id, enum bptype type)
 
struct breakpointclone_momentary_breakpoint (struct breakpoint *orig)
 
breakpoint_up set_momentary_breakpoint_at_pc (struct gdbarch *gdbarch, CORE_ADDR pc, enum bptype type)
 
static int bp_loc_is_permanent (struct bp_location *loc)
 
int program_breakpoint_here_p (struct gdbarch *gdbarch, CORE_ADDR address)
 
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 init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, gdb::array_view< const symtab_and_line > sals, event_location_up &&location, 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 ignore_count, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags, int display_canonical)
 
static void create_breakpoint_sal (struct gdbarch *gdbarch, gdb::array_view< const symtab_and_line > sals, event_location_up &&location, 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 ignore_count, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags, int display_canonical)
 
static void 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, enum bpdisp disposition, int thread, int task, int ignore_count, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags)
 
static void parse_breakpoint_sals (const struct event_location *location, 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, char **cond_string, int *thread, int *task, char **rest)
 
static std::vector< symtab_and_linedecode_static_tracepoint_spec (const char **arg_p)
 
int create_breakpoint (struct gdbarch *gdbarch, const struct event_location *location, const char *cond_string, int thread, const char *extra_string, 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 stop_command (const char *arg, int from_tty)
 
static void stopin_command (const char *arg, int from_tty)
 
static void stopat_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 int breakpoint_hit_ranged_breakpoint (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static int resources_needed_ranged_breakpoint (const struct bp_location *bl)
 
static enum print_stop_action print_it_ranged_breakpoint (bpstat bs)
 
static void print_one_ranged_breakpoint (struct breakpoint *b, struct bp_location **last_loc)
 
static void print_one_detail_ranged_breakpoint (const struct breakpoint *b, struct ui_out *uiout)
 
static void print_mention_ranged_breakpoint (struct breakpoint *b)
 
static void print_recreate_ranged_breakpoint (struct breakpoint *b, struct ui_file *fp)
 
static CORE_ADDR find_breakpoint_range_end (struct symtab_and_line sal)
 
static void break_range_command (const char *arg, int from_tty)
 
static int watchpoint_exp_is_const (const struct expression *exp)
 
static void re_set_watchpoint (struct breakpoint *b)
 
static int insert_watchpoint (struct bp_location *bl)
 
static int remove_watchpoint (struct bp_location *bl, enum remove_bp_reason reason)
 
static int breakpoint_hit_watchpoint (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static void check_status_watchpoint (bpstat bs)
 
static int resources_needed_watchpoint (const struct bp_location *bl)
 
static int works_in_software_mode_watchpoint (const struct breakpoint *b)
 
static enum print_stop_action print_it_watchpoint (bpstat bs)
 
static void print_mention_watchpoint (struct breakpoint *b)
 
static void print_recreate_watchpoint (struct breakpoint *b, struct ui_file *fp)
 
static int explains_signal_watchpoint (struct breakpoint *b, enum gdb_signal sig)
 
static int insert_masked_watchpoint (struct bp_location *bl)
 
static int remove_masked_watchpoint (struct bp_location *bl, enum remove_bp_reason reason)
 
static int resources_needed_masked_watchpoint (const struct bp_location *bl)
 
static int works_in_software_mode_masked_watchpoint (const struct breakpoint *b)
 
static enum print_stop_action print_it_masked_watchpoint (bpstat bs)
 
static void print_one_detail_masked_watchpoint (const struct breakpoint *b, struct ui_out *uiout)
 
static void print_mention_masked_watchpoint (struct breakpoint *b)
 
static void print_recreate_masked_watchpoint (struct breakpoint *b, struct ui_file *fp)
 
static void watch_command_1 (const char *arg, int accessflag, int from_tty, int just_location, int internal)
 
void watch_command_wrapper (const char *arg, int from_tty, int internal)
 
static void watch_maybe_just_location (const char *arg, int accessflag, int from_tty)
 
static void watch_command (const char *arg, int from_tty)
 
void rwatch_command_wrapper (const char *arg, int from_tty, int internal)
 
static void rwatch_command (const char *arg, int from_tty)
 
void awatch_command_wrapper (const char *arg, int from_tty, int internal)
 
static void awatch_command (const char *arg, int from_tty)
 
static void until_break_fsm_clean_up (struct thread_fsm *self, struct thread_info *thread)
 
static int until_break_fsm_should_stop (struct thread_fsm *self, struct thread_info *thread)
 
static enum async_reply_reason until_break_fsm_async_reply_reason (struct thread_fsm *self)
 
static struct until_break_fsmnew_until_break_fsm (struct interp *cmd_interp, int thread, breakpoint_up &&location_breakpoint, breakpoint_up &&caller_breakpoint)
 
void until_break_command (const char *arg, int from_tty, int anywhere)
 
const char * ep_parse_optional_if_clause (const char **arg)
 
static void catch_fork_command_1 (const char *arg, int from_tty, struct cmd_list_element *command)
 
static void catch_exec_command_1 (const char *arg, int from_tty, struct cmd_list_element *command)
 
void init_ada_exception_breakpoint (struct breakpoint *b, struct gdbarch *gdbarch, struct symtab_and_line sal, const char *addr_string, const struct breakpoint_ops *ops, int tempflag, int enabled, int from_tty)
 
static void catch_command (const char *arg, int from_tty)
 
static void tcatch_command (const char *arg, int from_tty)
 
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_locations_compare (const void *ap, const void *bp)
 
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 say_where (struct breakpoint *b)
 
static void bp_location_dtor (struct bp_location *self)
 
static struct bp_locationbase_breakpoint_allocate_location (struct breakpoint *self)
 
static void base_breakpoint_re_set (struct breakpoint *b)
 
static int base_breakpoint_insert_location (struct bp_location *bl)
 
static int base_breakpoint_remove_location (struct bp_location *bl, enum remove_bp_reason reason)
 
static int base_breakpoint_breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static void base_breakpoint_check_status (bpstat bs)
 
static int base_breakpoint_works_in_software_mode (const struct breakpoint *b)
 
static int base_breakpoint_resources_needed (const struct bp_location *bl)
 
static enum print_stop_action base_breakpoint_print_it (bpstat bs)
 
static void base_breakpoint_print_one_detail (const struct breakpoint *self, struct ui_out *uiout)
 
static void base_breakpoint_print_mention (struct breakpoint *b)
 
static void base_breakpoint_print_recreate (struct breakpoint *b, struct ui_file *fp)
 
static void base_breakpoint_create_sals_from_location (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
 
static void base_breakpoint_create_breakpoints_sal (struct gdbarch *gdbarch, struct linespec_result *c, 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 ignore_count, const struct breakpoint_ops *o, int from_tty, int enabled, int internal, unsigned flags)
 
static std::vector< symtab_and_linebase_breakpoint_decode_location (struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
 
static int base_breakpoint_explains_signal (struct breakpoint *b, enum gdb_signal sig)
 
static void base_breakpoint_after_condition_true (struct bpstats *bs)
 
static void bkpt_re_set (struct breakpoint *b)
 
static int bkpt_insert_location (struct bp_location *bl)
 
static int bkpt_remove_location (struct bp_location *bl, enum remove_bp_reason reason)
 
static int bkpt_breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static int dprintf_breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static int bkpt_resources_needed (const struct bp_location *bl)
 
static enum print_stop_action bkpt_print_it (bpstat bs)
 
static void bkpt_print_mention (struct breakpoint *b)
 
static void bkpt_print_recreate (struct breakpoint *tp, struct ui_file *fp)
 
static void bkpt_create_sals_from_location (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
 
static void bkpt_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 ignore_count, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags)
 
static std::vector< symtab_and_linebkpt_decode_location (struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
 
static void internal_bkpt_re_set (struct breakpoint *b)
 
static void internal_bkpt_check_status (bpstat bs)
 
static enum print_stop_action internal_bkpt_print_it (bpstat bs)
 
static void internal_bkpt_print_mention (struct breakpoint *b)
 
static void momentary_bkpt_re_set (struct breakpoint *b)
 
static void momentary_bkpt_check_status (bpstat bs)
 
static enum print_stop_action momentary_bkpt_print_it (bpstat bs)
 
static void momentary_bkpt_print_mention (struct breakpoint *b)
 
static int bkpt_probe_insert_location (struct bp_location *bl)
 
static int bkpt_probe_remove_location (struct bp_location *bl, enum remove_bp_reason reason)
 
static void bkpt_probe_create_sals_from_location (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
 
static std::vector< symtab_and_linebkpt_probe_decode_location (struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
 
static void tracepoint_re_set (struct breakpoint *b)
 
static int tracepoint_breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static void tracepoint_print_one_detail (const struct breakpoint *self, struct ui_out *uiout)
 
static void tracepoint_print_mention (struct breakpoint *b)
 
static void tracepoint_print_recreate (struct breakpoint *self, struct ui_file *fp)
 
static void tracepoint_create_sals_from_location (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
 
static void tracepoint_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 ignore_count, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags)
 
static std::vector< symtab_and_linetracepoint_decode_location (struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
 
static void tracepoint_probe_create_sals_from_location (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
 
static std::vector< symtab_and_linetracepoint_probe_decode_location (struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
 
static void dprintf_re_set (struct breakpoint *b)
 
static void dprintf_print_recreate (struct breakpoint *tp, struct ui_file *fp)
 
static void dprintf_after_condition_true (struct bpstats *bs)
 
static void strace_marker_create_sals_from_location (const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
 
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 ignore_count, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags)
 
static std::vector< symtab_and_linestrace_marker_decode_location (struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
 
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 int all_locations_are_pending (struct breakpoint *b, struct program_space *pspace)
 
static int ambiguous_names_p (struct bp_location *loc)
 
static struct symtab_and_line update_static_tracepoint (struct breakpoint *b, struct symtab_and_line sal)
 
static int locations_are_equal (struct bp_location *a, struct bp_location *b)
 
static struct bp_locationhoist_existing_locations (struct breakpoint *b, struct program_space *pspace)
 
void update_breakpoint_locations (struct 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 std::vector< symtab_and_linelocation_to_sals (struct breakpoint *b, struct event_location *location, struct program_space *search_pspace, int *found)
 
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_locationfind_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)
 
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 set_breakpoint_cmd (const char *args, int from_tty)
 
static void show_breakpoint_cmd (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 char * read_uploaded_action (void)
 
struct tracepointcreate_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 tracepointget_tracepoint (int num)
 
struct tracepointget_tracepoint_by_number_on_target (int num)
 
struct tracepointget_tracepoint_by_number (const char **arg, number_or_range_parser *parser)
 
void print_recreate_thread (struct breakpoint *b, struct ui_file *fp)
 
static void save_breakpoints (const char *filename, int from_tty, int(*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_const_sfunc_ftype *sfunc, completer_ftype *completer, void *user_data_catch, void *user_data_tcatch)
 
static void save_command (const char *arg, int from_tty)
 
struct breakpointiterate_over_breakpoints (int(*callback)(struct breakpoint *, void *), void *data)
 
static int is_non_inline_function (struct breakpoint *b)
 
int pc_at_non_inline_function (const address_space *aspace, CORE_ADDR pc, const struct target_waitstatus *ws)
 
void breakpoint_free_objfile (struct objfile *objfile)
 
void initialize_breakpoint_ops (void)
 
void _initialize_breakpoint (void)
 

Variables

static struct breakpoint_ops bkpt_base_breakpoint_ops
 
static struct breakpoint_ops internal_breakpoint_ops
 
static struct breakpoint_ops momentary_breakpoint_ops
 
struct breakpoint_ops bkpt_breakpoint_ops
 
static struct breakpoint_ops bkpt_probe_breakpoint_ops
 
struct breakpoint_ops dprintf_breakpoint_ops
 
static const char dprintf_style_gdb [] = "gdb"
 
static const char dprintf_style_call [] = "call"
 
static const char dprintf_style_agent [] = "agent"
 
static const char *const dprintf_style_enums []
 
static const char * dprintf_style = dprintf_style_gdb
 
static char * dprintf_function
 
static char * dprintf_channel
 
static int disconnected_dprintf = 1
 
static int breakpoint_proceeded
 
static int can_use_hw_watchpoints
 
static enum auto_boolean pending_break_support
 
static int automatic_hardware_breakpoints
 
static int always_inserted_mode = 0
 
static const char condition_evaluation_both [] = "host or target"
 
static const char condition_evaluation_auto [] = "auto"
 
static const char condition_evaluation_host [] = "host"
 
static const char condition_evaluation_target [] = "target"
 
static const char *const condition_evaluation_enums []
 
static const char * condition_evaluation_mode_1 = condition_evaluation_auto
 
static const char * condition_evaluation_mode = condition_evaluation_auto
 
static int executing_breakpoint_commands
 
static int overlay_events_enabled
 
int target_exact_watchpoints = 0
 
struct breakpointbreakpoint_chain
 
static struct bp_location ** bp_locations
 
static unsigned bp_locations_count
 
static CORE_ADDR bp_locations_placed_address_before_address_max
 
static CORE_ADDR bp_locations_shadow_len_after_address_max
 
static int rbreak_start_breakpoint_count
 
static int internal_breakpoint_number = -1
 
static const char *const longjmp_names []
 
static const struct objfile_data * breakpoint_objfile_key
 
static struct minimal_symbol msym_not_found
 
static struct breakpoint_ops catch_fork_breakpoint_ops
 
static struct breakpoint_ops catch_vfork_breakpoint_ops
 
static struct breakpoint_ops catch_solib_breakpoint_ops
 
static struct breakpoint_ops catch_exec_breakpoint_ops
 
static struct breakpoint_ops ranged_breakpoint_ops
 
static struct breakpoint_ops watchpoint_breakpoint_ops
 
static struct breakpoint_ops masked_watchpoint_breakpoint_ops
 
static struct thread_fsm_ops until_break_fsm_ops
 
static const struct bp_location_ops bp_location_ops
 
struct breakpoint_ops base_breakpoint_ops
 
struct breakpoint_ops tracepoint_breakpoint_ops
 
static struct breakpoint_ops tracepoint_probe_breakpoint_ops
 
static struct breakpoint_ops strace_marker_breakpoint_ops
 
static struct uploaded_tpthis_utp
 
static int next_cmd
 
static struct cmd_list_elementcatch_cmdlist
 
static struct cmd_list_elementtcatch_cmdlist
 
static struct cmd_list_elementenablebreaklist = NULL
 

Macro Definition Documentation

◆ ALL_BP_LOCATIONS

#define ALL_BP_LOCATIONS (   B,
  BP_TMP 
)

◆ ALL_BP_LOCATIONS_AT_ADDR

#define ALL_BP_LOCATIONS_AT_ADDR (   BP_LOCP_TMP,
  BP_LOCP_START,
  ADDRESS 
)
Value:
for (BP_LOCP_START = BP_LOCP_START == NULL ? get_first_locp_gte_addr (ADDRESS) : BP_LOCP_START, \
BP_LOCP_TMP = BP_LOCP_START; \
BP_LOCP_START \
&& (BP_LOCP_TMP < bp_locations + bp_locations_count \
&& (*BP_LOCP_TMP)->address == ADDRESS); \
BP_LOCP_TMP++)
static unsigned bp_locations_count
Definition: breakpoint.c:541
static struct bp_location ** bp_locations
Definition: breakpoint.c:537
static struct bp_location ** get_first_locp_gte_addr(CORE_ADDR address)
Definition: breakpoint.c:809

Definition at line 517 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().

◆ ALL_BREAKPOINTS

#define ALL_BREAKPOINTS (   B)    for (B = breakpoint_chain; B; B = B->next)

◆ ALL_BREAKPOINTS_SAFE

#define ALL_BREAKPOINTS_SAFE (   B,
  TMP 
)

◆ ALL_TRACEPOINTS

#define ALL_TRACEPOINTS (   B)
Value:
for (B = breakpoint_chain; B; B = B->next) \
struct breakpoint * breakpoint_chain
Definition: breakpoint.c:533
Definition: aarch64-insn.h:36
int is_tracepoint(const struct breakpoint *b)
Definition: breakpoint.c:1053

Definition at line 527 of file breakpoint.c.

Referenced by delete_trace_command(), download_tracepoint_locations(), get_tracepoint(), get_tracepoint_by_number(), get_tracepoint_by_number_on_target(), and trace_pass_command().

◆ BP_HARDWAREFLAG

#define BP_HARDWAREFLAG   2

Definition at line 4853 of file breakpoint.c.

Referenced by break_command_1(), hbreak_command(), and thbreak_command().

◆ BP_TEMPFLAG

#define BP_TEMPFLAG   1

Definition at line 4852 of file breakpoint.c.

Referenced by break_command_1(), tbreak_command(), and thbreak_command().

◆ BREAK_ARGS_HELP

#define BREAK_ARGS_HELP (   command)    command" [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] [if CONDITION]\n\PROBE_MODIFIER shall be present if the command is to be placed in a\n\probe point. Accepted values are `-probe' (for a generic, automatically\n\guessed probe type), `-probe-stap' (for a SystemTap probe) or \n\`-probe-dtrace' (for a DTrace probe).\n\LOCATION may be a 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" LOCATION_HELP_STRING "\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 15290 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ internal_error_pure_virtual_called

#define internal_error_pure_virtual_called ( )    gdb_assert_not_reached ("pure virtual function called")

◆ LOCATION_HELP_STRING

#define LOCATION_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.\n"

Definition at line 15261 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ NUM_LONGJMP_NAMES

#define NUM_LONGJMP_NAMES   ARRAY_SIZE(longjmp_names)

Definition at line 3140 of file breakpoint.c.

Referenced by create_longjmp_master_breakpoint().

Enumeration Type Documentation

◆ catch_fork_kind

Enumerator
catch_fork_temporary 
catch_vfork_temporary 
catch_fork_permanent 
catch_vfork_permanent 

Definition at line 11304 of file breakpoint.c.

◆ exception_event_kind

Enumerator
EX_EVENT_THROW 
EX_EVENT_RETHROW 
EX_EVENT_CATCH 
EX_EVENT_THROW 
EX_EVENT_RETHROW 
EX_EVENT_CATCH 

Definition at line 87 of file breakpoint.c.

◆ extract_bp_kind

enum extract_bp_kind
strong
Enumerator
bp 
loc 

Definition at line 14164 of file breakpoint.c.

◆ ugll_insert_mode

Enumerator
UGLL_DONT_INSERT 
UGLL_MAY_INSERT 
UGLL_INSERT 

Definition at line 188 of file breakpoint.c.

◆ wp_check_result

Enumerator
WP_DELETED 
WP_VALUE_CHANGED 
WP_VALUE_NOT_CHANGED 
WP_IGNORE 

Definition at line 4837 of file breakpoint.c.

Function Documentation

◆ _initialize_breakpoint()

void _initialize_breakpoint ( void  )

Definition at line 15594 of file breakpoint.c.

References _, add_abbrev_prefix_cmd(), add_alias_cmd(), add_catch_command(), add_cmd(), add_com(), add_com_alias(), add_info(), add_info_alias(), add_prefix_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_string_cmd(), add_setshow_zinteger_cmd(), agent_printf_command(), always_inserted_mode, AUTO_BOOLEAN_AUTO, automatic_hardware_breakpoints, awatch_command(), BREAK_ARGS_HELP, break_command(), break_range_command(), breakpoint_about_to_proceed(), breakpoint_chain, breakpoint_objfile_key, can_use_hw_watchpoints, catch_cmdlist, catch_command(), catch_exec_command_1(), catch_fork_command_1(), catch_fork_permanent, catch_fork_temporary, catch_load_command_1(), CATCH_PERMANENT, CATCH_TEMPORARY, catch_unload_command_1(), catch_vfork_permanent, catch_vfork_temporary, class_alias, class_breakpoint, class_info, class_maintenance, class_run, class_support, class_trace, class_vars, clear_command(), cmdlist, commands_command(), condition_command(), condition_completer(), condition_evaluation_enums, condition_evaluation_mode_1, dbx_commands, delete_command(), delete_trace_command(), deletelist, deprecate_cmd(), disable_breakpoints_in_freed_objfile(), disable_breakpoints_in_unloaded_shlib(), disable_command(), disable_trace_command(), disablelist, disconnected_dprintf, dprintf_channel, dprintf_command(), dprintf_function, dprintf_style, dprintf_style_enums, enable_command(), enable_count_command(), enable_delete_command(), enable_once_command(), enable_trace_command(), enablebreaklist, enablelist, expression_completer(), filename_completer(), free_breakpoint_objfile_data(), ftrace_command(), hbreak_command(), ignore_command(), info_breakpoints_command(), info_tracepoints_command(), info_watchpoints_command(), initialize_breakpoint_ops(), invalidate_bp_value_on_memory_change(), location_completer(), LOCATION_HELP_STRING, maintenance_info_breakpoints(), maintenanceinfolist, no_class, observer_attach_about_to_proceed(), observer_attach_free_objfile(), observer_attach_memory_changed(), observer_attach_solib_unloaded(), observer_attach_thread_exit(), pending_break_support, remove_threaded_breakpoints(), rwatch_command(), save_breakpoints_command(), save_cmdlist, save_command(), save_tracepoints_command(), set_breakpoint_cmd(), set_cmd_completer(), set_condition_evaluation_mode(), setlist, show_always_inserted_mode(), show_automatic_hardware_breakpoints(), show_breakpoint_cmd(), show_can_use_hw_watchpoints(), show_condition_evaluation_mode(), show_pending_break_support(), showlist, stop_command(), stopat_command(), stopin_command(), stoplist, strace_command(), tbreak_command(), tcatch_cmdlist, tcatch_command(), thbreak_command(), trace_command(), trace_pass_command(), update_dprintf_commands(), and watch_command().

◆ add_catch_command()

void add_catch_command ( const char *  name,
const char *  docstring,
cmd_const_sfunc_ftype sfunc,
completer_ftype completer,
void *  user_data_catch,
void *  user_data_tcatch 
)

◆ add_location_to_breakpoint()

static struct bp_location * add_location_to_breakpoint ( struct breakpoint b,
const struct symtab_and_line sal 
)
static

◆ add_solib_catchpoint()

void add_solib_catchpoint ( const char *  arg,
int  is_load,
int  is_temp,
int  enabled 
)

◆ add_to_breakpoint_chain()

static breakpoint* add_to_breakpoint_chain ( std::unique_ptr< breakpoint > &&  b)
static

◆ adjust_breakpoint_address() [1/2]

static CORE_ADDR adjust_breakpoint_address ( struct gdbarch gdbarch,
CORE_ADDR  bpaddr,
enum bptype  bptype 
)
static

◆ adjust_breakpoint_address() [2/2]

static CORE_ADDR adjust_breakpoint_address ( struct gdbarch gdbarch,
CORE_ADDR  bpaddr,
enum bptype  bptype 
)
static

◆ agent_printf_command()

static void agent_printf_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 9729 of file breakpoint.c.

References _, and error().

Referenced by _initialize_breakpoint().

◆ all_locations_are_pending()

static int all_locations_are_pending ( struct breakpoint b,
struct program_space pspace 
)
static

Definition at line 13395 of file breakpoint.c.

References breakpoint::loc, loc, and bp_location::pspace.

Referenced by update_breakpoint_locations().

◆ allocate_bp_location()

static struct bp_location * allocate_bp_location ( struct breakpoint bpt)
static

◆ ambiguous_names_p()

static int ambiguous_names_p ( struct bp_location loc)
static

◆ awatch_command()

static void awatch_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 11058 of file breakpoint.c.

References hw_access, and watch_maybe_just_location().

Referenced by _initialize_breakpoint().

◆ awatch_command_wrapper()

void awatch_command_wrapper ( const char *  arg,
int  from_tty,
int  internal 
)

Definition at line 11052 of file breakpoint.c.

References hw_access, and watch_command_1().

Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().

◆ base_breakpoint_after_condition_true()

static void base_breakpoint_after_condition_true ( struct bpstats bs)
static

Definition at line 12471 of file breakpoint.c.

◆ base_breakpoint_allocate_location()

static struct bp_location* base_breakpoint_allocate_location ( struct breakpoint self)
static

Definition at line 12342 of file breakpoint.c.

References bp_location::bp_location().

◆ base_breakpoint_breakpoint_hit()

static int base_breakpoint_breakpoint_hit ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

Definition at line 12370 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_check_status()

static void base_breakpoint_check_status ( bpstat  bs)
static

Definition at line 12379 of file breakpoint.c.

◆ base_breakpoint_create_breakpoints_sal()

static void base_breakpoint_create_breakpoints_sal ( struct gdbarch gdbarch,
struct linespec_result c,
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  ignore_count,
const struct breakpoint_ops o,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)
static

Definition at line 12437 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_create_sals_from_location()

static void base_breakpoint_create_sals_from_location ( const struct event_location location,
struct linespec_result canonical,
enum bptype  type_wanted 
)
static

Definition at line 12429 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_decode_location()

static std::vector<symtab_and_line> base_breakpoint_decode_location ( struct breakpoint b,
const struct event_location location,
struct program_space search_pspace 
)
static

Definition at line 12453 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_explains_signal()

static int base_breakpoint_explains_signal ( struct breakpoint b,
enum gdb_signal  sig 
)
static

Definition at line 12463 of file breakpoint.c.

◆ base_breakpoint_insert_location()

static int base_breakpoint_insert_location ( struct bp_location bl)
static

Definition at line 12357 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_print_it()

static enum print_stop_action base_breakpoint_print_it ( bpstat  bs)
static

Definition at line 12403 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_print_mention()

static void base_breakpoint_print_mention ( struct breakpoint b)
static

Definition at line 12416 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_print_one_detail()

static void base_breakpoint_print_one_detail ( const struct breakpoint self,
struct ui_out uiout 
)
static

Definition at line 12409 of file breakpoint.c.

◆ base_breakpoint_print_recreate()

static void base_breakpoint_print_recreate ( struct breakpoint b,
struct ui_file fp 
)
static

Definition at line 12422 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_re_set()

static void base_breakpoint_re_set ( struct breakpoint b)
static

Definition at line 12348 of file breakpoint.c.

◆ base_breakpoint_remove_location()

static int base_breakpoint_remove_location ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

Definition at line 12363 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_resources_needed()

static int base_breakpoint_resources_needed ( const struct bp_location bl)
static

Definition at line 12397 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ base_breakpoint_works_in_software_mode()

static int base_breakpoint_works_in_software_mode ( const struct breakpoint b)
static

Definition at line 12388 of file breakpoint.c.

References internal_error_pure_virtual_called.

◆ bkpt_breakpoint_hit()

static int bkpt_breakpoint_hit ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ bkpt_create_breakpoints_sal()

static void bkpt_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  ignore_count,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)
static

Definition at line 12685 of file breakpoint.c.

References create_breakpoints_sal_default(), and flags.

Referenced by initialize_breakpoint_ops().

◆ bkpt_create_sals_from_location()

static void bkpt_create_sals_from_location ( const struct event_location location,
struct linespec_result canonical,
enum bptype  type_wanted 
)
static

Definition at line 12677 of file breakpoint.c.

References create_sals_from_location_default().

Referenced by initialize_breakpoint_ops().

◆ bkpt_decode_location()

static std::vector<symtab_and_line> bkpt_decode_location ( struct breakpoint b,
const struct event_location location,
struct program_space search_pspace 
)
static

Definition at line 12707 of file breakpoint.c.

References decode_location_default().

Referenced by initialize_breakpoint_ops().

◆ bkpt_insert_location()

static int bkpt_insert_location ( struct bp_location bl)
static

◆ bkpt_print_it()

static enum print_stop_action bkpt_print_it ( bpstat  bs)
static

◆ bkpt_print_mention()

static void bkpt_print_mention ( struct breakpoint b)
static

◆ bkpt_print_recreate()

static void bkpt_print_recreate ( struct breakpoint tp,
struct ui_file fp 
)
static

◆ bkpt_probe_create_sals_from_location()

static void bkpt_probe_create_sals_from_location ( const struct event_location location,
struct linespec_result canonical,
enum bptype  type_wanted 
)
static

◆ bkpt_probe_decode_location()

static std::vector<symtab_and_line> bkpt_probe_decode_location ( struct breakpoint b,
const struct event_location location,
struct program_space search_pspace 
)
static

◆ bkpt_probe_insert_location()

static int bkpt_probe_insert_location ( struct bp_location bl)
static

◆ bkpt_probe_remove_location()

static int bkpt_probe_remove_location ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

◆ bkpt_re_set()

static void bkpt_re_set ( struct breakpoint b)
static

◆ bkpt_remove_location()

static int bkpt_remove_location ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

◆ bkpt_resources_needed()

static int bkpt_resources_needed ( const struct bp_location bl)
static

◆ bp_condition_evaluator()

static const char* bp_condition_evaluator ( struct breakpoint b)
static

◆ bp_loc_is_permanent()

static int bp_loc_is_permanent ( struct bp_location loc)
static

◆ bp_location_condition_evaluator()

static const char* bp_location_condition_evaluator ( struct bp_location bl)
static

◆ bp_location_dtor()

static void bp_location_dtor ( struct bp_location self)
static

Definition at line 12322 of file breakpoint.c.

References xfree().

◆ bp_location_has_shadow()

static int bp_location_has_shadow ( struct bp_location bl)
static

◆ bp_location_inserted_here_p()

static int bp_location_inserted_here_p ( struct bp_location bl,
const address_space aspace,
CORE_ADDR  pc 
)
static

◆ bp_locations_compare()

static int bp_locations_compare ( const void *  ap,
const void *  bp 
)
static

◆ bp_locations_compare_addrs()

static int bp_locations_compare_addrs ( const void *  ap,
const void *  bp 
)
static

Definition at line 792 of file breakpoint.c.

References bp_location::address, and bp.

Referenced by get_first_locp_gte_addr().

◆ bp_locations_target_extensions_update()

static void bp_locations_target_extensions_update ( void  )
static

◆ bpdisp_text()

const char* bpdisp_text ( enum bpdisp  disp)

◆ bpstat_causes_stop()

int bpstat_causes_stop ( bpstat  bs)

Definition at line 5780 of file breakpoint.c.

References bpstats::next, and bpstats::stop.

Referenced by bpstat_stop_status(), handle_inferior_event_1(), and handle_syscall_event().

◆ bpstat_check_breakpoint_conditions()

static void bpstat_check_breakpoint_conditions ( bpstat  bs,
ptid_t  ptid 
)
static

◆ bpstat_check_location()

static int bpstat_check_location ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ bpstat_check_watchpoint()

static void bpstat_check_watchpoint ( bpstat  bs)
static

◆ bpstat_clear()

void bpstat_clear ( bpstat bsp)

◆ bpstat_clear_actions()

void bpstat_clear_actions ( void  )

◆ bpstat_copy()

bpstat bpstat_copy ( bpstat  bs)

Definition at line 4251 of file breakpoint.c.

References bpstats::next.

Referenced by save_infcall_control_state().

◆ bpstat_do_actions()

void bpstat_do_actions ( void  )

◆ bpstat_do_actions_1()

static int bpstat_do_actions_1 ( bpstat bsp)
static

◆ bpstat_explains_signal()

int bpstat_explains_signal ( bpstat  bsp,
enum gdb_signal  sig 
)

◆ bpstat_find_breakpoint()

bpstat bpstat_find_breakpoint ( bpstat  bsp,
struct breakpoint breakpoint 
)

◆ bpstat_num()

int bpstat_num ( bpstat bsp,
int *  num 
)

Definition at line 4327 of file breakpoint.c.

References bpstats::next, and breakpoint::number.

Referenced by continue_command(), and info_program_command().

◆ bpstat_print()

enum print_stop_action bpstat_print ( bpstat  bs,
int  kind 
)

◆ bpstat_remove_bp_location()

static void bpstat_remove_bp_location ( bpstat  bps,
struct breakpoint bpt 
)
static

◆ bpstat_remove_breakpoint_callback()

static int bpstat_remove_breakpoint_callback ( struct thread_info th,
void *  data 
)
static

◆ bpstat_run_callbacks()

void bpstat_run_callbacks ( bpstat  bs_head)

◆ bpstat_should_step()

int bpstat_should_step ( void  )

◆ bpstat_stop_status()

bpstat bpstat_stop_status ( const address_space aspace,
CORE_ADDR  bp_addr,
ptid_t  ptid,
const struct target_waitstatus ws 
)

◆ bpstat_what()

struct bpstat_what bpstat_what ( bpstat  bs_head)

◆ bptype_string()

static const char* bptype_string ( enum bptype  type)
static

◆ break_command()

void break_command ( const char *  arg,
int  from_tty 
)

Definition at line 9596 of file breakpoint.c.

References break_command_1().

Referenced by _initialize_breakpoint(), mi_cmd_break_commands(), and rbreak_command().

◆ break_command_1()

static void break_command_1 ( const char *  arg,
int  flag,
int  from_tty 
)
static

◆ break_range_command()

static void break_range_command ( const char *  arg,
int  from_tty 
)
static

◆ breakpoint_1()

static int breakpoint_1 ( const char *  args,
int  allflag,
int(*)(const struct breakpoint *)  filter 
)
static

◆ breakpoint_about_to_proceed()

static void breakpoint_about_to_proceed ( void  )
static

◆ breakpoint_address_bits()

static int breakpoint_address_bits ( struct breakpoint b)
static

Definition at line 6458 of file breakpoint.c.

References gdbarch_addr_bit(), is_no_memory_software_watchpoint(), breakpoint::loc, and loc.

Referenced by breakpoint_1().

◆ breakpoint_address_is_meaningful()

static int breakpoint_address_is_meaningful ( struct breakpoint bpt)
static

Definition at line 6784 of file breakpoint.c.

References bp_catchpoint, bp_watchpoint, and breakpoint::type.

Referenced by bp_loc_is_permanent(), and update_global_location_list().

◆ breakpoint_address_match()

int breakpoint_address_match ( const address_space aspace1,
CORE_ADDR  addr1,
const address_space aspace2,
CORE_ADDR  addr2 
)

◆ breakpoint_address_match_range()

static int breakpoint_address_match_range ( const address_space aspace1,
CORE_ADDR  addr1,
int  len1,
const address_space aspace2,
CORE_ADDR  addr2 
)
static

◆ breakpoint_adjustment_warning()

static void breakpoint_adjustment_warning ( CORE_ADDR  from_addr,
CORE_ADDR  to_addr,
int  bnum,
int  have_bnum 
)
static

Definition at line 6950 of file breakpoint.c.

References _, hex_string_custom(), and warning().

Referenced by adjust_breakpoint_address(), and bkpt_print_it().

◆ breakpoint_auto_delete()

void breakpoint_auto_delete ( bpstat  bs)

◆ breakpoint_commands()

struct command_line* breakpoint_commands ( struct breakpoint b)

◆ breakpoint_cond_eval()

static bool breakpoint_cond_eval ( expression exp)
static

◆ breakpoint_condition_evaluation_mode()

static const char* breakpoint_condition_evaluation_mode ( void  )
static

◆ breakpoint_enabled()

static int breakpoint_enabled ( struct breakpoint b)
static

◆ breakpoint_event_location_empty_p()

static int breakpoint_event_location_empty_p ( const struct breakpoint b)
static

Definition at line 3517 of file breakpoint.c.

References event_location_empty_p(), and breakpoint::location.

Referenced by bkpt_re_set(), and update_breakpoints_after_exec().

◆ breakpoint_free_objfile()

void breakpoint_free_objfile ( struct objfile objfile)

Definition at line 15404 of file breakpoint.c.

References ALL_BP_LOCATIONS, loc, and SYMTAB_OBJFILE.

Referenced by objfile::~objfile().

◆ breakpoint_has_location_inserted_here()

int breakpoint_has_location_inserted_here ( struct breakpoint bp,
const address_space aspace,
CORE_ADDR  pc 
)

◆ breakpoint_has_pc()

static int breakpoint_has_pc ( struct breakpoint b,
struct program_space pspace,
CORE_ADDR  pc,
struct obj_section section 
)
static

◆ breakpoint_here_p()

enum breakpoint_here breakpoint_here_p ( const address_space aspace,
CORE_ADDR  pc 
)

◆ breakpoint_hit_catch_exec()

static int breakpoint_hit_catch_exec ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ breakpoint_hit_catch_fork()

static int breakpoint_hit_catch_fork ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ breakpoint_hit_catch_solib()

static int breakpoint_hit_catch_solib ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ breakpoint_hit_catch_vfork()

static int breakpoint_hit_catch_vfork ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ breakpoint_hit_ranged_breakpoint()

static int breakpoint_hit_ranged_breakpoint ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ breakpoint_hit_watchpoint()

static int breakpoint_hit_watchpoint ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ breakpoint_in_range_p()

int breakpoint_in_range_p ( const address_space aspace,
CORE_ADDR  addr,
ULONGEST  len 
)

◆ breakpoint_init_inferior()

void breakpoint_init_inferior ( enum inf_context  context)

◆ breakpoint_inserted_here_p()

int breakpoint_inserted_here_p ( const address_space aspace,
CORE_ADDR  pc 
)

◆ breakpoint_kind()

static int breakpoint_kind ( struct bp_location bl,
CORE_ADDR addr 
)
static

◆ breakpoint_location_address_match() [1/2]

static int breakpoint_location_address_match ( struct bp_location bl,
const struct address_space aspace,
CORE_ADDR  addr 
)
static

◆ breakpoint_location_address_match() [2/2]

static int breakpoint_location_address_match ( struct bp_location bl,
const address_space aspace,
CORE_ADDR  addr 
)
static

◆ breakpoint_location_address_range_overlap()

static int breakpoint_location_address_range_overlap ( struct bp_location bl,
const address_space aspace,
CORE_ADDR  addr,
int  len 
)
static

◆ breakpoint_locations_match()

static int breakpoint_locations_match ( struct bp_location loc1,
struct bp_location loc2 
)
static

◆ breakpoint_program_space_exit()

void breakpoint_program_space_exit ( struct program_space pspace)

◆ breakpoint_re_set()

void breakpoint_re_set ( void  )

◆ breakpoint_re_set_default()

static void breakpoint_re_set_default ( struct breakpoint b)
static

◆ breakpoint_re_set_one()

static void breakpoint_re_set_one ( breakpoint b)
static

◆ breakpoint_re_set_thread()

void breakpoint_re_set_thread ( struct breakpoint b)

◆ breakpoint_retire_moribund()

void breakpoint_retire_moribund ( void  )

Definition at line 12195 of file breakpoint.c.

References decref_bp_location(), loc, VEC_iterate, and VEC_unordered_remove.

Referenced by handle_inferior_event_1().

◆ breakpoint_sals_to_pc()

static void breakpoint_sals_to_pc ( std::vector< symtab_and_line > &  sals)
static

Definition at line 9163 of file breakpoint.c.

References resolve_sal_pc(), and linespec_sals::sals.

Referenced by create_breakpoint().

◆ breakpoint_set_commands()

void breakpoint_set_commands ( struct breakpoint b,
command_line_up &&  commands 
)

◆ breakpoint_set_silent()

void breakpoint_set_silent ( struct breakpoint b,
int  silent 
)

◆ breakpoint_set_task()

void breakpoint_set_task ( struct breakpoint b,
int  task 
)

◆ breakpoint_set_thread()

void breakpoint_set_thread ( struct breakpoint b,
int  thread 
)

◆ breakpoint_xfer_memory()

void breakpoint_xfer_memory ( gdb_byte readbuf,
gdb_byte writebuf,
const gdb_byte writebuf_org,
ULONGEST  memaddr,
LONGEST  len 
)

◆ breakpoints_should_be_inserted_now()

int breakpoints_should_be_inserted_now ( void  )

◆ build_target_command_list()

static void build_target_command_list ( struct bp_location bl)
static

◆ build_target_condition_list()

static void build_target_condition_list ( struct bp_location bl)
static

◆ can_use_hardware_watchpoint()

static int can_use_hardware_watchpoint ( struct value v)
static

◆ catch_command()

static void catch_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 11428 of file breakpoint.c.

References _, and error().

Referenced by _initialize_breakpoint().

◆ catch_exec_command_1()

static void catch_exec_command_1 ( const char *  arg,
int  from_tty,
struct cmd_list_element command 
)
static

◆ catch_fork_command_1()

static void catch_fork_command_1 ( const char *  arg,
int  from_tty,
struct cmd_list_element command 
)
static

◆ catch_load_command_1()

static void catch_load_command_1 ( const char *  arg,
int  from_tty,
struct cmd_list_element command 
)
static

Definition at line 8222 of file breakpoint.c.

References catch_load_or_unload().

Referenced by _initialize_breakpoint().

◆ catch_load_or_unload()

static void catch_load_or_unload ( const char *  arg,
int  from_tty,
int  is_load,
struct cmd_list_element command 
)
static

◆ catch_unload_command_1()

static void catch_unload_command_1 ( const char *  arg,
int  from_tty,
struct cmd_list_element command 
)
static

Definition at line 8229 of file breakpoint.c.

References catch_load_or_unload().

Referenced by _initialize_breakpoint().

◆ check_fast_tracepoint_sals()

static void check_fast_tracepoint_sals ( struct gdbarch gdbarch,
gdb::array_view< const symtab_and_line sals 
)
static

◆ check_longjmp_breakpoint_for_call_dummy()

void check_longjmp_breakpoint_for_call_dummy ( struct thread_info tp)

◆ check_no_tracepoint_commands()

static void check_no_tracepoint_commands ( struct command_line commands)
static

◆ check_status_catch_solib()

static void check_status_catch_solib ( struct bpstats bs)
static

◆ check_status_watchpoint()

static void check_status_watchpoint ( bpstat  bs)
static

◆ check_tracepoint_command()

void check_tracepoint_command ( char *  line,
void *  closure 
)

Definition at line 1219 of file breakpoint.c.

References validate_actionline().

Referenced by actions_command(), and mi_cmd_break_commands().

◆ clear_breakpoint_hit_counts()

void clear_breakpoint_hit_counts ( void  )

Definition at line 639 of file breakpoint.c.

References ALL_BREAKPOINTS, and breakpoint::hit_count.

Referenced by run_command_1().

◆ clear_command()

static void clear_command ( const char *  arg,
int  from_tty 
)
static

◆ clone_momentary_breakpoint()

struct breakpoint* clone_momentary_breakpoint ( struct breakpoint orig)

Definition at line 8611 of file breakpoint.c.

References momentary_breakpoint_from_master(), breakpoint::ops, and breakpoint::type.

Referenced by follow_fork().

◆ command_line_is_silent()

static int command_line_is_silent ( struct command_line cmd)
static

Definition at line 4397 of file breakpoint.c.

References command_line::line.

Referenced by bpstat_do_actions_1(), and bpstat_stop_status().

◆ commands_command()

static void commands_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 1278 of file breakpoint.c.

References commands_command_1().

Referenced by _initialize_breakpoint().

◆ commands_command_1()

static void commands_command_1 ( const char *  arg,
int  from_tty,
struct command_line control 
)
static

◆ commands_from_control_command()

enum command_control_type commands_from_control_command ( const char *  arg,
struct command_line cmd 
)

Definition at line 1289 of file breakpoint.c.

References commands_command_1(), and simple_control.

Referenced by execute_control_command_1().

◆ compare_breakpoints()

static int compare_breakpoints ( const breakpoint a,
const breakpoint b 
)
static

Definition at line 11443 of file breakpoint.c.

References breakpoint::number.

Referenced by clear_command().

◆ condition_command()

static void condition_command ( const char *  arg,
int  from_tty 
)
static

◆ condition_completer()

static void condition_completer ( struct cmd_list_element cmd,
completion_tracker tracker,
const char *  text,
const char *  word 
)
static

◆ create_and_insert_solib_event_breakpoint()

struct breakpoint* create_and_insert_solib_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)

◆ create_breakpoint()

int create_breakpoint ( struct gdbarch gdbarch,
const struct event_location location,
const char *  cond_string,
int  thread,
const char *  extra_string,
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 
)

◆ create_breakpoint_sal()

static void create_breakpoint_sal ( struct gdbarch gdbarch,
gdb::array_view< const symtab_and_line sals,
event_location_up &&  location,
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  ignore_count,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags,
int  display_canonical 
)
static

◆ create_breakpoints_sal()

static void 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,
enum bpdisp  disposition,
int  thread,
int  task,
int  ignore_count,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)
static

◆ create_breakpoints_sal_default()

static void create_breakpoints_sal_default ( 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  ignore_count,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)
static

◆ create_exception_master_breakpoint()

static void create_exception_master_breakpoint ( void  )
static

◆ create_fork_vfork_event_catchpoint()

static void create_fork_vfork_event_catchpoint ( struct gdbarch gdbarch,
int  tempflag,
const char *  cond_string,
const struct breakpoint_ops ops 
)
static

Definition at line 8271 of file breakpoint.c.

References init_catchpoint(), install_breakpoint(), and null_ptid.

Referenced by catch_fork_command_1().

◆ create_internal_breakpoint()

static struct breakpoint* create_internal_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address,
enum bptype  type,
const struct breakpoint_ops ops 
)
static

◆ create_jit_event_breakpoint()

struct breakpoint* create_jit_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)

◆ create_longjmp_master_breakpoint()

static void create_longjmp_master_breakpoint ( void  )
static

◆ create_overlay_event_breakpoint()

static void create_overlay_event_breakpoint ( void  )
static

◆ create_sals_from_location_default()

static void create_sals_from_location_default ( const struct event_location location,
struct linespec_result canonical,
enum bptype  type_wanted 
)
static

◆ create_solib_event_breakpoint()

struct breakpoint* create_solib_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)

◆ create_solib_event_breakpoint_1()

static struct breakpoint* create_solib_event_breakpoint_1 ( struct gdbarch gdbarch,
CORE_ADDR  address,
enum ugll_insert_mode  insert_mode 
)
static

◆ create_std_terminate_master_breakpoint()

static void create_std_terminate_master_breakpoint ( void  )
static

◆ create_thread_event_breakpoint()

struct breakpoint* create_thread_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)

◆ create_tracepoint_from_upload()

struct tracepoint* create_tracepoint_from_upload ( struct uploaded_tp utp)

◆ decode_location_default()

static std::vector< symtab_and_line > decode_location_default ( struct breakpoint b,
const struct event_location location,
struct program_space search_pspace 
)
static

◆ decode_static_tracepoint_spec()

static std::vector<symtab_and_line> decode_static_tracepoint_spec ( const char **  arg_p)
static

◆ decref_bp_location()

static void decref_bp_location ( struct bp_location **  loc)
static

◆ default_collect_info()

static void default_collect_info ( void  )
static

◆ delete_breakpoint()

void delete_breakpoint ( struct breakpoint bpt)

◆ delete_command()

static void delete_command ( const char *  arg,
int  from_tty 
)
static

◆ delete_longjmp_breakpoint()

void delete_longjmp_breakpoint ( int  thread)

◆ delete_longjmp_breakpoint_at_next_stop()

void delete_longjmp_breakpoint_at_next_stop ( int  thread)

◆ delete_std_terminate_breakpoint()

void delete_std_terminate_breakpoint ( void  )

◆ delete_trace_command()

static void delete_trace_command ( const char *  arg,
int  from_tty 
)
static

◆ describe_other_breakpoints()

static void describe_other_breakpoints ( struct gdbarch gdbarch,
struct program_space pspace,
CORE_ADDR  pc,
struct obj_section section,
int  thread 
)
static

◆ detach_breakpoints()

int detach_breakpoints ( ptid_t  ptid)

◆ disable_breakpoint()

void disable_breakpoint ( struct breakpoint bpt)

◆ disable_breakpoints_before_startup()

void disable_breakpoints_before_startup ( void  )

◆ disable_breakpoints_in_freed_objfile()

static void disable_breakpoints_in_freed_objfile ( struct objfile objfile)
static

◆ disable_breakpoints_in_shlibs()

void disable_breakpoints_in_shlibs ( void  )

◆ disable_breakpoints_in_unloaded_shlib()

static void disable_breakpoints_in_unloaded_shlib ( struct so_list solib)
static

◆ disable_command()

static void disable_command ( const char *  args,
int  from_tty 
)
static

Definition at line 14415 of file breakpoint.c.

References enable_disable_command().

Referenced by _initialize_breakpoint(), and disable_trace_command().

◆ disable_overlay_breakpoints()

void disable_overlay_breakpoints ( void  )

◆ disable_trace_command()

static void disable_trace_command ( const char *  args,
int  from_tty 
)
static

Definition at line 14909 of file breakpoint.c.

References disable_command().

Referenced by _initialize_breakpoint().

◆ disable_watchpoints_before_interactive_call_start()

void disable_watchpoints_before_interactive_call_start ( void  )

◆ download_tracepoint_locations()

static void download_tracepoint_locations ( void  )
static

◆ dprintf_after_condition_true()

static void dprintf_after_condition_true ( struct bpstats bs)
static

Definition at line 13098 of file breakpoint.c.

References bpstat_do_actions_1(), bpstats::commands, and bpstats::stop.

Referenced by initialize_breakpoint_ops().

◆ dprintf_breakpoint_hit()

static int dprintf_breakpoint_hit ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

◆ dprintf_command()

static void dprintf_command ( const char *  arg,
int  from_tty 
)
static

◆ dprintf_print_recreate()

static void dprintf_print_recreate ( struct breakpoint tp,
struct ui_file fp 
)
static

◆ dprintf_re_set()

static void dprintf_re_set ( struct breakpoint b)
static

◆ enable_breakpoint()

void enable_breakpoint ( struct breakpoint bpt)

◆ enable_breakpoint_disp()

static void enable_breakpoint_disp ( struct breakpoint bpt,
enum bpdisp  disposition,
int  count 
)
static

◆ enable_breakpoints_after_startup()

void enable_breakpoints_after_startup ( void  )

◆ enable_command()

static void enable_command ( const char *  args,
int  from_tty 
)
static

Definition at line 14496 of file breakpoint.c.

References enable_disable_command().

Referenced by _initialize_breakpoint(), and enable_trace_command().

◆ enable_count_command()

static void enable_count_command ( const char *  args,
int  from_tty 
)
static

◆ enable_delete_command()

static void enable_delete_command ( const char *  args,
int  from_tty 
)
static

◆ enable_disable_bp_num_loc()

static void enable_disable_bp_num_loc ( int  bp_num,
int  loc_num,
bool  enable 
)
static

◆ enable_disable_breakpoint_location_range()

static void enable_disable_breakpoint_location_range ( int  bp_num,
std::pair< int, int > &  bp_loc_range,
bool  enable 
)
static

Definition at line 14317 of file breakpoint.c.

References enable, and enable_disable_bp_num_loc().

Referenced by enable_disable_command().

◆ enable_disable_command()

static void enable_disable_command ( const char *  args,
int  from_tty,
bool  enable 
)
static

◆ enable_once_command()

static void enable_once_command ( const char *  args,
int  from_tty 
)
static

◆ enable_overlay_breakpoints()

void enable_overlay_breakpoints ( void  )

◆ enable_trace_command()

static void enable_trace_command ( const char *  args,
int  from_tty 
)
static

Definition at line 14901 of file breakpoint.c.

References enable_command().

Referenced by _initialize_breakpoint().

◆ enable_watchpoints_after_interactive_call_stop()

void enable_watchpoints_after_interactive_call_stop ( void  )

◆ ep_parse_optional_if_clause()

const char* ep_parse_optional_if_clause ( const char **  arg)

Definition at line 11279 of file breakpoint.c.

References skip_spaces().

Referenced by catch_exception_command_1(), catch_exec_command_1(), and catch_fork_command_1().

◆ explains_signal_watchpoint()

static int explains_signal_watchpoint ( struct breakpoint b,
enum gdb_signal  sig 
)
static

Definition at line 10407 of file breakpoint.c.

References bp_watchpoint, and breakpoint::type.

Referenced by initialize_breakpoint_ops().

◆ extract_bitfield_from_watchpoint_value()

static struct value* extract_bitfield_from_watchpoint_value ( struct watchpoint w,
struct value val 
)
static

◆ extract_bp_num()

static int extract_bp_num ( extract_bp_kind  kind,
const char *  start,
int  trailer,
const char **  end_out = NULL 
)
static

Definition at line 14180 of file breakpoint.c.

References _, bp, error(), and get_number_trailer().

Referenced by extract_bp_number_and_location(), and extract_bp_or_bp_range().

◆ extract_bp_number_and_location()

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

Definition at line 14258 of file breakpoint.c.

References _, bp, error(), extract_bp_num(), extract_bp_or_bp_range(), and loc.

Referenced by enable_disable_command().

◆ extract_bp_or_bp_range()

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

Definition at line 14207 of file breakpoint.c.

References _, bp, error(), extract_bp_num(), and range.

Referenced by extract_bp_number_and_location().

◆ find_breakpoint_range_end()

static CORE_ADDR find_breakpoint_range_end ( struct symtab_and_line  sal)
static

◆ find_condition_and_thread()

static void find_condition_and_thread ( const char *  tok,
CORE_ADDR  pc,
char **  cond_string,
int *  thread,
int *  task,
char **  rest 
)
static

◆ find_location_by_number()

static struct bp_location* find_location_by_number ( int  bp_num,
int  loc_num 
)
static

◆ force_breakpoint_reinsertion()

static void force_breakpoint_reinsertion ( struct bp_location bl)
static

◆ free_bp_location()

static void free_bp_location ( struct bp_location loc)
static

Definition at line 7092 of file breakpoint.c.

References loc.

Referenced by decref_bp_location().

◆ free_breakpoint_objfile_data()

static void free_breakpoint_objfile_data ( struct objfile obj,
void *  data 
)
static

Definition at line 3204 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ ftrace_command()

static void ftrace_command ( const char *  arg,
int  from_tty 
)
static

◆ gdb_evaluates_breakpoint_condition_p()

static int gdb_evaluates_breakpoint_condition_p ( void  )
static

◆ get_breakpoint()

struct breakpoint* get_breakpoint ( int  num)

◆ get_breakpoint_objfile_data()

static struct breakpoint_objfile_data* get_breakpoint_objfile_data ( struct objfile objfile)
static

◆ get_first_locp_gte_addr()

static struct bp_location ** get_first_locp_gte_addr ( CORE_ADDR  address)
static

◆ get_sal_arch()

struct gdbarch* get_sal_arch ( struct symtab_and_line  sal)

◆ get_tracepoint()

struct tracepoint* get_tracepoint ( int  num)

◆ get_tracepoint_by_number()

struct tracepoint* get_tracepoint_by_number ( const char **  arg,
number_or_range_parser parser 
)

◆ get_tracepoint_by_number_on_target()

struct tracepoint* get_tracepoint_by_number_on_target ( int  num)

Definition at line 15034 of file breakpoint.c.

References ALL_TRACEPOINTS, and tracepoint::number_on_target.

Referenced by tfile_get_traceframe_address(), and tfind_1().

◆ handle_jit_event()

static void handle_jit_event ( void  )
static

◆ hardware_breakpoint_inserted_here_p()

int hardware_breakpoint_inserted_here_p ( const address_space aspace,
CORE_ADDR  pc 
)

◆ hardware_watchpoint_inserted_in_range()

int hardware_watchpoint_inserted_in_range ( const address_space aspace,
CORE_ADDR  addr,
ULONGEST  len 
)

◆ hbreak_command()

static void hbreak_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 9608 of file breakpoint.c.

References BP_HARDWAREFLAG, and break_command_1().

Referenced by _initialize_breakpoint(), and break_range_command().

◆ hoist_existing_locations()

static struct bp_location* hoist_existing_locations ( struct breakpoint b,
struct program_space pspace 
)
static

Definition at line 13606 of file breakpoint.c.

References breakpoint::loc, bp_location::next, and bp_location::pspace.

Referenced by update_breakpoint_locations().

◆ hw_breakpoint_used_count()

static int hw_breakpoint_used_count ( void  )
static

◆ hw_watchpoint_use_count()

static int hw_watchpoint_use_count ( struct breakpoint b)
static

◆ hw_watchpoint_used_count_others()

static int hw_watchpoint_used_count_others ( struct breakpoint except,
enum bptype  type,
int *  other_type_used 
)
static

◆ ignore_command()

static void ignore_command ( const char *  args,
int  from_tty 
)
static

◆ incref_bp_location()

static void incref_bp_location ( struct bp_location loc)
static

Definition at line 7101 of file breakpoint.c.

References bp_location::refc.

Referenced by bpstats::bpstats().

◆ info_breakpoints_command()

static void info_breakpoints_command ( const char *  args,
int  from_tty 
)
static

Definition at line 6676 of file breakpoint.c.

References breakpoint_1(), and default_collect_info().

Referenced by _initialize_breakpoint().

◆ info_tracepoints_command()

static void info_tracepoints_command ( const char *  args,
int  from_tty 
)
static

◆ info_watchpoints_command()

static void info_watchpoints_command ( const char *  args,
int  from_tty 
)
static

Definition at line 6684 of file breakpoint.c.

References breakpoint_1(), current_uiout, is_watchpoint(), and ui_out::message().

Referenced by _initialize_breakpoint().

◆ init_ada_exception_breakpoint()

void init_ada_exception_breakpoint ( struct breakpoint b,
struct gdbarch gdbarch,
struct symtab_and_line  sal,
const char *  addr_string,
const struct breakpoint_ops ops,
int  tempflag,
int  enabled,
int  from_tty 
)

◆ init_breakpoint_sal()

static void init_breakpoint_sal ( struct breakpoint b,
struct gdbarch gdbarch,
gdb::array_view< const symtab_and_line sals,
event_location_up &&  location,
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  ignore_count,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags,
int  display_canonical 
)
static

◆ init_catchpoint()

void init_catchpoint ( struct breakpoint b,
struct gdbarch gdbarch,
int  tempflag,
const char *  cond_string,
const struct breakpoint_ops ops 
)

◆ init_raw_breakpoint()

static void init_raw_breakpoint ( struct breakpoint b,
struct gdbarch gdbarch,
struct symtab_and_line  sal,
enum bptype  bptype,
const struct breakpoint_ops ops 
)
static

◆ init_raw_breakpoint_without_location()

static void init_raw_breakpoint_without_location ( struct breakpoint b,
struct gdbarch gdbarch,
enum bptype  bptype,
const struct breakpoint_ops ops 
)
static

◆ initialize_breakpoint_ops()

void initialize_breakpoint_ops ( void  )

Definition at line 15414 of file breakpoint.c.

References breakpoint_ops::after_condition_true, base_breakpoint_ops, bkpt_base_breakpoint_ops, bkpt_breakpoint_hit(), bkpt_breakpoint_ops, bkpt_create_breakpoints_sal(), bkpt_create_sals_from_location(), bkpt_decode_location(), bkpt_insert_location(), bkpt_print_it(), bkpt_print_mention(), bkpt_print_recreate(), bkpt_probe_breakpoint_ops, bkpt_probe_create_sals_from_location(), bkpt_probe_decode_location(), bkpt_probe_insert_location(), bkpt_probe_remove_location(), bkpt_re_set(), bkpt_remove_location(), bkpt_resources_needed(), breakpoint_ops::breakpoint_hit, breakpoint_hit_catch_exec(), breakpoint_hit_catch_fork(), breakpoint_hit_catch_solib(), breakpoint_hit_catch_vfork(), breakpoint_hit_ranged_breakpoint(), breakpoint_hit_watchpoint(), catch_exec_breakpoint_ops, catch_fork_breakpoint_ops, catch_solib_breakpoint_ops, catch_vfork_breakpoint_ops, breakpoint_ops::check_status, check_status_catch_solib(), check_status_watchpoint(), breakpoint_ops::create_breakpoints_sal, breakpoint_ops::create_sals_from_location, breakpoint_ops::decode_location, dprintf_after_condition_true(), dprintf_breakpoint_hit(), dprintf_breakpoint_ops, dprintf_print_recreate(), dprintf_re_set(), breakpoint_ops::explains_signal, explains_signal_watchpoint(), insert_catch_exec(), insert_catch_fork(), insert_catch_solib(), insert_catch_vfork(), breakpoint_ops::insert_location, insert_masked_watchpoint(), insert_watchpoint(), internal_bkpt_check_status(), internal_bkpt_print_it(), internal_bkpt_print_mention(), internal_bkpt_re_set(), internal_breakpoint_ops, masked_watchpoint_breakpoint_ops, momentary_bkpt_check_status(), momentary_bkpt_print_it(), momentary_bkpt_print_mention(), momentary_bkpt_re_set(), momentary_breakpoint_ops, breakpoint_ops::print_it, print_it_catch_exec(), print_it_catch_fork(), print_it_catch_solib(), print_it_catch_vfork(), print_it_masked_watchpoint(), print_it_ranged_breakpoint(), print_it_watchpoint(), breakpoint_ops::print_mention, print_mention_catch_exec(), print_mention_catch_fork(), print_mention_catch_solib(), print_mention_catch_vfork(), print_mention_masked_watchpoint(), print_mention_ranged_breakpoint(), print_mention_watchpoint(), breakpoint_ops::print_one, print_one_catch_exec(), print_one_catch_fork(), print_one_catch_solib(), print_one_catch_vfork(), breakpoint_ops::print_one_detail, print_one_detail_masked_watchpoint(), print_one_detail_ranged_breakpoint(), print_one_ranged_breakpoint(), breakpoint_ops::print_recreate, print_recreate_catch_exec(), print_recreate_catch_fork(), print_recreate_catch_solib(), print_recreate_catch_vfork(), print_recreate_masked_watchpoint(), print_recreate_ranged_breakpoint(), print_recreate_watchpoint(), ranged_breakpoint_ops, breakpoint_ops::re_set, re_set_watchpoint(), remove_catch_exec(), remove_catch_fork(), remove_catch_solib(), remove_catch_vfork(), breakpoint_ops::remove_location, remove_masked_watchpoint(), remove_watchpoint(), breakpoint_ops::resources_needed, resources_needed_masked_watchpoint(), resources_needed_ranged_breakpoint(), resources_needed_watchpoint(), strace_marker_breakpoint_ops, strace_marker_create_breakpoints_sal(), strace_marker_create_sals_from_location(), strace_marker_decode_location(), tracepoint_breakpoint_hit(), tracepoint_breakpoint_ops, tracepoint_create_breakpoints_sal(), tracepoint_create_sals_from_location(), tracepoint_decode_location(), tracepoint_print_mention(), tracepoint_print_one_detail(), tracepoint_print_recreate(), tracepoint_probe_breakpoint_ops, tracepoint_probe_create_sals_from_location(), tracepoint_probe_decode_location(), tracepoint_re_set(), watchpoint_breakpoint_ops, breakpoint_ops::works_in_software_mode, works_in_software_mode_masked_watchpoint(), and works_in_software_mode_watchpoint().

Referenced by _initialize_breakpoint(), initialize_ada_catchpoint_ops(), initialize_signal_catchpoint_ops(), initialize_syscall_catchpoint_ops(), and initialize_throw_catchpoint_ops().

◆ insert_bp_location()

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 
)
static

Definition at line 2440 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_hardware_breakpoint, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_software_breakpoint, breakpoint_kind(), build_target_command_list(), build_target_condition_list(), CATCH, disp_del_at_next_stop, breakpoint::disposition, bp_location::duplicate, breakpoint::enable_state, END_CATCH, gdb_exception::error, exception_none, fprintf_filtered(), fprintf_unfiltered(), gdb_assert, gdb_stdout, bp_location::gdbarch, GENERIC_ERROR, hw_access, hw_read, breakpoint_ops::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, memory_error_message(), gdb_exception::message, mem_attrib::mode, bp_location::needs_update, new_type(), breakpoint::number, observer_notify_breakpoint_modified(), breakpoint::ops, 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, gdb_exception::reason, bp_target_info::reqstd_address, RETURN_ERROR, RETURN_MASK_ALL, bp_location::section, section_is_mapped(), section_is_overlay(), shared_objfile_contains_address_p(), bp_location::shlib_disabled, should_be_inserted(), solib_name_from_address(), string, bp_location::target_info, target_insert_breakpoint(), TARGET_XFER_E_IO, TRY, breakpoint::type, warning(), watchpoint_locations_match(), and bp_location::watchpoint_type.

Referenced by insert_breakpoint_locations(), and update_inserted_breakpoint_locations().

◆ insert_breakpoint_locations()

static void insert_breakpoint_locations ( void  )
static

◆ insert_breakpoints()

void insert_breakpoints ( void  )

◆ insert_catch_exec()

static int insert_catch_exec ( struct bp_location bl)
static

Definition at line 8308 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_insert_exec_catchpoint.

Referenced by initialize_breakpoint_ops().

◆ insert_catch_fork()

static int insert_catch_fork ( struct bp_location bl)
static

Definition at line 7752 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_insert_fork_catchpoint.

Referenced by initialize_breakpoint_ops().

◆ insert_catch_solib()

static int insert_catch_solib ( struct bp_location ignore)
static

Definition at line 8002 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ insert_catch_vfork()

static int insert_catch_vfork ( struct bp_location bl)
static

Definition at line 7868 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_insert_vfork_catchpoint.

Referenced by initialize_breakpoint_ops().

◆ insert_masked_watchpoint()

static int insert_masked_watchpoint ( struct bp_location bl)
static

◆ insert_single_step_breakpoint()

void insert_single_step_breakpoint ( struct gdbarch gdbarch,
const address_space aspace,
CORE_ADDR  next_pc 
)

◆ insert_single_step_breakpoints()

int insert_single_step_breakpoints ( struct gdbarch gdbarch)

◆ insert_watchpoint()

static int insert_watchpoint ( struct bp_location bl)
static

◆ install_breakpoint()

void install_breakpoint ( int  internal,
std::unique_ptr< breakpoint > &&  arg,
int  update_gll 
)

◆ internal_bkpt_check_status()

static void internal_bkpt_check_status ( bpstat  bs)
static

◆ internal_bkpt_print_it()

static enum print_stop_action internal_bkpt_print_it ( bpstat  bs)
static

◆ internal_bkpt_print_mention()

static void internal_bkpt_print_mention ( struct breakpoint b)
static

Definition at line 12806 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ internal_bkpt_re_set()

static void internal_bkpt_re_set ( struct breakpoint b)
static

◆ invalidate_bp_value_on_memory_change()

static void invalidate_bp_value_on_memory_change ( struct inferior inferior,
CORE_ADDR  addr,
ssize_t  len,
const bfd_byte *  data 
)
static

◆ is_breakpoint()

int is_breakpoint ( const struct breakpoint bpt)

◆ is_catchpoint()

int is_catchpoint ( struct breakpoint ep)

Definition at line 4192 of file breakpoint.c.

References bp_catchpoint, and breakpoint::type.

Referenced by print_one_breakpoint_location(), and print_solib_event().

◆ is_hardware_watchpoint()

static int is_hardware_watchpoint ( const struct breakpoint bpt)
static

◆ is_longjmp_type()

static bool is_longjmp_type ( bptype  type)
static

Definition at line 1047 of file breakpoint.c.

References bp_exception, and bp_longjmp.

Referenced by new_breakpoint_from_type().

◆ is_masked_watchpoint()

static int is_masked_watchpoint ( const struct breakpoint b)
static

◆ is_no_memory_software_watchpoint()

static int is_no_memory_software_watchpoint ( struct breakpoint b)
static

◆ is_non_inline_function()

static int is_non_inline_function ( struct breakpoint b)
static

Definition at line 15365 of file breakpoint.c.

References bp_shlib_event, and breakpoint::type.

Referenced by pc_at_non_inline_function().

◆ is_tracepoint()

int is_tracepoint ( const struct breakpoint b)

◆ is_tracepoint_type()

static bool is_tracepoint_type ( bptype  type)
static

Definition at line 1039 of file breakpoint.c.

References bp_fast_tracepoint, bp_static_tracepoint, and bp_tracepoint.

Referenced by is_tracepoint(), and new_breakpoint_from_type().

◆ is_watchpoint()

int is_watchpoint ( const struct breakpoint bpt)

◆ iterate_over_bp_locations()

void iterate_over_bp_locations ( walk_bp_location_callback  callback)

Definition at line 2866 of file breakpoint.c.

References ALL_BP_LOCATIONS, and loc.

Referenced by record_full_init_record_breakpoints().

◆ iterate_over_breakpoints()

struct breakpoint* iterate_over_breakpoints ( int(*)(struct breakpoint *, void *)  callback,
void *  data 
)

◆ iterate_over_related_breakpoints()

static void iterate_over_related_breakpoints ( struct breakpoint b,
gdb::function_view< void(breakpoint *)>  function 
)
static

◆ location_to_sals()

static std::vector<symtab_and_line> location_to_sals ( struct breakpoint b,
struct event_location location,
struct program_space search_pspace,
int *  found 
)
static

◆ locations_are_equal()

static int locations_are_equal ( struct bp_location a,
struct bp_location b 
)
static

◆ maintenance_info_breakpoints()

static void maintenance_info_breakpoints ( const char *  args,
int  from_tty 
)
static

Definition at line 6699 of file breakpoint.c.

References breakpoint_1(), and default_collect_info().

Referenced by _initialize_breakpoint().

◆ map_breakpoint_number_range()

static void map_breakpoint_number_range ( std::pair< int, int >  bp_num_range,
gdb::function_view< void(breakpoint *)>  function 
)
static

◆ map_breakpoint_numbers()

static void map_breakpoint_numbers ( const char *  args,
gdb::function_view< void(breakpoint *)>  function 
)
static

◆ mark_breakpoint_location_modified()

static void mark_breakpoint_location_modified ( struct bp_location loc)
static

◆ mark_breakpoint_modified()

static void mark_breakpoint_modified ( struct breakpoint b)
static

◆ mark_breakpoints_out()

void mark_breakpoints_out ( void  )

◆ maybe_print_thread_hit_breakpoint()

void maybe_print_thread_hit_breakpoint ( struct ui_out uiout)

◆ mention()

static void mention ( struct breakpoint b)
static

◆ momentary_bkpt_check_status()

static void momentary_bkpt_check_status ( bpstat  bs)
static

Definition at line 12823 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ momentary_bkpt_print_it()

static enum print_stop_action momentary_bkpt_print_it ( bpstat  bs)
static

Definition at line 12829 of file breakpoint.c.

References PRINT_UNKNOWN.

Referenced by initialize_breakpoint_ops().

◆ momentary_bkpt_print_mention()

static void momentary_bkpt_print_mention ( struct breakpoint b)
static

Definition at line 12835 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ momentary_bkpt_re_set()

static void momentary_bkpt_re_set ( struct breakpoint b)
static

Definition at line 12814 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ momentary_breakpoint_from_master()

static struct breakpoint * momentary_breakpoint_from_master ( struct breakpoint orig,
enum bptype  type,
const struct breakpoint_ops ops,
int  loc_enabled 
)
static

◆ moribund_breakpoint_here_p()

int moribund_breakpoint_here_p ( const address_space aspace,
CORE_ADDR  pc 
)

Definition at line 4056 of file breakpoint.c.

References breakpoint_location_address_match(), loc, and VEC_iterate.

Referenced by adjust_pc_after_break().

◆ msym_not_found_p()

static int msym_not_found_p ( const struct minimal_symbol msym)
static

◆ need_moribund_for_location_type()

static int need_moribund_for_location_type ( struct bp_location loc)
static

◆ new_breakpoint_from_type()

static std::unique_ptr<breakpoint> new_breakpoint_from_type ( bptype  type)
static

◆ new_single_step_breakpoint()

static struct breakpoint* new_single_step_breakpoint ( int  thread,
struct gdbarch gdbarch 
)
static

◆ new_until_break_fsm()

static struct until_break_fsm* new_until_break_fsm ( struct interp cmd_interp,
int  thread,
breakpoint_up &&  location_breakpoint,
breakpoint_up &&  caller_breakpoint 
)
static

◆ one_breakpoint_xfer_memory()

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 
)
static

◆ output_thread_groups()

static void output_thread_groups ( struct ui_out uiout,
const char *  field_name,
const std::vector< int > &  inf_nums,
int  mi_only 
)
static

◆ parse_breakpoint_sals()

static void parse_breakpoint_sals ( const struct event_location location,
struct linespec_result canonical 
)
static

◆ parse_cmd_to_aexpr()

static agent_expr_up parse_cmd_to_aexpr ( CORE_ADDR  scope,
char *  cmd 
)
static

◆ parse_cond_to_aexpr()

static agent_expr_up parse_cond_to_aexpr ( CORE_ADDR  scope,
struct expression cond 
)
static

◆ pc_at_non_inline_function()

int pc_at_non_inline_function ( const address_space aspace,
CORE_ADDR  pc,
const struct target_waitstatus ws 
)

◆ pending_breakpoint_p()

int pending_breakpoint_p ( struct breakpoint b)

Definition at line 6501 of file breakpoint.c.

References breakpoint::loc.

Referenced by bppy_get_pending().

◆ print_bp_stop_message()

static enum print_stop_action print_bp_stop_message ( bpstat  bs)
static

◆ print_breakpoint()

void print_breakpoint ( breakpoint b)

Definition at line 6483 of file breakpoint.c.

References print_one_breakpoint().

Referenced by breakpoint_notify(), and mi_print_breakpoint_for_event().

◆ print_breakpoint_location()

static void print_breakpoint_location ( struct breakpoint b,
struct bp_location loc 
)
static

◆ print_it_catch_exec()

static enum print_stop_action print_it_catch_exec ( bpstat  bs)
static

◆ print_it_catch_fork()

static enum print_stop_action print_it_catch_fork ( bpstat  bs)
static

◆ print_it_catch_solib()

static enum print_stop_action print_it_catch_solib ( bpstat  bs)
static

◆ print_it_catch_vfork()

static enum print_stop_action print_it_catch_vfork ( bpstat  bs)
static

◆ print_it_masked_watchpoint()

static enum print_stop_action print_it_masked_watchpoint ( bpstat  bs)
static

◆ print_it_ranged_breakpoint()

static enum print_stop_action print_it_ranged_breakpoint ( bpstat  bs)
static

◆ print_it_watchpoint()

static enum print_stop_action print_it_watchpoint ( bpstat  bs)
static

◆ print_mention_catch_exec()

static void print_mention_catch_exec ( struct breakpoint b)
static

Definition at line 8387 of file breakpoint.c.

References _, breakpoint::number, and printf_filtered().

Referenced by initialize_breakpoint_ops().

◆ print_mention_catch_fork()

static void print_mention_catch_fork ( struct breakpoint b)
static

Definition at line 7845 of file breakpoint.c.

References _, breakpoint::number, and printf_filtered().

Referenced by initialize_breakpoint_ops().

◆ print_mention_catch_solib()

static void print_mention_catch_solib ( struct breakpoint b)
static

Definition at line 8149 of file breakpoint.c.

References _, breakpoint::number, and printf_filtered().

Referenced by initialize_breakpoint_ops().

◆ print_mention_catch_vfork()

static void print_mention_catch_vfork ( struct breakpoint b)
static

Definition at line 7960 of file breakpoint.c.

References _, breakpoint::number, and printf_filtered().

Referenced by initialize_breakpoint_ops().

◆ print_mention_masked_watchpoint()

static void print_mention_masked_watchpoint ( struct breakpoint b)
static

◆ print_mention_ranged_breakpoint()

static void print_mention_ranged_breakpoint ( struct breakpoint b)
static

◆ print_mention_watchpoint()

static void print_mention_watchpoint ( struct breakpoint b)
static

◆ print_one_breakpoint()

static void print_one_breakpoint ( struct breakpoint b,
struct bp_location **  last_loc,
int  allflag 
)
static

◆ print_one_breakpoint_location()

static void print_one_breakpoint_location ( struct breakpoint b,
struct bp_location loc,
int  loc_number,
struct bp_location **  last_loc,
int  allflag 
)
static

Definition at line 6055 of file breakpoint.c.

References _, bp_location::address, value_print_options::addressprint, ALL_INFERIORS, annotate_field(), annotate_record(), bp_access_watchpoint, bp_breakpoint, bp_call_dummy, bp_catchpoint, bp_condition_evaluator(), bp_dprintf, bp_exception, bp_exception_master, bp_exception_resume, bp_fast_tracepoint, bp_finish, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_none, bp_overlay_event, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, bp_watchpoint_scope, bpdisp_text(), bptype_string(), breakpoint_condition_evaluation_mode(), breakpoint::commands, breakpoint::cond_string, condition_evaluation_target, current_uiout, breakpoint::disposition, breakpoint::enable_count, breakpoint::enable_state, bp_location::enabled, event_location_to_string(), watchpoint::exp_string, ui_out::field_core_addr(), ui_out::field_fmt(), ui_out::field_int(), ui_out::field_skip(), ui_out::field_string(), find_thread_global_id(), breakpoint::frame_id, frame_id_p(), gdb_assert, bp_location::gdbarch, breakpoint::gdbarch, gdbarch_has_global_breakpoints(), get_user_print_options(), breakpoint::hit_count, breakpoint::ignore_count, arm-linux::inf, bp_location::inserted, internal_error(), is_breakpoint(), is_catchpoint(), ui_out::is_mi_like_p(), is_tracepoint(), is_watchpoint(), breakpoint::loc, loc, breakpoint::location, bp_location::next, breakpoint::number, number_of_inferiors(), number_of_program_spaces(), breakpoint::ops, output_thread_groups(), tracepoint::pass_count, print_breakpoint_location(), print_command_lines(), breakpoint_ops::print_one, breakpoint_ops::print_one_detail, print_thread_id(), bp_location::shlib_disabled, ui_out::spaces(), frame_id::stack_addr, target_gdbarch(), breakpoint::task, ui_out::text(), breakpoint::thread, tracepoint::traceframe_usage, breakpoint::type, xfree(), and xstrprintf().

Referenced by print_one_breakpoint().

◆ print_one_catch_exec()

static void print_one_catch_exec ( struct breakpoint b,
struct bp_location **  last_loc 
)
static

◆ print_one_catch_fork()

static void print_one_catch_fork ( struct breakpoint b,
struct bp_location **  last_loc 
)
static

◆ print_one_catch_solib()

static void print_one_catch_solib ( struct breakpoint b,
struct bp_location **  locs 
)
static

◆ print_one_catch_vfork()

static void print_one_catch_vfork ( struct breakpoint b,
struct bp_location **  last_loc 
)
static

◆ print_one_detail_masked_watchpoint()

static void print_one_detail_masked_watchpoint ( const struct breakpoint b,
struct ui_out uiout 
)
static

◆ print_one_detail_ranged_breakpoint()

static void print_one_detail_ranged_breakpoint ( const struct breakpoint b,
struct ui_out uiout 
)
static

◆ print_one_ranged_breakpoint()

static void print_one_ranged_breakpoint ( struct breakpoint b,
struct bp_location **  last_loc 
)
static

◆ print_recreate_catch_exec()

static void print_recreate_catch_exec ( struct breakpoint b,
struct ui_file fp 
)
static

Definition at line 8396 of file breakpoint.c.

References fprintf_unfiltered(), and print_recreate_thread().

Referenced by initialize_breakpoint_ops().

◆ print_recreate_catch_fork()

static void print_recreate_catch_fork ( struct breakpoint b,
struct ui_file fp 
)
static

Definition at line 7854 of file breakpoint.c.

References fprintf_unfiltered(), and print_recreate_thread().

Referenced by initialize_breakpoint_ops().

◆ print_recreate_catch_solib()

static void print_recreate_catch_solib ( struct breakpoint b,
struct ui_file fp 
)
static

Definition at line 8158 of file breakpoint.c.

References disp_del, breakpoint::disposition, and fprintf_unfiltered().

Referenced by initialize_breakpoint_ops().

◆ print_recreate_catch_vfork()

static void print_recreate_catch_vfork ( struct breakpoint b,
struct ui_file fp 
)
static

Definition at line 7969 of file breakpoint.c.

References fprintf_unfiltered(), and print_recreate_thread().

Referenced by initialize_breakpoint_ops().

◆ print_recreate_masked_watchpoint()

static void print_recreate_masked_watchpoint ( struct breakpoint b,
struct ui_file fp 
)
static

◆ print_recreate_ranged_breakpoint()

static void print_recreate_ranged_breakpoint ( struct breakpoint b,
struct ui_file fp 
)
static

◆ print_recreate_thread()

void print_recreate_thread ( struct breakpoint b,
struct ui_file fp 
)

◆ print_recreate_watchpoint()

static void print_recreate_watchpoint ( struct breakpoint b,
struct ui_file fp 
)
static

◆ print_solib_event()

static void print_solib_event ( int  is_catchpoint)
static

◆ program_breakpoint_here_p()

int program_breakpoint_here_p ( struct gdbarch gdbarch,
CORE_ADDR  address 
)

◆ re_set_watchpoint()

static void re_set_watchpoint ( struct breakpoint b)
static

Definition at line 10140 of file breakpoint.c.

References update_watchpoint().

Referenced by initialize_breakpoint_ops().

◆ read_uploaded_action()

static char* read_uploaded_action ( void  )
static

Definition at line 14774 of file breakpoint.c.

References next_cmd, this_utp, and VEC_iterate.

Referenced by create_tracepoint_from_upload().

◆ remove_breakpoint()

static int remove_breakpoint ( struct bp_location bl)
static

◆ remove_breakpoint_1()

static int remove_breakpoint_1 ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

◆ remove_breakpoints()

int remove_breakpoints ( void  )

◆ remove_breakpoints_pid()

int remove_breakpoints_pid ( int  pid)

◆ remove_catch_exec()

static int remove_catch_exec ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

Definition at line 8314 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_remove_exec_catchpoint.

Referenced by initialize_breakpoint_ops().

◆ remove_catch_fork()

static int remove_catch_fork ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

Definition at line 7761 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_remove_fork_catchpoint.

Referenced by initialize_breakpoint_ops().

◆ remove_catch_solib()

static int remove_catch_solib ( struct bp_location ignore,
enum remove_bp_reason  reason 
)
static

Definition at line 8008 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ remove_catch_vfork()

static int remove_catch_vfork ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

Definition at line 7877 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_remove_vfork_catchpoint.

Referenced by initialize_breakpoint_ops().

◆ remove_jit_event_breakpoints()

void remove_jit_event_breakpoints ( void  )

◆ remove_masked_watchpoint()

static int remove_masked_watchpoint ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

◆ remove_solib_event_breakpoints()

void remove_solib_event_breakpoints ( void  )

◆ remove_solib_event_breakpoints_at_next_stop()

void remove_solib_event_breakpoints_at_next_stop ( void  )

◆ remove_threaded_breakpoints()

static void remove_threaded_breakpoints ( struct thread_info tp,
int  silent 
)
static

◆ remove_watchpoint()

static int remove_watchpoint ( struct bp_location bl,
enum remove_bp_reason  reason 
)
static

◆ resolve_sal_pc()

void resolve_sal_pc ( struct symtab_and_line sal)

◆ resources_needed_masked_watchpoint()

static int resources_needed_masked_watchpoint ( const struct bp_location bl)
static

◆ resources_needed_ranged_breakpoint()

static int resources_needed_ranged_breakpoint ( const struct bp_location bl)
static

Definition at line 9755 of file breakpoint.c.

References target_ranged_break_num_registers().

Referenced by initialize_breakpoint_ops().

◆ resources_needed_watchpoint()

static int resources_needed_watchpoint ( const struct bp_location bl)
static

◆ rwatch_command()

static void rwatch_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 11046 of file breakpoint.c.

References hw_read, and watch_maybe_just_location().

Referenced by _initialize_breakpoint().

◆ rwatch_command_wrapper()

void rwatch_command_wrapper ( const char *  arg,
int  from_tty,
int  internal 
)

Definition at line 11040 of file breakpoint.c.

References hw_read, and watch_command_1().

Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().

◆ save_breakpoints()

static void save_breakpoints ( const char *  filename,
int  from_tty,
int(*)(const struct breakpoint *)  filter 
)
static

◆ save_breakpoints_command()

static void save_breakpoints_command ( const char *  args,
int  from_tty 
)
static

Definition at line 15228 of file breakpoint.c.

References save_breakpoints().

Referenced by _initialize_breakpoint().

◆ save_command()

static void save_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 15339 of file breakpoint.c.

References _, all_commands, gdb_stdout, help_list(), printf_unfiltered(), and save_cmdlist.

Referenced by _initialize_breakpoint().

◆ save_tracepoints_command()

static void save_tracepoints_command ( const char *  args,
int  from_tty 
)
static

Definition at line 15236 of file breakpoint.c.

References is_tracepoint(), and save_breakpoints().

Referenced by _initialize_breakpoint().

◆ say_where()

static void say_where ( struct breakpoint b)
static

◆ set_breakpoint_cmd()

static void set_breakpoint_cmd ( const char *  args,
int  from_tty 
)
static

Definition at line 14551 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ set_breakpoint_condition()

void set_breakpoint_condition ( struct breakpoint b,
const char *  exp,
int  from_tty 
)

◆ set_breakpoint_count()

static void set_breakpoint_count ( int  num)
static

Definition at line 609 of file breakpoint.c.

References lookup_internalvar(), and set_internalvar_integer().

Referenced by break_range_command(), and set_breakpoint_number().

◆ set_breakpoint_location_function()

static void set_breakpoint_location_function ( struct bp_location loc,
int  explicit_loc 
)
static

◆ set_breakpoint_number()

static void set_breakpoint_number ( int  internal,
struct breakpoint b 
)
static

Definition at line 3108 of file breakpoint.c.

References internal_breakpoint_number, breakpoint::number, and set_breakpoint_count().

Referenced by install_breakpoint().

◆ set_condition_evaluation_mode()

static void set_condition_evaluation_mode ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

◆ set_ignore_count()

void set_ignore_count ( int  bptnum,
int  count,
int  from_tty 
)

◆ set_longjmp_breakpoint()

void set_longjmp_breakpoint ( struct thread_info tp,
struct frame_id  frame 
)

◆ set_longjmp_breakpoint_for_call_dummy()

struct breakpoint* set_longjmp_breakpoint_for_call_dummy ( void  )

◆ set_momentary_breakpoint()

breakpoint_up set_momentary_breakpoint ( struct gdbarch gdbarch,
struct symtab_and_line  sal,
struct frame_id frame_id  ,
enum bptype  type 
)

◆ set_momentary_breakpoint_at_pc()

breakpoint_up set_momentary_breakpoint_at_pc ( struct gdbarch gdbarch,
CORE_ADDR  pc,
enum bptype  type 
)

◆ set_raw_breakpoint()

struct breakpoint* set_raw_breakpoint ( struct gdbarch gdbarch,
struct symtab_and_line  sal,
enum bptype bptype  ,
const struct breakpoint_ops ops 
)

◆ set_raw_breakpoint_without_location()

static struct breakpoint* set_raw_breakpoint_without_location ( struct gdbarch gdbarch,
enum bptype bptype  ,
const struct breakpoint_ops ops 
)
static

◆ set_std_terminate_breakpoint()

void set_std_terminate_breakpoint ( void  )

◆ set_tracepoint_count()

static void set_tracepoint_count ( int  num)
static

Definition at line 14683 of file breakpoint.c.

References lookup_internalvar(), and set_internalvar_integer().

Referenced by install_breakpoint().

◆ should_be_inserted()

static int should_be_inserted ( struct bp_location bl)
static

◆ show_always_inserted_mode()

static void show_always_inserted_mode ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 381 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

◆ show_automatic_hardware_breakpoints()

static void show_automatic_hardware_breakpoints ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 362 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

◆ show_breakpoint_cmd()

static void show_breakpoint_cmd ( const char *  args,
int  from_tty 
)
static

Definition at line 14556 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ show_can_use_hw_watchpoints()

static void show_can_use_hw_watchpoints ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 330 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

◆ show_condition_evaluation_mode()

static void show_condition_evaluation_mode ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

◆ show_pending_break_support()

static void show_pending_break_support ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
)
static

Definition at line 346 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

◆ single_step_breakpoint_inserted_here_p()

int single_step_breakpoint_inserted_here_p ( const address_space aspace,
CORE_ADDR  pc 
)

◆ software_breakpoint_inserted_here_p()

int software_breakpoint_inserted_here_p ( const address_space aspace,
CORE_ADDR  pc 
)

◆ software_watchpoint_add_no_memory_location()

static void software_watchpoint_add_no_memory_location ( struct breakpoint b,
struct program_space pspace 
)
static

◆ stop_command()

static void stop_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 9620 of file breakpoint.c.

References _, and printf_filtered().

Referenced by _initialize_breakpoint().

◆ stopat_command()

static void stopat_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 9661 of file breakpoint.c.

References _, break_command_1(), and printf_filtered().

Referenced by _initialize_breakpoint().

◆ stopin_command()

static void stopin_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 9628 of file breakpoint.c.

References _, break_command_1(), and printf_filtered().

Referenced by _initialize_breakpoint().

◆ strace_command()

static void strace_command ( const char *  arg,
int  from_tty 
)
static

◆ strace_marker_create_breakpoints_sal()

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  ignore_count,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)
static

◆ strace_marker_create_sals_from_location()

static void strace_marker_create_sals_from_location ( const struct event_location location,
struct linespec_result canonical,
enum bptype  type_wanted 
)
static

◆ strace_marker_decode_location()

static std::vector<symtab_and_line> strace_marker_decode_location ( struct breakpoint b,
const struct event_location location,
struct program_space search_pspace 
)
static

◆ strace_marker_p()

static int strace_marker_p ( struct breakpoint b)
static

Definition at line 13217 of file breakpoint.c.

References breakpoint::ops, and strace_marker_breakpoint_ops.

Referenced by init_breakpoint_sal(), and location_to_sals().

◆ swap_insertion()

static void swap_insertion ( struct bp_location left,
struct bp_location right 
)
static

◆ tbreak_command()

void tbreak_command ( const char *  arg,
int  from_tty 
)

Definition at line 9602 of file breakpoint.c.

References BP_TEMPFLAG, and break_command_1().

Referenced by _initialize_breakpoint(), and run_command_1().

◆ tcatch_command()

static void tcatch_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 11435 of file breakpoint.c.

References _, and error().

Referenced by _initialize_breakpoint().

◆ thbreak_command()

static void thbreak_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 9614 of file breakpoint.c.

References BP_HARDWAREFLAG, BP_TEMPFLAG, and break_command_1().

Referenced by _initialize_breakpoint().

◆ trace_command()

static void trace_command ( const char *  arg,
int  from_tty 
)
static

◆ trace_pass_command()

static void trace_pass_command ( const char *  args,
int  from_tty 
)
static

◆ trace_pass_set_count()

static void trace_pass_set_count ( struct tracepoint tp,
int  count,
int  from_tty 
)
static

◆ tracepoint_breakpoint_hit()

static int tracepoint_breakpoint_hit ( const struct bp_location bl,
const address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

Definition at line 12913 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ tracepoint_create_breakpoints_sal()

static void tracepoint_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  ignore_count,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)
static

◆ tracepoint_create_sals_from_location()

static void tracepoint_create_sals_from_location ( const struct event_location location,
struct linespec_result canonical,
enum bptype  type_wanted 
)
static

Definition at line 12990 of file breakpoint.c.

References create_sals_from_location_default(), and breakpoint::location.

Referenced by initialize_breakpoint_ops().

◆ tracepoint_decode_location()

static std::vector<symtab_and_line> tracepoint_decode_location ( struct breakpoint b,
const struct event_location location,
struct program_space search_pspace 
)
static

Definition at line 13020 of file breakpoint.c.

References decode_location_default(), and breakpoint::location.

Referenced by initialize_breakpoint_ops().

◆ tracepoint_locations_match()

static int tracepoint_locations_match ( struct bp_location loc1,
struct bp_location loc2 
)
static

Definition at line 6907 of file breakpoint.c.

References bp_location::address, is_tracepoint(), and bp_location::owner.

Referenced by breakpoint_locations_match().

◆ tracepoint_print_mention()

static void tracepoint_print_mention ( struct breakpoint b)
static

◆ tracepoint_print_one_detail()

static void tracepoint_print_one_detail ( const struct breakpoint self,
struct ui_out uiout 
)
static

◆ tracepoint_print_recreate()

static void tracepoint_print_recreate ( struct breakpoint self,
struct ui_file fp 
)
static

◆ tracepoint_probe_create_sals_from_location()

static void tracepoint_probe_create_sals_from_location ( const struct event_location location,
struct linespec_result canonical,
enum bptype  type_wanted 
)
static

Definition at line 13034 of file breakpoint.c.

References bkpt_probe_create_sals_from_location().

Referenced by initialize_breakpoint_ops().

◆ tracepoint_probe_decode_location()

static std::vector<symtab_and_line> tracepoint_probe_decode_location ( struct breakpoint b,
const struct event_location location,
struct program_space search_pspace 
)
static

Definition at line 13043 of file breakpoint.c.

References bkpt_probe_decode_location().

Referenced by initialize_breakpoint_ops().

◆ tracepoint_re_set()

static void tracepoint_re_set ( struct breakpoint b)
static

Definition at line 12907 of file breakpoint.c.

References breakpoint_re_set_default().

Referenced by initialize_breakpoint_ops().

◆ translate_condition_evaluation_mode()

static const char* translate_condition_evaluation_mode ( const char *  mode)
static

◆ unduplicated_should_be_inserted()

static int unduplicated_should_be_inserted ( struct bp_location bl)
static

Definition at line 2081 of file breakpoint.c.

References bp_location::duplicate, and should_be_inserted().

Referenced by update_global_location_list().

◆ until_break_command()

void until_break_command ( const char *  arg,
int  from_tty,
int  anywhere 
)

◆ until_break_fsm_async_reply_reason()

static enum async_reply_reason until_break_fsm_async_reply_reason ( struct thread_fsm self)
static

Definition at line 11167 of file breakpoint.c.

References EXEC_ASYNC_LOCATION_REACHED.

◆ until_break_fsm_clean_up()

static void until_break_fsm_clean_up ( struct thread_fsm self,
struct thread_info thread 
)
static

◆ until_break_fsm_should_stop()

static int until_break_fsm_should_stop ( struct thread_fsm self,
struct thread_info thread 
)
static

◆ update_breakpoint_locations()

void update_breakpoint_locations ( struct breakpoint b,
struct program_space filter_pspace,
gdb::array_view< const symtab_and_line sals,
gdb::array_view< const symtab_and_line sals_end 
)

◆ update_breakpoints_after_exec()

void update_breakpoints_after_exec ( void  )

◆ update_dprintf_command_list()

static void update_dprintf_command_list ( struct breakpoint b)
static

◆ update_dprintf_commands()

static void update_dprintf_commands ( const char *  args,
int  from_tty,
struct cmd_list_element c 
)
static

◆ update_global_location_list()

static void update_global_location_list ( enum ugll_insert_mode  insert_mode)
static

Definition at line 11853 of file breakpoint.c.

References _, bp_location::address, ALL_BP_LOCATIONS, ALL_BREAKPOINTS, bp_access_watchpoint, bp_hardware_watchpoint, bp_locations, bp_locations_compare(), bp_locations_count, bp_locations_target_extensions_update(), bp_read_watchpoint, breakpoint_address_is_meaningful(), breakpoint_locations_match(), breakpoints_should_be_inserted_now(), condition_modified, condition_unchanged, decref_bp_location(), download_tracepoint_locations(), bp_location::events_till_retirement, force_breakpoint_reinsertion(), gdb_assert, insert_breakpoint_locations(), bp_location::inserted, is_breakpoint(), is_hardware_watchpoint(), is_tracepoint(), breakpoint::loc, loc, need_moribund_for_location_type(), program_space::num, breakpoint::number, overlay_debugging, bp_location::owner, printf_filtered(), bp_location::pspace, qsort, remove_breakpoint(), should_be_inserted(), swap_insertion(), target_is_non_stop_p(), thread_count(), breakpoint::type, UGLL_DONT_INSERT, UGLL_INSERT, unduplicated_should_be_inserted(), update_inserted_breakpoint_locations(), VEC_safe_push, bp_location::watchpoint_type, and XNEWVEC.

Referenced by bpstat_stop_status(), break_range_command(), breakpoint_program_space_exit(), breakpoint_re_set(), condition_command(), 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_num_loc(), enable_overlay_breakpoints(), enable_watchpoints_after_interactive_call_stop(), insert_breakpoints(), insert_single_step_breakpoint(), install_breakpoint(), set_condition_evaluation_mode(), and update_global_location_list_nothrow().

◆ update_global_location_list_nothrow()

static void update_global_location_list_nothrow ( enum ugll_insert_mode  insert_mode)
static

◆ update_inserted_breakpoint_locations()

static void update_inserted_breakpoint_locations ( void  )
static

◆ update_static_tracepoint()

static struct symtab_and_line update_static_tracepoint ( struct breakpoint b,
struct symtab_and_line  sal 
)
static

◆ update_watchpoint()

static void update_watchpoint ( struct watchpoint b,
int  reparse 
)
static

Definition at line 1680 of file breakpoint.c.

References _, address_significant(), allocate_bp_location(), bp_access_watchpoint, bp_hardware_watchpoint, bp_loc_hardware_watchpoint, bp_loc_other, bp_read_watchpoint, bp_watchpoint, can_use_hardware_watchpoint(), can_use_hw_watchpoints, check_typedef(), watchpoint::cond_exp, watchpoint::cond_exp_valid_block, breakpoint::cond_string, disp_del_at_next_stop, breakpoint::disposition, error(), watchpoint::exact, watchpoint::exp, watchpoint::exp_string, watchpoint::exp_string_reparse, watchpoint::exp_valid_block, extract_bitfield_from_watchpoint_value(), fetch_subexp_value(), frame_find_by_id(), gdbarch_stack_frame_destroyed_p(), get_current_frame(), get_frame_arch(), get_frame_id(), get_frame_pc(), get_frame_program_space(), get_selected_frame(), get_type_arch(), hw_access, hw_read, hw_watchpoint_use_count(), hw_watchpoint_used_count_others(), hw_write, is_masked_watchpoint(), breakpoint::loc, loc, bp_location::loc_type, lval_memory, value::next, bp_location::next, breakpoint::number, breakpoint::ops, parse_exp_1(), printf_filtered(), release_value(), select_frame(), software_watchpoint_add_no_memory_location(), target_can_use_hardware_watchpoint, target_exact_watchpoints, target_has_execution, type, breakpoint::type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRUCT, TYPE_LENGTH, watchpoint::val, watchpoint::val_bitpos, watchpoint::val_bitsize, watchpoint::val_valid, value_address(), value_bitpos(), value_bitsize(), value_free(), value_lazy(), VALUE_LVAL, value_next(), value_type(), watchpoint_del_at_next_stop(), watchpoint::watchpoint_frame, watchpoint_in_thread_scope(), and breakpoint_ops::works_in_software_mode.

Referenced by bpstat_stop_status(), enable_breakpoint_disp(), insert_breakpoints(), re_set_watchpoint(), and watch_command_1().

◆ user_breakpoint_p()

int user_breakpoint_p ( struct breakpoint b)

◆ validate_commands_for_breakpoint()

static void validate_commands_for_breakpoint ( struct breakpoint b,
struct command_line commands 
)
static

◆ VEC() [1/2]

VEC ( bp_location_p  )

Definition at line 562 of file breakpoint.c.

References ALL_BREAKPOINTS, and func.

Referenced by decode_static_tracepoint_spec(), update_static_tracepoint(), and VEC().

◆ VEC() [2/2]

VEC ( breakpoint_p  )

◆ watch_command()

static void watch_command ( const char *  arg,
int  from_tty 
)
static

Definition at line 11034 of file breakpoint.c.

References hw_write, and watch_maybe_just_location().

Referenced by _initialize_breakpoint().

◆ watch_command_1()

static void watch_command_1 ( const char *  arg,
int  accessflag,
int  from_tty,
int  just_location,
int  internal 
)
static

◆ watch_command_wrapper()

void watch_command_wrapper ( const char *  arg,
int  from_tty,
int  internal 
)

Definition at line 11009 of file breakpoint.c.

References hw_write, and watch_command_1().

Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().

◆ watch_maybe_just_location()

static void watch_maybe_just_location ( const char *  arg,
int  accessflag,
int  from_tty 
)
static

Definition at line 11018 of file breakpoint.c.

References check_for_argument(), skip_spaces(), and watch_command_1().

Referenced by awatch_command(), rwatch_command(), and watch_command().

◆ watchpoint_check()

static wp_check_result watchpoint_check ( bpstat  bs)
static

◆ watchpoint_del_at_next_stop()

static void watchpoint_del_at_next_stop ( struct watchpoint w)
static

◆ watchpoint_exp_is_const()

static int watchpoint_exp_is_const ( const struct expression exp)
static

◆ watchpoint_in_thread_scope()

static int watchpoint_in_thread_scope ( struct watchpoint b)
static

◆ watchpoint_locations_match()

static int watchpoint_locations_match ( struct bp_location loc1,
struct bp_location loc2 
)
static

◆ watchpoint_value_print()

static void watchpoint_value_print ( struct value val,
struct ui_file stream 
)
static

Definition at line 4516 of file breakpoint.c.

References _, fprintf_unfiltered(), get_user_print_options(), and value_print().

Referenced by print_it_watchpoint().

◆ watchpoints_triggered()

int watchpoints_triggered ( struct target_waitstatus ws)

◆ works_in_software_mode_masked_watchpoint()

static int works_in_software_mode_masked_watchpoint ( const struct breakpoint b)
static

Definition at line 10460 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ works_in_software_mode_watchpoint()

static int works_in_software_mode_watchpoint ( const struct breakpoint b)
static

Definition at line 10241 of file breakpoint.c.

References bp_hardware_watchpoint, bp_watchpoint, and breakpoint::type.

Referenced by initialize_breakpoint_ops().

◆ wrap_indent_at_field()

static char* wrap_indent_at_field ( struct ui_out uiout,
const char *  col_name 
)
static

Definition at line 5796 of file breakpoint.c.

References gdb_assert, memset(), ui_out::query_table_field(), and wrap_indent.

Referenced by print_breakpoint_location().

Variable Documentation

◆ always_inserted_mode

int always_inserted_mode = 0
static

Definition at line 378 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and breakpoints_should_be_inserted_now().

◆ automatic_hardware_breakpoints

int automatic_hardware_breakpoints
static

Definition at line 360 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and insert_bp_location().

◆ base_breakpoint_ops

struct breakpoint_ops base_breakpoint_ops
Initial value:
=
{
NULL,
}
static int base_breakpoint_explains_signal(struct breakpoint *b, enum gdb_signal sig)
Definition: breakpoint.c:12463
static void base_breakpoint_re_set(struct breakpoint *b)
Definition: breakpoint.c:12348
static void base_breakpoint_create_breakpoints_sal(struct gdbarch *gdbarch, struct linespec_result *c, 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 ignore_count, const struct breakpoint_ops *o, int from_tty, int enabled, int internal, unsigned flags)
Definition: breakpoint.c:12437
static void base_breakpoint_print_mention(struct breakpoint *b)
Definition: breakpoint.c:12416
static int base_breakpoint_remove_location(struct bp_location *bl, enum remove_bp_reason reason)
Definition: breakpoint.c:12363
static void base_breakpoint_print_recreate(struct breakpoint *b, struct ui_file *fp)
Definition: breakpoint.c:12422
static struct bp_location * base_breakpoint_allocate_location(struct breakpoint *self)
Definition: breakpoint.c:12342
static void base_breakpoint_print_one_detail(const struct breakpoint *self, struct ui_out *uiout)
Definition: breakpoint.c:12409
static void base_breakpoint_create_sals_from_location(const struct event_location *location, struct linespec_result *canonical, enum bptype type_wanted)
Definition: breakpoint.c:12429
static enum print_stop_action base_breakpoint_print_it(bpstat bs)
Definition: breakpoint.c:12403
static std::vector< symtab_and_line > base_breakpoint_decode_location(struct breakpoint *b, const struct event_location *location, struct program_space *search_pspace)
Definition: breakpoint.c:12453
static int base_breakpoint_works_in_software_mode(const struct breakpoint *b)
Definition: breakpoint.c:12388
static void base_breakpoint_check_status(bpstat bs)
Definition: breakpoint.c:12379
static int base_breakpoint_resources_needed(const struct bp_location *bl)
Definition: breakpoint.c:12397
static int base_breakpoint_breakpoint_hit(const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
Definition: breakpoint.c:12370
static void base_breakpoint_after_condition_true(struct bpstats *bs)
Definition: breakpoint.c:12471
static int base_breakpoint_insert_location(struct bp_location *bl)
Definition: breakpoint.c:12357

Definition at line 12476 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), initialize_signal_catchpoint_ops(), and initialize_syscall_catchpoint_ops().

◆ bkpt_base_breakpoint_ops

struct breakpoint_ops bkpt_base_breakpoint_ops
static

Definition at line 245 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

◆ bkpt_breakpoint_ops

struct breakpoint_ops bkpt_breakpoint_ops

◆ bkpt_probe_breakpoint_ops

struct breakpoint_ops bkpt_probe_breakpoint_ops
static

Definition at line 258 of file breakpoint.c.

Referenced by break_command_1(), and initialize_breakpoint_ops().

◆ bp_location_ops

const struct bp_location_ops bp_location_ops
static
Initial value:
=
{
}
static void bp_location_dtor(struct bp_location *self)
Definition: breakpoint.c:12322

Definition at line 12327 of file breakpoint.c.

◆ bp_locations

struct bp_location** bp_locations
static

◆ bp_locations_count

unsigned bp_locations_count
static

◆ bp_locations_placed_address_before_address_max

CORE_ADDR bp_locations_placed_address_before_address_max
static

Definition at line 549 of file breakpoint.c.

Referenced by bp_locations_target_extensions_update(), and breakpoint_xfer_memory().

◆ bp_locations_shadow_len_after_address_max

CORE_ADDR bp_locations_shadow_len_after_address_max
static

Definition at line 557 of file breakpoint.c.

Referenced by bp_locations_target_extensions_update(), and breakpoint_xfer_memory().

◆ breakpoint_chain

struct breakpoint* breakpoint_chain

◆ breakpoint_objfile_key

const struct objfile_data* breakpoint_objfile_key
static

Definition at line 3172 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and get_breakpoint_objfile_data().

◆ breakpoint_proceeded

int breakpoint_proceeded
static

Definition at line 311 of file breakpoint.c.

Referenced by bpstat_do_actions_1(), and breakpoint_about_to_proceed().

◆ can_use_hw_watchpoints

int can_use_hw_watchpoints
static

◆ catch_cmdlist

struct cmd_list_element* catch_cmdlist
static

Definition at line 15311 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and add_catch_command().

◆ catch_exec_breakpoint_ops

struct breakpoint_ops catch_exec_breakpoint_ops
static

Definition at line 8402 of file breakpoint.c.

Referenced by catch_exec_command_1(), and initialize_breakpoint_ops().

◆ catch_fork_breakpoint_ops

struct breakpoint_ops catch_fork_breakpoint_ops
static

Definition at line 7862 of file breakpoint.c.

Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().

◆ catch_solib_breakpoint_ops

struct breakpoint_ops catch_solib_breakpoint_ops
static

Definition at line 8170 of file breakpoint.c.

Referenced by add_solib_catchpoint(), and initialize_breakpoint_ops().

◆ catch_vfork_breakpoint_ops

struct breakpoint_ops catch_vfork_breakpoint_ops
static

Definition at line 7977 of file breakpoint.c.

Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().

◆ condition_evaluation_auto

const char condition_evaluation_auto[] = "auto"
static

◆ condition_evaluation_both

const char condition_evaluation_both[] = "host or target"
static

Definition at line 424 of file breakpoint.c.

Referenced by bp_condition_evaluator(), and print_breakpoint_location().

◆ condition_evaluation_enums

const char* const condition_evaluation_enums[]
static
Initial value:
= {
NULL
}
static const char condition_evaluation_auto[]
Definition: breakpoint.c:427
static const char condition_evaluation_host[]
Definition: breakpoint.c:428
static const char condition_evaluation_target[]
Definition: breakpoint.c:429

Definition at line 430 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ condition_evaluation_host

const char condition_evaluation_host[] = "host"
static

◆ condition_evaluation_mode

const char* condition_evaluation_mode = condition_evaluation_auto
static

◆ condition_evaluation_mode_1

const char* condition_evaluation_mode_1 = condition_evaluation_auto
static

Definition at line 438 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and set_condition_evaluation_mode().

◆ condition_evaluation_target

const char condition_evaluation_target[] = "target"
static

◆ disconnected_dprintf

int disconnected_dprintf = 1
static

Definition at line 300 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and build_target_command_list().

◆ dprintf_breakpoint_ops

struct breakpoint_ops dprintf_breakpoint_ops

Definition at line 261 of file breakpoint.c.

Referenced by dprintf_command(), initialize_breakpoint_ops(), and mi_cmd_break_insert_1().

◆ dprintf_channel

char* dprintf_channel
static

Definition at line 296 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and update_dprintf_command_list().

◆ dprintf_function

char* dprintf_function
static

Definition at line 286 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and update_dprintf_command_list().

◆ dprintf_style

const char* dprintf_style = dprintf_style_gdb
static

◆ dprintf_style_agent

const char dprintf_style_agent[] = "agent"
static

◆ dprintf_style_call

const char dprintf_style_call[] = "call"
static

Definition at line 271 of file breakpoint.c.

Referenced by update_dprintf_command_list().

◆ dprintf_style_enums

const char* const dprintf_style_enums[]
static
Initial value:
= {
NULL
}
static const char dprintf_style_call[]
Definition: breakpoint.c:271
static const char dprintf_style_agent[]
Definition: breakpoint.c:272
static const char dprintf_style_gdb[]
Definition: breakpoint.c:270

Definition at line 273 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ dprintf_style_gdb

const char dprintf_style_gdb[] = "gdb"
static

Definition at line 270 of file breakpoint.c.

Referenced by update_dprintf_command_list().

◆ enablebreaklist

struct cmd_list_element* enablebreaklist = NULL
static

Definition at line 15591 of file breakpoint.c.

Referenced by _initialize_breakpoint().

◆ executing_breakpoint_commands

int executing_breakpoint_commands
static

Definition at line 483 of file breakpoint.c.

Referenced by bpstat_do_actions_1().

◆ internal_breakpoint_number

int internal_breakpoint_number = -1
static

◆ internal_breakpoint_ops

struct breakpoint_ops internal_breakpoint_ops
static

◆ longjmp_names

const char* const longjmp_names[]
static
Initial value:
=
{
"longjmp", "_longjmp", "siglongjmp", "_siglongjmp"
}

Definition at line 3136 of file breakpoint.c.

Referenced by create_longjmp_master_breakpoint().

◆ masked_watchpoint_breakpoint_ops

struct breakpoint_ops masked_watchpoint_breakpoint_ops
static

◆ momentary_breakpoint_ops

struct breakpoint_ops momentary_breakpoint_ops
static

◆ msym_not_found

struct minimal_symbol msym_not_found
static

◆ next_cmd

int next_cmd
static

Definition at line 14771 of file breakpoint.c.

Referenced by create_tracepoint_from_upload(), and read_uploaded_action().

◆ overlay_events_enabled

int overlay_events_enabled
static

◆ pending_break_support

enum auto_boolean pending_break_support
static

◆ ranged_breakpoint_ops

struct breakpoint_ops ranged_breakpoint_ops
static

Definition at line 9878 of file breakpoint.c.

Referenced by break_range_command(), and initialize_breakpoint_ops().

◆ rbreak_start_breakpoint_count

int rbreak_start_breakpoint_count
static

◆ strace_marker_breakpoint_ops

struct breakpoint_ops strace_marker_breakpoint_ops
static

Definition at line 13214 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), strace_command(), and strace_marker_p().

◆ target_exact_watchpoints

int target_exact_watchpoints = 0

◆ tcatch_cmdlist

struct cmd_list_element* tcatch_cmdlist
static

Definition at line 15314 of file breakpoint.c.

Referenced by _initialize_breakpoint(), and add_catch_command().

◆ this_utp

struct uploaded_tp* this_utp
static

Definition at line 14770 of file breakpoint.c.

Referenced by create_tracepoint_from_upload(), and read_uploaded_action().

◆ tracepoint_breakpoint_ops

struct breakpoint_ops tracepoint_breakpoint_ops

◆ tracepoint_probe_breakpoint_ops

struct breakpoint_ops tracepoint_probe_breakpoint_ops
static

Definition at line 13051 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), and trace_command().

◆ until_break_fsm_ops

struct thread_fsm_ops until_break_fsm_ops
static
Initial value:
=
{
NULL,
NULL,
}
static void until_break_fsm_clean_up(struct thread_fsm *self, struct thread_info *thread)
Definition: breakpoint.c:11144
static enum async_reply_reason until_break_fsm_async_reply_reason(struct thread_fsm *self)
Definition: breakpoint.c:11167
static int until_break_fsm_should_stop(struct thread_fsm *self, struct thread_info *thread)
Definition: breakpoint.c:11125

Definition at line 11093 of file breakpoint.c.

Referenced by new_until_break_fsm().

◆ watchpoint_breakpoint_ops

struct breakpoint_ops watchpoint_breakpoint_ops
static

Definition at line 10419 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), and watch_command_1().