GDB (xrefs)
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-7.10/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 "gdb.h"
#include "ui-out.h"
#include "cli/cli-script.h"
#include "block.h"
#include "solib.h"
#include "solist.h"
#include "observer.h"
#include "memattr.h"
#include "ada-lang.h"
#include "top.h"
#include "valprint.h"
#include "jit.h"
#include "parser-defs.h"
#include "gdb_regex.h"
#include "probe.h"
#include "cli/cli-utils.h"
#include "continuations.h"
#include "stack.h"
#include "skip.h"
#include "ax-gdb.h"
#include "dummy-frame.h"
#include "interps.h"
#include "format.h"
#include "readline/readline.h"
#include "readline/history.h"
#include "mi/mi-common.h"
#include "extension.h"

Go to the source code of this file.

Classes

struct  counted_command_line
 
struct  commands_info
 
struct  breakpoint_objfile_data
 
struct  captured_breakpoint_query_args
 
struct  lang_and_radix
 
struct  fork_catchpoint
 
struct  solib_catchpoint
 
struct  exec_catchpoint
 
struct  until_break_command_continuation_args
 
struct  disp_data
 

Macros

#define ALL_BREAKPOINTS(B)   for (B = breakpoint_chain; B; B = B->next)
 
#define ALL_BREAKPOINTS_SAFE(B, TMP)
 
#define ALL_BP_LOCATIONS(B, BP_TMP)
 
#define ALL_BP_LOCATIONS_AT_ADDR(BP_LOCP_TMP, BP_LOCP_START, ADDRESS)
 
#define ALL_TRACEPOINTS(B)
 
#define NUM_LONGJMP_NAMES   ARRAY_SIZE(longjmp_names)
 
#define WP_DELETED   1
 
#define WP_VALUE_CHANGED   2
 
#define WP_VALUE_NOT_CHANGED   3
 
#define WP_IGNORE   4
 
#define BP_TEMPFLAG   1
 
#define BP_HARDWAREFLAG   2
 
#define internal_error_pure_virtual_called()   gdb_assert_not_reached ("pure virtual function called")
 
#define BREAK_ARGS_HELP(command)   command" [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] [if CONDITION]\n\PROBE_MODIFIER shall be present if the command is to be placed in a\n\probe point. Accepted values are `-probe' (for a generic, automatically\n\guessed probe type), `-probe-stap' (for a SystemTap probe) or \n\`-probe-dtrace' (for a DTrace probe).\n\LOCATION may be a line number, function name, or \"*\" and an address.\n\If a line number is specified, break at start of code for that line.\n\If a function is specified, break at start of code for that function.\n\If an address is specified, break at that exact address.\n\With no LOCATION, uses current execution address of the selected\n\stack frame. This is useful for breaking on return to a stack frame.\n\\n\THREADNUM is the number from \"info threads\".\n\CONDITION is a boolean expression.\n\\n\Multiple breakpoints at one place are permitted, and useful if their\n\conditions are different.\n\\n\Do \"help breakpoints\" for info on other commands dealing with breakpoints."
 

Enumerations

enum  exception_event_kind {
  EX_EVENT_THROW, EX_EVENT_RETHROW, EX_EVENT_CATCH, EX_EVENT_THROW,
  EX_EVENT_RETHROW, EX_EVENT_CATCH
}
 
enum  insertion_state_t { mark_inserted, mark_uninserted }
 
enum  ugll_insert_mode { UGLL_DONT_INSERT, UGLL_MAY_INSERT, UGLL_INSERT }
 
enum  catch_fork_kind { catch_fork_temporary, catch_vfork_temporary, catch_fork_permanent, catch_vfork_permanent }
 

Functions

static void enable_delete_command (char *, int)
 
static void enable_once_command (char *, int)
 
static void enable_count_command (char *, int)
 
static void disable_command (char *, int)
 
static void enable_command (char *, int)
 
static void map_breakpoint_numbers (char *, void(*)(struct breakpoint *, void *), void *)
 
static void ignore_command (char *, int)
 
static int breakpoint_re_set_one (void *)
 
static void breakpoint_re_set_default (struct breakpoint *)
 
static void create_sals_from_address_default (char **, struct linespec_result *, enum bptype, char *, char **)
 
static void create_breakpoints_sal_default (struct gdbarch *, struct linespec_result *, char *, char *, enum bptype, enum bpdisp, int, int, int, const struct breakpoint_ops *, int, int, int, unsigned)
 
static void decode_linespec_default (struct breakpoint *, char **, struct symtabs_and_lines *)
 
static void clear_command (char *, int)
 
static void catch_command (char *, int)
 
static int can_use_hardware_watchpoint (struct value *)
 
static void break_command_1 (char *, int, int)
 
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, struct address_space *aspace, CORE_ADDR addr)
 
static void breakpoints_info (char *, int)
 
static void watchpoints_info (char *, int)
 
static int breakpoint_1 (char *, int, int(*)(const struct breakpoint *))
 
static int breakpoint_cond_eval (void *)
 
static void cleanup_executing_breakpoints (void *)
 
static void commands_command (char *, int)
 
static void condition_command (char *, int)
 
static int remove_breakpoint (struct bp_location *, insertion_state_t)
 
static int remove_breakpoint_1 (struct bp_location *, insertion_state_t)
 
static enum print_stop_action print_bp_stop_message (bpstat bs)
 
static int watchpoint_check (void *)
 
static void maintenance_info_breakpoints (char *, int)
 
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 hbreak_command (char *, int)
 
static void thbreak_command (char *, int)
 
static void enable_breakpoint_disp (struct breakpoint *, enum bpdisp, int count)
 
static void stop_command (char *arg, int from_tty)
 
static void stopin_command (char *arg, int from_tty)
 
static void stopat_command (char *arg, int from_tty)
 
static void tcatch_command (char *arg, int from_tty)
 
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 tracepoints_info (char *, int)
 
static void delete_trace_command (char *, int)
 
static void enable_trace_command (char *, int)
 
static void disable_trace_command (char *, int)
 
static void trace_pass_command (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)
 
void _initialize_breakpoint (void)
 
 VEC (bp_location_p)
 
static int breakpoint_enabled (struct breakpoint *b)
 
static void set_breakpoint_count (int num)
 
void start_rbreak_breakpoints (void)
 
void end_rbreak_breakpoints (void)
 
void clear_breakpoint_hit_counts (void)
 
static struct counted_command_linealloc_counted_command_line (struct command_line *commands)
 
static void incref_counted_command_line (struct counted_command_line *cmd)
 
static void decref_counted_command_line (struct counted_command_line **cmdp)
 
static void do_cleanup_counted_command_line (void *arg)
 
static struct cleanupmake_cleanup_decref_counted_command_line (struct counted_command_line **cmdp)
 
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 (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_location_compare_addrs (const void *ap, const void *bp)
 
void set_breakpoint_condition (struct breakpoint *b, const char *exp, int from_tty)
 
static VEC (char_ptr)
 
static void check_no_tracepoint_commands (struct command_line *commands)
 
static int is_tracepoint_type (enum bptype type)
 
int is_tracepoint (const struct breakpoint *b)
 
static void validate_commands_for_breakpoint (struct breakpoint *b, struct command_line *commands)
 
 VEC (breakpoint_p)
 
void breakpoint_set_commands (struct breakpoint *b, struct command_line *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 do_map_commands_command (struct breakpoint *b, void *data)
 
static void commands_command_1 (char *arg, int from_tty, struct command_line *control)
 
enum command_control_type commands_from_control_command (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 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 struct agent_exprparse_cond_to_aexpr (CORE_ADDR scope, struct expression *cond)
 
static void build_target_condition_list (struct bp_location *bl)
 
static struct agent_exprparse_cmd_to_aexpr (CORE_ADDR scope, char *cmd)
 
static void build_target_command_list (struct bp_location *bl)
 
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)
 
int reattach_breakpoints (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_probes (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)
 
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 (struct address_space *aspace, CORE_ADDR pc)
 
int moribund_breakpoint_here_p (struct address_space *aspace, CORE_ADDR pc)
 
static int bp_location_inserted_here_p (struct bp_location *bl, struct address_space *aspace, CORE_ADDR pc)
 
int breakpoint_inserted_here_p (struct address_space *aspace, CORE_ADDR pc)
 
int software_breakpoint_inserted_here_p (struct address_space *aspace, CORE_ADDR pc)
 
int hardware_breakpoint_inserted_here_p (struct address_space *aspace, CORE_ADDR pc)
 
int hardware_watchpoint_inserted_in_range (struct address_space *aspace, CORE_ADDR addr, ULONGEST len)
 
int is_catchpoint (struct breakpoint *ep)
 
static void bpstat_free (bpstat bs)
 
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)
 
static void print_solib_event (int is_catchpoint)
 
enum print_stop_action bpstat_print (bpstat bs, int kind)
 
static bpstat bpstat_alloc (struct bp_location *bl, bpstat **bs_link_pointer)
 
int watchpoints_triggered (struct target_waitstatus *ws)
 
static int bpstat_check_location (const struct bp_location *bl, struct 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 (struct 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)
 
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, VEC(int)*inf_num, 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)
 
static int do_captured_breakpoint_query (struct ui_out *uiout, void *data)
 
enum gdb_rc gdb_breakpoint_query (struct ui_out *uiout, int bnum, char **error_message)
 
int user_breakpoint_p (struct breakpoint *b)
 
static void default_collect_info (void)
 
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 (struct address_space *aspace1, CORE_ADDR addr1, struct address_space *aspace2, CORE_ADDR addr2)
 
static int breakpoint_address_match_range (struct address_space *aspace1, CORE_ADDR addr1, int len1, struct address_space *aspace2, CORE_ADDR addr2)
 
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)
 
void init_bp_location (struct bp_location *loc, const struct bp_location_ops *ops, struct breakpoint *owner)
 
static void add_to_breakpoint_chain (struct 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)
 
void remove_thread_event_breakpoints (void)
 
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)
 
static int breakpoint_hit_catch_fork (const struct bp_location *bl, struct 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)
 
static int breakpoint_hit_catch_vfork (const struct bp_location *bl, struct 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 void dtor_catch_solib (struct breakpoint *b)
 
static int insert_catch_solib (struct bp_location *ignore)
 
static int remove_catch_solib (struct bp_location *ignore)
 
static int breakpoint_hit_catch_solib (const struct bp_location *bl, struct 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 (char *arg, int is_load, int is_temp, int enabled)
 
static void catch_load_or_unload (char *arg, int from_tty, int is_load, struct cmd_list_element *command)
 
static void catch_load_command_1 (char *arg, int from_tty, struct cmd_list_element *command)
 
static void catch_unload_command_1 (char *arg, int from_tty, struct cmd_list_element *command)
 
void init_catchpoint (struct breakpoint *b, struct gdbarch *gdbarch, int tempflag, char *cond_string, const struct breakpoint_ops *ops)
 
void install_breakpoint (int internal, struct breakpoint *b, int update_gll)
 
static void create_fork_vfork_event_catchpoint (struct gdbarch *gdbarch, int tempflag, char *cond_string, const struct breakpoint_ops *ops)
 
static void dtor_catch_exec (struct breakpoint *b)
 
static int insert_catch_exec (struct bp_location *bl)
 
static int remove_catch_exec (struct bp_location *bl)
 
static int breakpoint_hit_catch_exec (const struct bp_location *bl, struct 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)
 
struct breakpointset_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)
 
struct breakpointset_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 (char *args, int from_tty, struct cmd_list_element *c)
 
static void init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, struct symtabs_and_lines sals, char *addr_string, char *filter, char *cond_string, 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, struct symtabs_and_lines sals, char *addr_string, char *filter, char *cond_string, 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, char *cond_string, 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 (char **address, struct linespec_result *canonical)
 
static void breakpoint_sals_to_pc (struct symtabs_and_lines *sals)
 
static void check_fast_tracepoint_sals (struct gdbarch *gdbarch, struct symtabs_and_lines *sals)
 
static void ATTRIBUTE_NORETURN invalid_thread_id_error (int id)
 
static void find_condition_and_thread (const char *tok, CORE_ADDR pc, char **cond_string, int *thread, int *task, char **rest)
 
static struct symtabs_and_lines decode_static_tracepoint_spec (char **arg_p)
 
int create_breakpoint (struct gdbarch *gdbarch, char *arg, char *cond_string, int thread, char *extra_string, int parse_arg, int tempflag, enum bptype type_wanted, int ignore_count, enum auto_boolean pending_break_support, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags)
 
void resolve_sal_pc (struct symtab_and_line *sal)
 
void break_command (char *arg, int from_tty)
 
void tbreak_command (char *arg, int from_tty)
 
static void dprintf_command (char *arg, int from_tty)
 
static void agent_printf_command (char *arg, int from_tty)
 
static int breakpoint_hit_ranged_breakpoint (const struct bp_location *bl, struct 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 (char *arg, int from_tty)
 
static int watchpoint_exp_is_const (const struct expression *exp)
 
static void dtor_watchpoint (struct breakpoint *self)
 
static void re_set_watchpoint (struct breakpoint *b)
 
static int insert_watchpoint (struct bp_location *bl)
 
static int remove_watchpoint (struct bp_location *bl)
 
static int breakpoint_hit_watchpoint (const struct bp_location *bl, struct 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)
 
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 (char *arg, int from_tty, int internal)
 
static void watch_maybe_just_location (char *arg, int accessflag, int from_tty)
 
static void watch_command (char *arg, int from_tty)
 
void rwatch_command_wrapper (char *arg, int from_tty, int internal)
 
static void rwatch_command (char *arg, int from_tty)
 
void awatch_command_wrapper (char *arg, int from_tty, int internal)
 
static void awatch_command (char *arg, int from_tty)
 
static void until_break_command_continuation (void *arg, int err)
 
void until_break_command (char *arg, int from_tty, int anywhere)
 
char * ep_parse_optional_if_clause (char **arg)
 
static void catch_fork_command_1 (char *arg, int from_tty, struct cmd_list_element *command)
 
static void catch_exec_command_1 (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, char *addr_string, const struct breakpoint_ops *ops, int tempflag, int enabled, int from_tty)
 
static int compare_breakpoints (const void *a, const void *b)
 
void breakpoint_auto_delete (bpstat bs)
 
static int bp_location_compare (const void *ap, const void *bp)
 
static void bp_location_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 void base_breakpoint_dtor (struct breakpoint *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)
 
static int base_breakpoint_breakpoint_hit (const struct bp_location *bl, struct 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_address (char **arg, struct linespec_result *canonical, enum bptype type_wanted, char *addr_start, char **copy_arg)
 
static void base_breakpoint_create_breakpoints_sal (struct gdbarch *gdbarch, struct linespec_result *c, char *cond_string, 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 void base_breakpoint_decode_linespec (struct breakpoint *b, char **s, struct symtabs_and_lines *sals)
 
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)
 
static int bkpt_breakpoint_hit (const struct bp_location *bl, struct address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
 
static int dprintf_breakpoint_hit (const struct bp_location *bl, struct 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_address (char **arg, struct linespec_result *canonical, enum bptype type_wanted, char *addr_start, char **copy_arg)
 
static void bkpt_create_breakpoints_sal (struct gdbarch *gdbarch, struct linespec_result *canonical, char *cond_string, 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 void bkpt_decode_linespec (struct breakpoint *b, char **s, struct symtabs_and_lines *sals)
 
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 void longjmp_bkpt_dtor (struct breakpoint *self)
 
static int bkpt_probe_insert_location (struct bp_location *bl)
 
static int bkpt_probe_remove_location (struct bp_location *bl)
 
static void bkpt_probe_create_sals_from_address (char **arg, struct linespec_result *canonical, enum bptype type_wanted, char *addr_start, char **copy_arg)
 
static void bkpt_probe_decode_linespec (struct breakpoint *b, char **s, struct symtabs_and_lines *sals)
 
static void tracepoint_re_set (struct breakpoint *b)
 
static int tracepoint_breakpoint_hit (const struct bp_location *bl, struct 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_address (char **arg, struct linespec_result *canonical, enum bptype type_wanted, char *addr_start, char **copy_arg)
 
static void tracepoint_create_breakpoints_sal (struct gdbarch *gdbarch, struct linespec_result *canonical, char *cond_string, 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 void tracepoint_decode_linespec (struct breakpoint *b, char **s, struct symtabs_and_lines *sals)
 
static void tracepoint_probe_create_sals_from_address (char **arg, struct linespec_result *canonical, enum bptype type_wanted, char *addr_start, char **copy_arg)
 
static void tracepoint_probe_decode_linespec (struct breakpoint *b, char **s, struct symtabs_and_lines *sals)
 
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_address (char **arg, struct linespec_result *canonical, enum bptype type_wanted, char *addr_start, char **copy_arg)
 
static void strace_marker_create_breakpoints_sal (struct gdbarch *gdbarch, struct linespec_result *canonical, char *cond_string, 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 void strace_marker_decode_linespec (struct breakpoint *b, char **s, struct symtabs_and_lines *sals)
 
void delete_breakpoint (struct breakpoint *bpt)
 
static void do_delete_breakpoint_cleanup (void *b)
 
struct cleanupmake_cleanup_delete_breakpoint (struct breakpoint *b)
 
static void iterate_over_related_breakpoints (struct breakpoint *b, void(*function)(struct breakpoint *, void *), void *data)
 
static void do_delete_breakpoint (struct breakpoint *b, void *ignore)
 
static void do_map_delete_breakpoint (struct breakpoint *b, void *ignore)
 
void delete_command (char *arg, int from_tty)
 
static int all_locations_are_pending (struct bp_location *loc)
 
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)
 
void update_breakpoint_locations (struct breakpoint *b, struct symtabs_and_lines sals, struct symtabs_and_lines sals_end)
 
static struct symtabs_and_lines addr_string_to_sals (struct breakpoint *b, char *addr_string, int *found)
 
static struct cleanupprepare_re_set_context (struct 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 map_breakpoint_numbers (char *args, void(*function)(struct breakpoint *, void *), void *data)
 
static struct bp_locationfind_location_by_number (char *number)
 
void disable_breakpoint (struct breakpoint *bpt)
 
static void do_disable_breakpoint (struct breakpoint *b, void *ignore)
 
static void do_map_disable_breakpoint (struct breakpoint *b, void *ignore)
 
void enable_breakpoint (struct breakpoint *bpt)
 
static void do_enable_breakpoint (struct breakpoint *bpt, void *arg)
 
static void do_map_enable_breakpoint (struct breakpoint *b, void *ignore)
 
static void do_enable_breakpoint_disp (struct breakpoint *bpt, void *arg)
 
static void do_map_enable_once_breakpoint (struct breakpoint *bpt, void *ignore)
 
static void do_map_enable_count_breakpoint (struct breakpoint *bpt, void *countptr)
 
static void do_map_enable_delete_breakpoint (struct breakpoint *bpt, void *ignore)
 
static void set_breakpoint_cmd (char *args, int from_tty)
 
static void show_breakpoint_cmd (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, struct address_space *aspace, CORE_ADDR next_pc)
 
int breakpoint_has_location_inserted_here (struct breakpoint *bp, struct address_space *aspace, CORE_ADDR pc)
 
int single_step_breakpoint_inserted_here_p (struct address_space *aspace, CORE_ADDR pc)
 
static void trace_command (char *arg, int from_tty)
 
static void ftrace_command (char *arg, int from_tty)
 
static void strace_command (char *arg, int from_tty)
 
static char * read_uploaded_action (void)
 
struct tracepointcreate_tracepoint_from_upload (struct uploaded_tp *utp)
 
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 (char **arg, struct get_number_or_range_state *state)
 
void print_recreate_thread (struct breakpoint *b, struct ui_file *fp)
 
static void save_breakpoints (char *filename, int from_tty, int(*filter)(const struct breakpoint *))
 
static void save_breakpoints_command (char *args, int from_tty)
 
static void save_tracepoints_command (char *args, int from_tty)
 
void add_catch_command (char *name, char *docstring, cmd_sfunc_ftype *sfunc, completer_ftype *completer, void *user_data_catch, void *user_data_tcatch)
 
static void save_command (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 (struct address_space *aspace, CORE_ADDR pc, const struct target_waitstatus *ws)
 
void breakpoint_free_objfile (struct objfile *objfile)
 
void initialize_breakpoint_ops (void)
 

Variables

static struct breakpoint_ops bkpt_base_breakpoint_ops
 
static struct breakpoint_ops internal_breakpoint_ops
 
static struct breakpoint_ops momentary_breakpoint_ops
 
static struct breakpoint_ops longjmp_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_location
 
static unsigned bp_location_count
 
static CORE_ADDR bp_location_placed_address_before_address_max
 
static CORE_ADDR bp_location_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 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

#define ALL_BP_LOCATIONS (   B,
  BP_TMP 
)
#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_location + bp_location_count \
&& (*BP_LOCP_TMP)->address == ADDRESS); \
BP_LOCP_TMP++)
static unsigned bp_location_count
Definition: breakpoint.c:603
static struct bp_location ** get_first_locp_gte_addr(CORE_ADDR address)
Definition: breakpoint.c:931

Definition at line 579 of file breakpoint.c.

Referenced by breakpoint_inserted_here_p(), build_target_command_list(), build_target_condition_list(), force_breakpoint_reinsertion(), hardware_breakpoint_inserted_here_p(), and software_breakpoint_inserted_here_p().

#define ALL_BREAKPOINTS (   B)    for (B = breakpoint_chain; B; B = B->next)
#define ALL_BREAKPOINTS_SAFE (   B,
  TMP 
)
#define ALL_TRACEPOINTS (   B)
Value:
for (B = breakpoint_chain; B; B = B->next) \
Definition: ia64-tdep.c:83
struct breakpoint * breakpoint_chain
Definition: breakpoint.c:595
int is_tracepoint(const struct breakpoint *b)
Definition: breakpoint.c:1163

Definition at line 589 of file breakpoint.c.

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

#define BP_HARDWAREFLAG   2

Definition at line 4998 of file breakpoint.c.

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

#define BP_TEMPFLAG   1

Definition at line 4997 of file breakpoint.c.

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

#define BREAK_ARGS_HELP (   command)    command" [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] [if CONDITION]\n\PROBE_MODIFIER shall be present if the command is to be placed in a\n\probe point. Accepted values are `-probe' (for a generic, automatically\n\guessed probe type), `-probe-stap' (for a SystemTap probe) or \n\`-probe-dtrace' (for a DTrace probe).\n\LOCATION may be a line number, function name, or \"*\" and an address.\n\If a line number is specified, break at start of code for that line.\n\If a function is specified, break at start of code for that function.\n\If an address is specified, break at that exact address.\n\With no LOCATION, uses current execution address of the selected\n\stack frame. This is useful for breaking on return to a stack frame.\n\\n\THREADNUM is the number from \"info threads\".\n\CONDITION is a boolean expression.\n\\n\Multiple breakpoints at one place are permitted, and useful if their\n\conditions are different.\n\\n\Do \"help breakpoints\" for info on other commands dealing with breakpoints."

Definition at line 15446 of file breakpoint.c.

Referenced by _initialize_breakpoint().

#define internal_error_pure_virtual_called ( )    gdb_assert_not_reached ("pure virtual function called")
#define NUM_LONGJMP_NAMES   ARRAY_SIZE(longjmp_names)

Definition at line 3333 of file breakpoint.c.

Referenced by create_longjmp_master_breakpoint().

#define WP_DELETED   1

Definition at line 4989 of file breakpoint.c.

Referenced by bpstat_check_watchpoint(), and watchpoint_check().

#define WP_IGNORE   4

Definition at line 4995 of file breakpoint.c.

Referenced by bpstat_check_watchpoint(), and watchpoint_check().

#define WP_VALUE_CHANGED   2

Definition at line 4991 of file breakpoint.c.

Referenced by bpstat_check_watchpoint(), and watchpoint_check().

#define WP_VALUE_NOT_CHANGED   3

Definition at line 4993 of file breakpoint.c.

Referenced by bpstat_check_watchpoint(), and watchpoint_check().

Enumeration Type Documentation

Enumerator
catch_fork_temporary 
catch_vfork_temporary 
catch_fork_permanent 
catch_vfork_permanent 

Definition at line 11577 of file breakpoint.c.

Enumerator
EX_EVENT_THROW 
EX_EVENT_RETHROW 
EX_EVENT_CATCH 
EX_EVENT_THROW 
EX_EVENT_RETHROW 
EX_EVENT_CATCH 

Definition at line 82 of file breakpoint.c.

Enumerator
mark_inserted 
mark_uninserted 

Definition at line 188 of file breakpoint.c.

Enumerator
UGLL_DONT_INSERT 
UGLL_MAY_INSERT 
UGLL_INSERT 

Definition at line 235 of file breakpoint.c.

Function Documentation

void _initialize_breakpoint ( void  )

Definition at line 15759 of file breakpoint.c.

References _, add_abbrev_prefix_cmd(), add_alias_cmd(), add_catch_command(), add_cmd(), add_com(), add_com_alias(), add_info(), add_info_alias(), add_prefix_cmd(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_string_cmd(), add_setshow_zinteger_cmd(), agent_printf_command(), AUTO_BOOLEAN_AUTO, awatch_command(), BREAK_ARGS_HELP, break_command(), break_range_command(), breakpoint_about_to_proceed(), breakpoints_info(), catch_command(), catch_exec_command_1(), catch_fork_command_1(), catch_fork_permanent, catch_fork_temporary, catch_load_command_1(), CATCH_PERMANENT, CATCH_TEMPORARY, catch_unload_command_1(), catch_vfork_permanent, catch_vfork_temporary, class_alias, class_breakpoint, class_info, class_maintenance, class_run, class_support, class_trace, class_vars, clear_command(), cmdlist, commands_command(), condition_command(), dbx_commands, delete_command(), delete_trace_command(), deletelist, deprecate_cmd(), disable_breakpoints_in_freed_objfile(), disable_breakpoints_in_unloaded_shlib(), disable_command(), disable_trace_command(), disablelist, dprintf_command(), enable_command(), enable_count_command(), enable_delete_command(), enable_once_command(), enable_trace_command(), enablelist, free_breakpoint_probes(), ftrace_command(), hbreak_command(), ignore_command(), initialize_breakpoint_ops(), invalidate_bp_value_on_memory_change(), maintenance_info_breakpoints(), maintenanceinfolist, no_class, observer_attach_about_to_proceed(), observer_attach_free_objfile(), observer_attach_memory_changed(), observer_attach_solib_unloaded(), observer_attach_thread_exit(), remove_threaded_breakpoints(), rwatch_command(), save_breakpoints_command(), save_command(), save_tracepoints_command(), set_breakpoint_cmd(), set_cmd_completer(), set_condition_evaluation_mode(), setlist, show_always_inserted_mode(), show_automatic_hardware_breakpoints(), show_breakpoint_cmd(), show_can_use_hw_watchpoints(), show_condition_evaluation_mode(), show_pending_break_support(), showlist, stop_command(), stopat_command(), stopin_command(), stoplist, strace_command(), tbreak_command(), tcatch_command(), thbreak_command(), trace_command(), trace_pass_command(), tracepoints_info(), update_dprintf_commands(), watch_command(), and watchpoints_info().

void add_catch_command ( char *  name,
char *  docstring,
cmd_sfunc_ftype sfunc,
completer_ftype *  completer,
void *  user_data_catch,
void *  user_data_tcatch 
)
static struct bp_location * add_location_to_breakpoint ( struct breakpoint b,
const struct symtab_and_line sal 
)
static
void add_solib_catchpoint ( char *  arg,
int  is_load,
int  is_temp,
int  enabled 
)
static void add_to_breakpoint_chain ( struct breakpoint b)
static
static struct symtabs_and_lines addr_string_to_sals ( struct breakpoint b,
char *  addr_string,
int found 
)
static
static CORE_ADDR adjust_breakpoint_address ( struct gdbarch gdbarch,
CORE_ADDR  bpaddr,
enum bptype  bptype 
)
static
static CORE_ADDR adjust_breakpoint_address ( struct gdbarch gdbarch,
CORE_ADDR  bpaddr,
enum bptype  bptype 
)
static
static void agent_printf_command ( char *  arg,
int  from_tty 
)
static

Definition at line 10026 of file breakpoint.c.

References _, and error().

Referenced by _initialize_breakpoint().

static int all_locations_are_pending ( struct bp_location loc)
static
static struct counted_command_line* alloc_counted_command_line ( struct command_line commands)
static
static struct bp_location * allocate_bp_location ( struct breakpoint bpt)
static
static int ambiguous_names_p ( struct bp_location loc)
static
static void awatch_command ( char *  arg,
int  from_tty 
)
static

Definition at line 11399 of file breakpoint.c.

References hw_access, and watch_maybe_just_location().

Referenced by _initialize_breakpoint().

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

Definition at line 11393 of file breakpoint.c.

References hw_access, and watch_command_1().

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

static void base_breakpoint_after_condition_true ( struct bpstats bs)
static

Definition at line 12756 of file breakpoint.c.

static struct bp_location* base_breakpoint_allocate_location ( struct breakpoint self)
static

Definition at line 12624 of file breakpoint.c.

References init_bp_location().

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

Definition at line 12655 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_check_status ( bpstat  bs)
static

Definition at line 12664 of file breakpoint.c.

static void base_breakpoint_create_breakpoints_sal ( struct gdbarch gdbarch,
struct linespec_result c,
char *  cond_string,
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 12723 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_create_sals_from_address ( char **  arg,
struct linespec_result canonical,
enum bptype  type_wanted,
char *  addr_start,
char **  copy_arg 
)
static

Definition at line 12713 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_decode_linespec ( struct breakpoint b,
char **  s,
struct symtabs_and_lines sals 
)
static

Definition at line 12739 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_dtor ( struct breakpoint self)
static

Definition at line 12613 of file breakpoint.c.

References decref_counted_command_line(), and xfree().

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

Definition at line 12748 of file breakpoint.c.

static int base_breakpoint_insert_location ( struct bp_location bl)
static

Definition at line 12643 of file breakpoint.c.

References internal_error_pure_virtual_called.

static enum print_stop_action base_breakpoint_print_it ( bpstat  bs)
static

Definition at line 12688 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_print_mention ( struct breakpoint b)
static

Definition at line 12701 of file breakpoint.c.

References internal_error_pure_virtual_called.

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

Definition at line 12694 of file breakpoint.c.

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

Definition at line 12707 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_re_set ( struct breakpoint b)
static

Definition at line 12634 of file breakpoint.c.

static int base_breakpoint_remove_location ( struct bp_location bl)
static

Definition at line 12649 of file breakpoint.c.

References internal_error_pure_virtual_called.

static int base_breakpoint_resources_needed ( const struct bp_location bl)
static

Definition at line 12682 of file breakpoint.c.

References internal_error_pure_virtual_called.

static int base_breakpoint_works_in_software_mode ( const struct breakpoint b)
static

Definition at line 12673 of file breakpoint.c.

References internal_error_pure_virtual_called.

static int bkpt_breakpoint_hit ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static void bkpt_create_breakpoints_sal ( struct gdbarch gdbarch,
struct linespec_result canonical,
char *  cond_string,
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 12959 of file breakpoint.c.

References create_breakpoints_sal_default().

Referenced by initialize_breakpoint_ops().

static void bkpt_create_sals_from_address ( char **  arg,
struct linespec_result canonical,
enum bptype  type_wanted,
char *  addr_start,
char **  copy_arg 
)
static

Definition at line 12949 of file breakpoint.c.

References create_sals_from_address_default().

Referenced by initialize_breakpoint_ops().

static void bkpt_decode_linespec ( struct breakpoint b,
char **  s,
struct symtabs_and_lines sals 
)
static

Definition at line 12980 of file breakpoint.c.

References decode_linespec_default().

Referenced by initialize_breakpoint_ops().

static int bkpt_insert_location ( struct bp_location bl)
static
static enum print_stop_action bkpt_print_it ( bpstat  bs)
static
static void bkpt_print_mention ( struct breakpoint b)
static
static void bkpt_print_recreate ( struct breakpoint tp,
struct ui_file fp 
)
static
static void bkpt_probe_create_sals_from_address ( char **  arg,
struct linespec_result canonical,
enum bptype  type_wanted,
char *  addr_start,
char **  copy_arg 
)
static
static void bkpt_probe_decode_linespec ( struct breakpoint b,
char **  s,
struct symtabs_and_lines sals 
)
static
static int bkpt_probe_insert_location ( struct bp_location bl)
static
static int bkpt_probe_remove_location ( struct bp_location bl)
static
static void bkpt_re_set ( struct breakpoint b)
static
static int bkpt_remove_location ( struct bp_location bl)
static
static int bkpt_resources_needed ( const struct bp_location bl)
static
static const char* bp_condition_evaluator ( struct breakpoint b)
static
static int bp_loc_is_permanent ( struct bp_location loc)
static
static int bp_location_compare ( const void *  ap,
const void *  bp 
)
static
static int bp_location_compare_addrs ( const void *  ap,
const void *  bp 
)
static

Definition at line 914 of file breakpoint.c.

References bp_location::address.

Referenced by get_first_locp_gte_addr().

static const char* bp_location_condition_evaluator ( struct bp_location bl)
static
static void bp_location_dtor ( struct bp_location self)
static

Definition at line 12593 of file breakpoint.c.

References free_agent_expr(), VEC_free, and xfree().

static int bp_location_has_shadow ( struct bp_location bl)
static
static int bp_location_inserted_here_p ( struct bp_location bl,
struct address_space aspace,
CORE_ADDR  pc 
)
static
static void bp_location_target_extensions_update ( void  )
static
const char* bpdisp_text ( enum bpdisp  disp)
static bpstat bpstat_alloc ( struct bp_location bl,
bpstat **  bs_link_pointer 
)
static
int bpstat_causes_stop ( bpstat  bs)

Definition at line 5910 of file breakpoint.c.

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

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

static void bpstat_check_breakpoint_conditions ( bpstat  bs,
ptid_t  ptid 
)
static
static int bpstat_check_location ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static void bpstat_check_watchpoint ( bpstat  bs)
static
void bpstat_clear ( bpstat bsp)
void bpstat_clear_actions ( void  )
bpstat bpstat_copy ( bpstat  bs)
void bpstat_do_actions ( void  )
static int bpstat_do_actions_1 ( bpstat bsp)
static
int bpstat_explains_signal ( bpstat  bsp,
enum gdb_signal  sig 
)
bpstat bpstat_find_breakpoint ( bpstat  bsp,
struct breakpoint breakpoint 
)

Definition at line 4437 of file breakpoint.c.

References bpstats::breakpoint_at, and bpstats::next.

Referenced by finish_command_continuation().

static void bpstat_free ( bpstat  bs)
static
int bpstat_num ( bpstat bsp,
int num 
)

Definition at line 4486 of file breakpoint.c.

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

Referenced by continue_command(), and program_info().

enum print_stop_action bpstat_print ( bpstat  bs,
int  kind 
)
static void bpstat_remove_bp_location ( bpstat  bps,
struct breakpoint bpt 
)
static
static int bpstat_remove_breakpoint_callback ( struct thread_info th,
void *  data 
)
static
int bpstat_should_step ( void  )
bpstat bpstat_stop_status ( struct address_space aspace,
CORE_ADDR  bp_addr,
ptid_t  ptid,
const struct target_waitstatus ws 
)
struct bpstat_what bpstat_what ( bpstat  bs_head)
static const char* bptype_string ( enum bptype  type)
static
void break_command ( char *  arg,
int  from_tty 
)

Definition at line 9908 of file breakpoint.c.

References break_command_1().

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

static void break_command_1 ( char *  arg,
int  flag,
int  from_tty 
)
static
static void break_range_command ( char *  arg,
int  from_tty 
)
static
static int breakpoint_1 ( char *  args,
int  allflag,
int(*)(const struct breakpoint *)  filter 
)
static
static void breakpoint_about_to_proceed ( void  )
static
static int breakpoint_address_bits ( struct breakpoint b)
static
static int breakpoint_address_is_meaningful ( struct breakpoint bpt)
static

Definition at line 6939 of file breakpoint.c.

References bp_catchpoint, bp_watchpoint, and breakpoint::type.

Referenced by bp_loc_is_permanent(), and update_global_location_list().

int breakpoint_address_match ( struct address_space aspace1,
CORE_ADDR  addr1,
struct address_space aspace2,
CORE_ADDR  addr2 
)
static int breakpoint_address_match_range ( struct address_space aspace1,
CORE_ADDR  addr1,
int  len1,
struct address_space aspace2,
CORE_ADDR  addr2 
)
static
static void breakpoint_adjustment_warning ( CORE_ADDR  from_addr,
CORE_ADDR  to_addr,
int  bnum,
int  have_bnum 
)
static

Definition at line 7082 of file breakpoint.c.

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

Referenced by adjust_breakpoint_address(), and bkpt_print_it().

void breakpoint_auto_delete ( bpstat  bs)
struct command_line* breakpoint_commands ( struct breakpoint b)
static int breakpoint_cond_eval ( void *  exp)
static
static const char* breakpoint_condition_evaluation_mode ( void  )
static
static int breakpoint_enabled ( struct breakpoint b)
static
void breakpoint_free_objfile ( struct objfile objfile)

Definition at line 15561 of file breakpoint.c.

References ALL_BP_LOCATIONS, bp_location::symtab, and SYMTAB_OBJFILE.

Referenced by free_objfile().

int breakpoint_has_location_inserted_here ( struct breakpoint bp,
struct address_space aspace,
CORE_ADDR  pc 
)
static int breakpoint_has_pc ( struct breakpoint b,
struct program_space pspace,
CORE_ADDR  pc,
struct obj_section section 
)
static
enum breakpoint_here breakpoint_here_p ( struct address_space aspace,
CORE_ADDR  pc 
)
static int breakpoint_hit_catch_exec ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static int breakpoint_hit_catch_fork ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static int breakpoint_hit_catch_solib ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static int breakpoint_hit_catch_vfork ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static int breakpoint_hit_ranged_breakpoint ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
static int breakpoint_hit_watchpoint ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static
void breakpoint_init_inferior ( enum inf_context  context)
int breakpoint_inserted_here_p ( struct address_space aspace,
CORE_ADDR  pc 
)
static int breakpoint_location_address_match ( struct bp_location bl,
struct address_space aspace,
CORE_ADDR  addr 
)
static
static int breakpoint_locations_match ( struct bp_location loc1,
struct bp_location loc2 
)
static
void breakpoint_program_space_exit ( struct program_space pspace)
void breakpoint_re_set ( void  )
static void breakpoint_re_set_default ( struct breakpoint b)
static
static int breakpoint_re_set_one ( void *  bint)
static
void breakpoint_re_set_thread ( struct breakpoint b)
void breakpoint_retire_moribund ( void  )
static void breakpoint_sals_to_pc ( struct symtabs_and_lines sals)
static

Definition at line 9391 of file breakpoint.c.

References symtabs_and_lines::nelts, resolve_sal_pc(), and symtabs_and_lines::sals.

Referenced by create_breakpoint().

void breakpoint_set_commands ( struct breakpoint b,
struct command_line commands 
)
void breakpoint_set_silent ( struct breakpoint b,
int  silent 
)
void breakpoint_set_task ( struct breakpoint b,
int  task 
)
void breakpoint_set_thread ( struct breakpoint b,
int  thread 
)
void breakpoint_xfer_memory ( gdb_byte readbuf,
gdb_byte writebuf,
const gdb_byte writebuf_org,
ULONGEST  memaddr,
LONGEST  len 
)
static void breakpoints_info ( char *  args,
int  from_tty 
)
static

Definition at line 6831 of file breakpoint.c.

References breakpoint_1(), and default_collect_info().

Referenced by _initialize_breakpoint().

int breakpoints_should_be_inserted_now ( void  )
static void build_target_command_list ( struct bp_location bl)
static
static void build_target_condition_list ( struct bp_location bl)
static
static int can_use_hardware_watchpoint ( struct value v)
static
static void catch_command ( char *  arg,
int  from_tty 
)
static

Definition at line 11701 of file breakpoint.c.

References _, and error().

Referenced by _initialize_breakpoint().

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

Definition at line 8420 of file breakpoint.c.

References catch_load_or_unload().

Referenced by _initialize_breakpoint().

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

Definition at line 8427 of file breakpoint.c.

References catch_load_or_unload().

Referenced by _initialize_breakpoint().

static void check_fast_tracepoint_sals ( struct gdbarch gdbarch,
struct symtabs_and_lines sals 
)
static
void check_longjmp_breakpoint_for_call_dummy ( struct thread_info tp)
static void check_no_tracepoint_commands ( struct command_line commands)
static
static void check_status_catch_solib ( struct bpstats bs)
static
static void check_status_watchpoint ( bpstat  bs)
static
void check_tracepoint_command ( char *  line,
void *  closure 
)
static void cleanup_executing_breakpoints ( void *  ignore)
static

Definition at line 4555 of file breakpoint.c.

Referenced by bpstat_do_actions_1().

void clear_breakpoint_hit_counts ( void  )

Definition at line 703 of file breakpoint.c.

References ALL_BREAKPOINTS, and breakpoint::hit_count.

Referenced by run_command_1().

static void clear_command ( char *  arg,
int  from_tty 
)
static
struct breakpoint* clone_momentary_breakpoint ( struct breakpoint orig)

Definition at line 8822 of file breakpoint.c.

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

Referenced by follow_fork().

static int command_line_is_silent ( struct command_line cmd)
static

Definition at line 4564 of file breakpoint.c.

References command_line::line.

Referenced by bpstat_do_actions_1(), and bpstat_stop_status().

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

Definition at line 1436 of file breakpoint.c.

References commands_command_1().

Referenced by _initialize_breakpoint().

static void commands_command_1 ( char *  arg,
int  from_tty,
struct command_line control 
)
static
enum command_control_type commands_from_control_command ( char *  arg,
struct command_line cmd 
)

Definition at line 1447 of file breakpoint.c.

References commands_command_1(), and simple_control.

Referenced by execute_control_command().

static int compare_breakpoints ( const void *  a,
const void *  b 
)
static

Definition at line 11716 of file breakpoint.c.

Referenced by clear_command().

static void condition_command ( char *  arg,
int  from_tty 
)
static
struct breakpoint* create_and_insert_solib_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)
int create_breakpoint ( struct gdbarch gdbarch,
char *  arg,
char *  cond_string,
int  thread,
char *  extra_string,
int  parse_arg,
int  tempflag,
enum bptype  type_wanted,
int  ignore_count,
enum auto_boolean  pending_break_support,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)

Definition at line 9585 of file breakpoint.c.

References _, breakpoint::addr_string, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, tracepoint::base, bp_breakpoint, bp_disabled, bp_enabled, bp_fast_tracepoint, bp_hardware_breakpoint, bptype_string(), breakpoint_sals_to_pc(), linespec_sals::canonical, CATCH, check_fast_tracepoint_sals(), breakpoint::cond_string, breakpoint::condition_not_parsed, breakpoint_ops::create_breakpoints_sal, breakpoint_ops::create_sals_from_address, current_program_space, discard_cleanups(), disp_del, disp_donttouch, breakpoint::disposition, do_cleanups(), breakpoint::enable_state, END_CATCH, error(), exception_print(), breakpoint::extra_string, find_condition_and_thread(), gdb_assert, gdb_stderr, breakpoint::ignore_count, init_linespec_result(), init_raw_breakpoint_without_location(), init_sal(), install_breakpoint(), is_tracepoint_type(), make_cleanup(), make_cleanup_destroy_linespec_result(), symtabs_and_lines::nelts, NOT_FOUND_ERROR, nquery(), null_cleanup(), symtab_and_line::pc, breakpoint::pspace, RETURN_MASK_ERROR, linespec_sals::sals, symtabs_and_lines::sals, breakpoint::thread, throw_exception(), TRY, UGLL_MAY_INSERT, update_global_location_list(), VEC_empty, VEC_index, VEC_iterate, VEC_length, VEC_safe_push, warning(), and xfree().

Referenced by bpfinishpy_init(), bppy_init(), break_command_1(), create_tracepoint_from_upload(), dprintf_command(), ftrace_command(), gdbscm_register_breakpoint_x(), mi_cmd_break_insert_1(), spu_catch_start(), strace_command(), and trace_command().

static void create_breakpoint_sal ( struct gdbarch gdbarch,
struct symtabs_and_lines  sals,
char *  addr_string,
char *  filter,
char *  cond_string,
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
static void create_breakpoints_sal ( struct gdbarch gdbarch,
struct linespec_result canonical,
char *  cond_string,
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
static void create_breakpoints_sal_default ( struct gdbarch gdbarch,
struct linespec_result canonical,
char *  cond_string,
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
static void create_exception_master_breakpoint ( void  )
static
static void create_fork_vfork_event_catchpoint ( struct gdbarch gdbarch,
int  tempflag,
char *  cond_string,
const struct breakpoint_ops ops 
)
static
static struct breakpoint* create_internal_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address,
enum bptype  type,
const struct breakpoint_ops ops 
)
static
struct breakpoint* create_jit_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)
static void create_longjmp_master_breakpoint ( void  )
static
static void create_overlay_event_breakpoint ( void  )
static
static void create_sals_from_address_default ( char **  arg,
struct linespec_result canonical,
enum bptype  type_wanted,
char *  addr_start,
char **  copy_arg 
)
static
struct breakpoint* create_solib_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)
static struct breakpoint* create_solib_event_breakpoint_1 ( struct gdbarch gdbarch,
CORE_ADDR  address,
enum ugll_insert_mode  insert_mode 
)
static
static void create_std_terminate_master_breakpoint ( void  )
static
struct breakpoint* create_thread_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
)
struct tracepoint* create_tracepoint_from_upload ( struct uploaded_tp utp)
static void decode_linespec_default ( struct breakpoint b,
char **  s,
struct symtabs_and_lines sals 
)
static
static struct symtabs_and_lines decode_static_tracepoint_spec ( char **  arg_p)
static
static void decref_bp_location ( struct bp_location **  loc)
static
static void decref_counted_command_line ( struct counted_command_line **  cmdp)
static
static void default_collect_info ( void  )
static
void delete_breakpoint ( struct breakpoint bpt)
void delete_command ( char *  arg,
int  from_tty 
)
void delete_longjmp_breakpoint ( int  thread)
void delete_longjmp_breakpoint_at_next_stop ( int  thread)
void delete_std_terminate_breakpoint ( void  )
static void delete_trace_command ( char *  arg,
int  from_tty 
)
static
static void describe_other_breakpoints ( struct gdbarch gdbarch,
struct program_space pspace,
CORE_ADDR  pc,
struct obj_section section,
int  thread 
)
static
int detach_breakpoints ( ptid_t  ptid)
void disable_breakpoint ( struct breakpoint bpt)
void disable_breakpoints_before_startup ( void  )
static void disable_breakpoints_in_freed_objfile ( struct objfile objfile)
static
void disable_breakpoints_in_shlibs ( void  )
static void disable_breakpoints_in_unloaded_shlib ( struct so_list solib)
static
static void disable_command ( char *  args,
int  from_tty 
)
static
void disable_overlay_breakpoints ( void  )
static void disable_trace_command ( char *  args,
int  from_tty 
)
static

Definition at line 15090 of file breakpoint.c.

References disable_command().

Referenced by _initialize_breakpoint().

void disable_watchpoints_before_interactive_call_start ( void  )
static int do_captured_breakpoint_query ( struct ui_out uiout,
void *  data 
)
static
static void do_cleanup_counted_command_line ( void *  arg)
static

Definition at line 755 of file breakpoint.c.

References decref_counted_command_line().

Referenced by make_cleanup_decref_counted_command_line().

static void do_delete_breakpoint ( struct breakpoint b,
void *  ignore 
)
static

Definition at line 13681 of file breakpoint.c.

References delete_breakpoint().

Referenced by do_map_delete_breakpoint().

static void do_delete_breakpoint_cleanup ( void *  b)
static

Definition at line 13632 of file breakpoint.c.

References delete_breakpoint().

Referenced by make_cleanup_delete_breakpoint().

static void do_disable_breakpoint ( struct breakpoint b,
void *  ignore 
)
static

Definition at line 14516 of file breakpoint.c.

References disable_breakpoint().

Referenced by do_map_disable_breakpoint().

static void do_enable_breakpoint ( struct breakpoint bpt,
void *  arg 
)
static

Definition at line 14643 of file breakpoint.c.

References enable_breakpoint().

Referenced by do_map_enable_breakpoint().

static void do_enable_breakpoint_disp ( struct breakpoint bpt,
void *  arg 
)
static
static void do_map_commands_command ( struct breakpoint b,
void *  data 
)
static
static void do_map_delete_breakpoint ( struct breakpoint b,
void *  ignore 
)
static
static void do_map_disable_breakpoint ( struct breakpoint b,
void *  ignore 
)
static

Definition at line 14525 of file breakpoint.c.

References do_disable_breakpoint(), and iterate_over_related_breakpoints().

Referenced by disable_command().

static void do_map_enable_breakpoint ( struct breakpoint b,
void *  ignore 
)
static

Definition at line 14652 of file breakpoint.c.

References do_enable_breakpoint(), and iterate_over_related_breakpoints().

Referenced by enable_command().

static void do_map_enable_count_breakpoint ( struct breakpoint bpt,
void *  countptr 
)
static
static void do_map_enable_delete_breakpoint ( struct breakpoint bpt,
void *  ignore 
)
static
static void do_map_enable_once_breakpoint ( struct breakpoint bpt,
void *  ignore 
)
static
static void download_tracepoint_locations ( void  )
static
static void dprintf_after_condition_true ( struct bpstats bs)
static
static int dprintf_breakpoint_hit ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

Definition at line 12840 of file breakpoint.c.

References bkpt_breakpoint_hit(), and target_can_run_breakpoint_commands.

Referenced by initialize_breakpoint_ops().

static void dprintf_command ( char *  arg,
int  from_tty 
)
static
static void dprintf_print_recreate ( struct breakpoint tp,
struct ui_file fp 
)
static
static void dprintf_re_set ( struct breakpoint b)
static
static void dtor_catch_exec ( struct breakpoint b)
static
static void dtor_catch_solib ( struct breakpoint b)
static

Definition at line 8176 of file breakpoint.c.

References base_breakpoint_ops, breakpoint_ops::dtor, and xfree().

Referenced by initialize_breakpoint_ops().

static void dtor_watchpoint ( struct breakpoint self)
static
void enable_breakpoint ( struct breakpoint bpt)
static void enable_breakpoint_disp ( struct breakpoint bpt,
enum bpdisp  disposition,
int  count 
)
static
void enable_breakpoints_after_startup ( void  )
static void enable_command ( char *  args,
int  from_tty 
)
static
static void enable_count_command ( char *  args,
int  from_tty 
)
static
static void enable_delete_command ( char *  args,
int  from_tty 
)
static

Definition at line 14764 of file breakpoint.c.

References do_map_enable_delete_breakpoint(), and map_breakpoint_numbers().

Referenced by _initialize_breakpoint().

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

Definition at line 14729 of file breakpoint.c.

References do_map_enable_once_breakpoint(), and map_breakpoint_numbers().

Referenced by _initialize_breakpoint().

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

Definition at line 15082 of file breakpoint.c.

References enable_command().

Referenced by _initialize_breakpoint().

void enable_watchpoints_after_interactive_call_stop ( void  )
void end_rbreak_breakpoints ( void  )

Definition at line 695 of file breakpoint.c.

References rbreak_start_breakpoint_count.

Referenced by do_end_rbreak_breakpoints().

char* ep_parse_optional_if_clause ( char **  arg)

Definition at line 11552 of file breakpoint.c.

References skip_spaces().

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

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

Definition at line 10728 of file breakpoint.c.

References bp_watchpoint, and breakpoint::type.

Referenced by initialize_breakpoint_ops().

static struct value* extract_bitfield_from_watchpoint_value ( struct watchpoint w,
struct value val 
)
static
static CORE_ADDR find_breakpoint_range_end ( struct symtab_and_line  sal)
static
static void find_condition_and_thread ( const char *  tok,
CORE_ADDR  pc,
char **  cond_string,
int thread,
int task,
char **  rest 
)
static
static struct bp_location* find_location_by_number ( char *  number)
static
static void force_breakpoint_reinsertion ( struct bp_location bl)
static
static void free_bp_location ( struct bp_location loc)
static

Definition at line 7227 of file breakpoint.c.

References bp_location_ops::dtor, bp_location::ops, and xfree().

Referenced by decref_bp_location().

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

Definition at line 3397 of file breakpoint.c.

References VEC_free.

Referenced by _initialize_breakpoint().

static void ftrace_command ( char *  arg,
int  from_tty 
)
static
enum gdb_rc gdb_breakpoint_query ( struct ui_out uiout,
int  bnum,
char **  error_message 
)
static int gdb_evaluates_breakpoint_condition_p ( void  )
static
struct breakpoint* get_breakpoint ( int  num)
static struct breakpoint_objfile_data* get_breakpoint_objfile_data ( struct objfile objfile)
static
static struct bp_location ** get_first_locp_gte_addr ( CORE_ADDR  address)
static

Definition at line 931 of file breakpoint.c.

References bp_location::address, and bp_location_compare_addrs().

struct gdbarch* get_sal_arch ( struct symtab_and_line  sal)
struct tracepoint* get_tracepoint ( int  num)
struct tracepoint* get_tracepoint_by_number ( char **  arg,
struct get_number_or_range_state state 
)
struct tracepoint* get_tracepoint_by_number_on_target ( int  num)

Definition at line 15213 of file breakpoint.c.

References ALL_TRACEPOINTS, and tracepoint::number_on_target.

Referenced by tfile_get_traceframe_address(), and tfind_1().

static void handle_jit_event ( void  )
static
int hardware_breakpoint_inserted_here_p ( struct address_space aspace,
CORE_ADDR  pc 
)
int hardware_watchpoint_inserted_in_range ( struct address_space aspace,
CORE_ADDR  addr,
ULONGEST  len 
)
static void hbreak_command ( char *  arg,
int  from_tty 
)
static

Definition at line 9920 of file breakpoint.c.

References BP_HARDWAREFLAG, and break_command_1().

Referenced by _initialize_breakpoint(), and break_range_command().

static int hw_breakpoint_used_count ( void  )
static
static int hw_watchpoint_use_count ( struct breakpoint b)
static
static int hw_watchpoint_used_count_others ( struct breakpoint except,
enum bptype  type,
int other_type_used 
)
static
static void ignore_command ( char *  args,
int  from_tty 
)
static
static void incref_bp_location ( struct bp_location loc)
static

Definition at line 7236 of file breakpoint.c.

References bp_location::refc.

Referenced by bpstat_alloc(), and bpstat_copy().

static void incref_counted_command_line ( struct counted_command_line cmd)
static

Definition at line 728 of file breakpoint.c.

References counted_command_line::refc.

Referenced by bpstat_copy(), bpstat_stop_status(), and do_map_commands_command().

void init_ada_exception_breakpoint ( struct breakpoint b,
struct gdbarch gdbarch,
struct symtab_and_line  sal,
char *  addr_string,
const struct breakpoint_ops ops,
int  tempflag,
int  enabled,
int  from_tty 
)
void init_bp_location ( struct bp_location loc,
const struct bp_location_ops ops,
struct breakpoint owner 
)
static void init_breakpoint_sal ( struct breakpoint b,
struct gdbarch gdbarch,
struct symtabs_and_lines  sals,
char *  addr_string,
char *  filter,
char *  cond_string,
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 init_catchpoint ( struct breakpoint b,
struct gdbarch gdbarch,
int  tempflag,
char *  cond_string,
const struct breakpoint_ops ops 
)
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
static void init_raw_breakpoint_without_location ( struct breakpoint b,
struct gdbarch gdbarch,
enum bptype  bptype,
const struct breakpoint_ops ops 
)
static
void initialize_breakpoint_ops ( void  )

Definition at line 15571 of file breakpoint.c.

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

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

static 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 2581 of file breakpoint.c.

References _, bp_location::address, ALL_BP_LOCATIONS, program_space::aspace, mem_region::attrib, bp_catchpoint, bp_disabled, bp_hardware_breakpoint, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_software_breakpoint, build_target_command_list(), build_target_condition_list(), CATCH, disp_del_at_next_stop, breakpoint::disposition, do_cleanups(), bp_location::duplicate, breakpoint::enable_state, END_CATCH, fprintf_filtered(), fprintf_unfiltered(), gdb_assert, GDB_NO_ERROR, gdb_stdout, bp_location::gdbarch, GENERIC_ERROR, hw_access, hw_read, breakpoint_ops::insert_location, bp_location::inserted, is_breakpoint(), bp_target_info::length, bp_location::length, bp_location::loc_type, lookup_mem_region(), make_cleanup(), MEM_RW, MEMORY_ERROR, memory_error_message(), mem_attrib::mode, bp_location::needs_update, new_type(), breakpoint::number, observer_notify_breakpoint_modified(), breakpoint::ops, overlay_debugging, bp_location::overlay_target_info, overlay_unmapped_address(), ovly_off, bp_location::owner, paddress(), bp_target_info::placed_address_space, bp_location::pspace, bp_target_info::reqstd_address, RETURN_MASK_ALL, bp_location::section, section_is_mapped(), section_is_overlay(), shared_objfile_contains_address_p(), bp_location::shlib_disabled, should_be_inserted(), solib_name_from_address(), bp_location::target_info, target_insert_breakpoint(), TARGET_XFER_E_IO, TRY, breakpoint::type, warning(), watchpoint_locations_match(), bp_location::watchpoint_type, and xfree().

Referenced by insert_breakpoint_locations(), reattach_breakpoints(), and update_inserted_breakpoint_locations().

static void insert_breakpoint_locations ( void  )
static
void insert_breakpoints ( void  )
static int insert_catch_exec ( struct bp_location bl)
static

Definition at line 8517 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_insert_exec_catchpoint.

Referenced by initialize_breakpoint_ops().

static int insert_catch_fork ( struct bp_location bl)
static

Definition at line 7926 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_insert_fork_catchpoint.

Referenced by initialize_breakpoint_ops().

static int insert_catch_solib ( struct bp_location ignore)
static

Definition at line 8188 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static int insert_catch_vfork ( struct bp_location bl)
static

Definition at line 8043 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_insert_vfork_catchpoint.

Referenced by initialize_breakpoint_ops().

static int insert_masked_watchpoint ( struct bp_location bl)
static
void insert_single_step_breakpoint ( struct gdbarch gdbarch,
struct address_space aspace,
CORE_ADDR  next_pc 
)
static int insert_watchpoint ( struct bp_location bl)
static
void install_breakpoint ( int  internal,
struct breakpoint b,
int  update_gll 
)
static void internal_bkpt_check_status ( bpstat  bs)
static
static enum print_stop_action internal_bkpt_print_it ( bpstat  bs)
static
static void internal_bkpt_print_mention ( struct breakpoint b)
static

Definition at line 13078 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static void internal_bkpt_re_set ( struct breakpoint b)
static
static void ATTRIBUTE_NORETURN invalid_thread_id_error ( int  id)
static

Definition at line 9441 of file breakpoint.c.

References _, and error().

Referenced by find_condition_and_thread(), and watch_command_1().

static void invalidate_bp_value_on_memory_change ( struct inferior inferior,
CORE_ADDR  addr,
ssize_t  len,
const bfd_byte *  data 
)
static
int is_breakpoint ( const struct breakpoint bpt)
int is_catchpoint ( struct breakpoint ep)

Definition at line 4359 of file breakpoint.c.

References bp_catchpoint, and breakpoint::type.

Referenced by print_one_breakpoint_location().

static int is_hardware_watchpoint ( const struct breakpoint bpt)
static
static int is_masked_watchpoint ( const struct breakpoint b)
static
static int is_non_inline_function ( struct breakpoint b)
static

Definition at line 15522 of file breakpoint.c.

References bp_shlib_event, and breakpoint::type.

Referenced by pc_at_non_inline_function().

int is_tracepoint ( const struct breakpoint b)
static int is_tracepoint_type ( enum bptype  type)
static
int is_watchpoint ( const struct breakpoint bpt)
void iterate_over_bp_locations ( walk_bp_location_callback  callback)

Definition at line 3005 of file breakpoint.c.

References ALL_BP_LOCATIONS.

Referenced by record_full_init_record_breakpoints().

struct breakpoint* iterate_over_breakpoints ( int(*)(struct breakpoint *, void *)  callback,
void *  data 
)
static void iterate_over_related_breakpoints ( struct breakpoint b,
void(*)(struct breakpoint *, void *)  function,
void *  data 
)
static
static int locations_are_equal ( struct bp_location a,
struct bp_location b 
)
static
static void longjmp_bkpt_dtor ( struct breakpoint self)
static
static void maintenance_info_breakpoints ( char *  args,
int  from_tty 
)
static

Definition at line 6854 of file breakpoint.c.

References breakpoint_1(), and default_collect_info().

Referenced by _initialize_breakpoint().

static struct cleanup* make_cleanup_decref_counted_command_line ( struct counted_command_line **  cmdp)
static
struct cleanup* make_cleanup_delete_breakpoint ( struct breakpoint b)

Definition at line 13638 of file breakpoint.c.

References do_delete_breakpoint_cleanup(), and make_cleanup().

Referenced by finish_forward(), and until_break_command().

static void map_breakpoint_numbers ( char *  ,
void(*)(struct breakpoint *, void *)  ,
void *   
)
static
static void map_breakpoint_numbers ( char *  args,
void(*)(struct breakpoint *, void *)  function,
void *  data 
)
static
static void mark_breakpoint_location_modified ( struct bp_location loc)
static
static void mark_breakpoint_modified ( struct breakpoint b)
static
void mark_breakpoints_out ( void  )
static void mention ( struct breakpoint b)
static
static void momentary_bkpt_check_status ( bpstat  bs)
static

Definition at line 13095 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static enum print_stop_action momentary_bkpt_print_it ( bpstat  bs)
static
static void momentary_bkpt_print_mention ( struct breakpoint b)
static

Definition at line 13129 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static void momentary_bkpt_re_set ( struct breakpoint b)
static

Definition at line 13086 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static struct breakpoint * momentary_breakpoint_from_master ( struct breakpoint orig,
enum bptype  type,
const struct breakpoint_ops ops,
int  loc_enabled 
)
static
int moribund_breakpoint_here_p ( struct address_space aspace,
CORE_ADDR  pc 
)

Definition at line 4220 of file breakpoint.c.

References breakpoint_location_address_match(), and VEC_iterate.

Referenced by adjust_pc_after_break().

static int msym_not_found_p ( const struct minimal_symbol msym)
static
static int need_moribund_for_location_type ( struct bp_location loc)
static
static struct breakpoint* new_single_step_breakpoint ( int  thread,
struct gdbarch gdbarch 
)
static
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
static void output_thread_groups ( struct ui_out uiout,
const char *  field_name,
VEC(int)*  inf_num,
int  mi_only 
)
static
static void parse_breakpoint_sals ( char **  address,
struct linespec_result canonical 
)
static
static struct agent_expr* parse_cmd_to_aexpr ( CORE_ADDR  scope,
char *  cmd 
)
static
static struct agent_expr* parse_cond_to_aexpr ( CORE_ADDR  scope,
struct expression cond 
)
static

Definition at line 2236 of file breakpoint.c.

References CATCH, END_CATCH, gen_eval_for_expr(), RETURN_MASK_ERROR, and TRY.

Referenced by build_target_condition_list().

int pc_at_non_inline_function ( struct address_space aspace,
CORE_ADDR  pc,
const struct target_waitstatus ws 
)
static struct cleanup* prepare_re_set_context ( struct breakpoint b)
static
static enum print_stop_action print_bp_stop_message ( bpstat  bs)
static
static void print_breakpoint_location ( struct breakpoint b,
struct bp_location loc 
)
static
static enum print_stop_action print_it_catch_exec ( bpstat  bs)
static
static enum print_stop_action print_it_catch_fork ( bpstat  bs)
static
static enum print_stop_action print_it_catch_solib ( bpstat  bs)
static
static enum print_stop_action print_it_catch_vfork ( bpstat  bs)
static
static enum print_stop_action print_it_masked_watchpoint ( bpstat  bs)
static
static enum print_stop_action print_it_ranged_breakpoint ( bpstat  bs)
static
static enum print_stop_action print_it_watchpoint ( bpstat  bs)
static
static void print_mention_catch_exec ( struct breakpoint b)
static

Definition at line 8596 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

static void print_mention_catch_fork ( struct breakpoint b)
static

Definition at line 8020 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

static void print_mention_catch_solib ( struct breakpoint b)
static

Definition at line 8335 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

static void print_mention_catch_vfork ( struct breakpoint b)
static

Definition at line 8136 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

static void print_mention_masked_watchpoint ( struct breakpoint b)
static
static void print_mention_ranged_breakpoint ( struct breakpoint b)
static
static void print_mention_watchpoint ( struct breakpoint b)
static
static void print_one_breakpoint ( struct breakpoint b,
struct bp_location **  last_loc,
int  allflag 
)
static
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 6179 of file breakpoint.c.

References _, breakpoint::addr_string, bp_location::address, value_print_options::addressprint, ALL_INFERIORS, annotate_field(), annotate_record(), bp_access_watchpoint, bp_breakpoint, bp_call_dummy, bp_catchpoint, bp_condition_evaluator(), bp_dprintf, bp_exception, bp_exception_master, bp_exception_resume, bp_fast_tracepoint, bp_finish, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_none, bp_overlay_event, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, bp_watchpoint_scope, bpdisp_text(), bptype_string(), breakpoint_condition_evaluation_mode(), counted_command_line::commands, breakpoint::commands, breakpoint::cond_string, current_uiout, breakpoint::disposition, do_cleanups(), breakpoint::enable_count, breakpoint::enable_state, bp_location::enabled, watchpoint::exp_string, breakpoint::frame_id, frame_id_p(), gdb_assert, bp_location::gdbarch, breakpoint::gdbarch, gdbarch_has_global_breakpoints(), get_user_print_options(), breakpoint::hit_count, breakpoint::ignore_count, arm-linux::inf, bp_location::inserted, internal_error(), is_breakpoint(), is_catchpoint(), is_tracepoint(), is_watchpoint(), breakpoint::loc, make_cleanup_ui_out_tuple_begin_end(), bp_location::next, inferior::num, breakpoint::number, number_of_inferiors(), number_of_program_spaces(), breakpoint::ops, output_thread_groups(), bp_location::owner, tracepoint::pass_count, print_breakpoint_location(), print_command_lines(), breakpoint_ops::print_one, breakpoint_ops::print_one_detail, inferior::pspace, bp_location::pspace, bp_location::shlib_disabled, frame_id::stack_addr, target_gdbarch(), breakpoint::task, breakpoint::thread, tracepoint::traceframe_usage, breakpoint::type, ui_out_field_core_addr(), ui_out_field_fmt(), ui_out_field_int(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_spaces(), ui_out_text(), VEC(), VEC_free, VEC_safe_push, xfree(), and xstrprintf().

Referenced by print_one_breakpoint().

static void print_one_catch_exec ( struct breakpoint b,
struct bp_location **  last_loc 
)
static
static void print_one_catch_fork ( struct breakpoint b,
struct bp_location **  last_loc 
)
static
static void print_one_catch_solib ( struct breakpoint b,
struct bp_location **  locs 
)
static
static void print_one_catch_vfork ( struct breakpoint b,
struct bp_location **  last_loc 
)
static
static void print_one_detail_masked_watchpoint ( const struct breakpoint b,
struct ui_out uiout 
)
static
static void print_one_detail_ranged_breakpoint ( const struct breakpoint b,
struct ui_out uiout 
)
static
static void print_one_ranged_breakpoint ( struct breakpoint b,
struct bp_location **  last_loc 
)
static
static void print_recreate_catch_exec ( struct breakpoint b,
struct ui_file fp 
)
static

Definition at line 8605 of file breakpoint.c.

References fprintf_unfiltered(), and print_recreate_thread().

Referenced by initialize_breakpoint_ops().

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

Definition at line 8029 of file breakpoint.c.

References fprintf_unfiltered(), and print_recreate_thread().

Referenced by initialize_breakpoint_ops().

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

Definition at line 8344 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

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

Definition at line 8145 of file breakpoint.c.

References fprintf_unfiltered(), and print_recreate_thread().

Referenced by initialize_breakpoint_ops().

static void print_recreate_masked_watchpoint ( struct breakpoint b,
struct ui_file fp 
)
static
static void print_recreate_ranged_breakpoint ( struct breakpoint b,
struct ui_file fp 
)
static
void print_recreate_thread ( struct breakpoint b,
struct ui_file fp 
)
static void print_recreate_watchpoint ( struct breakpoint b,
struct ui_file fp 
)
static
static void print_solib_event ( int  is_catchpoint)
static
int program_breakpoint_here_p ( struct gdbarch gdbarch,
CORE_ADDR  address 
)
static void re_set_watchpoint ( struct breakpoint b)
static

Definition at line 10457 of file breakpoint.c.

References update_watchpoint().

Referenced by initialize_breakpoint_ops().

static char* read_uploaded_action ( void  )
static

Definition at line 14958 of file breakpoint.c.

References VEC_iterate.

Referenced by create_tracepoint_from_upload().

int reattach_breakpoints ( int  pid)
static int remove_breakpoint ( struct bp_location bl,
insertion_state_t  is 
)
static
static int remove_breakpoint_1 ( struct bp_location bl,
insertion_state_t  is 
)
static
int remove_breakpoints ( void  )
int remove_breakpoints_pid ( int  pid)
static int remove_catch_exec ( struct bp_location bl)
static

Definition at line 8523 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_remove_exec_catchpoint.

Referenced by initialize_breakpoint_ops().

static int remove_catch_fork ( struct bp_location bl)
static

Definition at line 7935 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_remove_fork_catchpoint.

Referenced by initialize_breakpoint_ops().

static int remove_catch_solib ( struct bp_location ignore)
static

Definition at line 8194 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static int remove_catch_vfork ( struct bp_location bl)
static

Definition at line 8052 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_remove_vfork_catchpoint.

Referenced by initialize_breakpoint_ops().

void remove_jit_event_breakpoints ( void  )
static int remove_masked_watchpoint ( struct bp_location bl)
static
void remove_solib_event_breakpoints ( void  )
void remove_solib_event_breakpoints_at_next_stop ( void  )
void remove_thread_event_breakpoints ( void  )
static void remove_threaded_breakpoints ( struct thread_info tp,
int  silent 
)
static
static int remove_watchpoint ( struct bp_location bl)
static
void resolve_sal_pc ( struct symtab_and_line sal)
static int resources_needed_masked_watchpoint ( const struct bp_location bl)
static
static int resources_needed_ranged_breakpoint ( const struct bp_location bl)
static

Definition at line 10052 of file breakpoint.c.

References target_ranged_break_num_registers().

Referenced by initialize_breakpoint_ops().

static int resources_needed_watchpoint ( const struct bp_location bl)
static
static void rwatch_command ( char *  arg,
int  from_tty 
)
static

Definition at line 11387 of file breakpoint.c.

References hw_read, and watch_maybe_just_location().

Referenced by _initialize_breakpoint().

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

Definition at line 11381 of file breakpoint.c.

References hw_read, and watch_command_1().

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

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

Definition at line 15412 of file breakpoint.c.

References save_breakpoints().

Referenced by _initialize_breakpoint().

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

Definition at line 15496 of file breakpoint.c.

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

Referenced by _initialize_breakpoint().

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

Definition at line 15420 of file breakpoint.c.

References is_tracepoint(), and save_breakpoints().

Referenced by _initialize_breakpoint().

static void say_where ( struct breakpoint b)
static
static void set_breakpoint_cmd ( char *  args,
int  from_tty 
)
static

Definition at line 14770 of file breakpoint.c.

Referenced by _initialize_breakpoint().

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

Definition at line 671 of file breakpoint.c.

References lookup_internalvar(), and set_internalvar_integer().

Referenced by break_range_command(), and set_breakpoint_number().

static void set_breakpoint_location_function ( struct bp_location loc,
int  explicit_loc 
)
static
static void set_breakpoint_number ( int  internal,
struct breakpoint b 
)
static

Definition at line 3297 of file breakpoint.c.

References breakpoint::number, and set_breakpoint_count().

Referenced by install_breakpoint().

static void set_condition_evaluation_mode ( char *  args,
int  from_tty,
struct cmd_list_element c 
)
static
void set_ignore_count ( int  bptnum,
int  count,
int  from_tty 
)
void set_longjmp_breakpoint ( struct thread_info tp,
struct frame_id  frame 
)
struct breakpoint* set_longjmp_breakpoint_for_call_dummy ( void  )
struct breakpoint* set_momentary_breakpoint ( struct gdbarch gdbarch,
struct symtab_and_line  sal,
struct frame_id frame_id  ,
enum bptype  type 
)
struct breakpoint* set_momentary_breakpoint_at_pc ( struct gdbarch gdbarch,
CORE_ADDR  pc,
enum bptype  type 
)
struct breakpoint* set_raw_breakpoint ( struct gdbarch gdbarch,
struct symtab_and_line  sal,
enum bptype bptype  ,
const struct breakpoint_ops ops 
)
static struct breakpoint* set_raw_breakpoint_without_location ( struct gdbarch gdbarch,
enum bptype bptype  ,
const struct breakpoint_ops ops 
)
static
void set_std_terminate_breakpoint ( void  )
static void set_tracepoint_count ( int  num)
static

Definition at line 14878 of file breakpoint.c.

References lookup_internalvar(), and set_internalvar_integer().

Referenced by install_breakpoint().

static int should_be_inserted ( struct bp_location bl)
static
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 450 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

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 431 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

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

Definition at line 14775 of file breakpoint.c.

Referenced by _initialize_breakpoint().

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 399 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

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

Definition at line 895 of file breakpoint.c.

References _, breakpoint_condition_evaluation_mode(), and fprintf_filtered().

Referenced by _initialize_breakpoint().

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 415 of file breakpoint.c.

References _, and fprintf_filtered().

Referenced by _initialize_breakpoint().

int single_step_breakpoint_inserted_here_p ( struct address_space aspace,
CORE_ADDR  pc 
)
int software_breakpoint_inserted_here_p ( struct address_space aspace,
CORE_ADDR  pc 
)
void start_rbreak_breakpoints ( void  )

Definition at line 686 of file breakpoint.c.

Referenced by rbreak_command().

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

Definition at line 9932 of file breakpoint.c.

References _, and printf_filtered().

Referenced by _initialize_breakpoint().

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

Definition at line 9973 of file breakpoint.c.

References _, cleanup::arg, break_command_1(), and printf_filtered().

Referenced by _initialize_breakpoint().

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

Definition at line 9940 of file breakpoint.c.

References _, cleanup::arg, break_command_1(), and printf_filtered().

Referenced by _initialize_breakpoint().

static void strace_command ( char *  arg,
int  from_tty 
)
static
static void strace_marker_create_breakpoints_sal ( struct gdbarch gdbarch,
struct linespec_result canonical,
char *  cond_string,
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
static void strace_marker_create_sals_from_address ( char **  arg,
struct linespec_result canonical,
enum bptype  type_wanted,
char *  addr_start,
char **  copy_arg 
)
static
static void strace_marker_decode_linespec ( struct breakpoint b,
char **  s,
struct symtabs_and_lines sals 
)
static
static int strace_marker_p ( struct breakpoint b)
static

Definition at line 13530 of file breakpoint.c.

References breakpoint::ops, and strace_marker_breakpoint_ops.

Referenced by addr_string_to_sals(), and init_breakpoint_sal().

static void swap_insertion ( struct bp_location left,
struct bp_location right 
)
static
void tbreak_command ( char *  arg,
int  from_tty 
)

Definition at line 9914 of file breakpoint.c.

References BP_TEMPFLAG, and break_command_1().

Referenced by _initialize_breakpoint(), and run_command_1().

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

Definition at line 11708 of file breakpoint.c.

References _, and error().

Referenced by _initialize_breakpoint().

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

Definition at line 9926 of file breakpoint.c.

References BP_HARDWAREFLAG, BP_TEMPFLAG, and break_command_1().

Referenced by _initialize_breakpoint().

static void trace_command ( char *  arg,
int  from_tty 
)
static
static void trace_pass_command ( char *  args,
int  from_tty 
)
static
static void trace_pass_set_count ( struct tracepoint tp,
int  count,
int  from_tty 
)
static
static int tracepoint_breakpoint_hit ( const struct bp_location bl,
struct address_space aspace,
CORE_ADDR  bp_addr,
const struct target_waitstatus ws 
)
static

Definition at line 13216 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static void tracepoint_create_breakpoints_sal ( struct gdbarch gdbarch,
struct linespec_result canonical,
char *  cond_string,
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 13302 of file breakpoint.c.

References create_breakpoints_sal_default().

Referenced by initialize_breakpoint_ops().

static void tracepoint_create_sals_from_address ( char **  arg,
struct linespec_result canonical,
enum bptype  type_wanted,
char *  addr_start,
char **  copy_arg 
)
static

Definition at line 13292 of file breakpoint.c.

References create_sals_from_address_default().

Referenced by initialize_breakpoint_ops().

static void tracepoint_decode_linespec ( struct breakpoint b,
char **  s,
struct symtabs_and_lines sals 
)
static

Definition at line 13323 of file breakpoint.c.

References decode_linespec_default().

Referenced by initialize_breakpoint_ops().

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

Definition at line 7039 of file breakpoint.c.

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

Referenced by breakpoint_locations_match().

static void tracepoint_print_mention ( struct breakpoint b)
static
static void tracepoint_print_one_detail ( const struct breakpoint self,
struct ui_out uiout 
)
static
static void tracepoint_print_recreate ( struct breakpoint self,
struct ui_file fp 
)
static
static void tracepoint_probe_create_sals_from_address ( char **  arg,
struct linespec_result canonical,
enum bptype  type_wanted,
char *  addr_start,
char **  copy_arg 
)
static

Definition at line 13335 of file breakpoint.c.

References bkpt_probe_create_sals_from_address().

Referenced by initialize_breakpoint_ops().

static void tracepoint_probe_decode_linespec ( struct breakpoint b,
char **  s,
struct symtabs_and_lines sals 
)
static

Definition at line 13346 of file breakpoint.c.

References bkpt_probe_decode_linespec().

Referenced by initialize_breakpoint_ops().

static void tracepoint_re_set ( struct breakpoint b)
static

Definition at line 13210 of file breakpoint.c.

References breakpoint_re_set_default().

Referenced by initialize_breakpoint_ops().

static void tracepoints_info ( char *  args,
int  from_tty 
)
static
static const char* translate_condition_evaluation_mode ( const char *  mode)
static
static int unduplicated_should_be_inserted ( struct bp_location bl)
static

Definition at line 2219 of file breakpoint.c.

References bp_location::duplicate, and should_be_inserted().

Referenced by update_global_location_list().

void until_break_command ( char *  arg,
int  from_tty,
int  anywhere 
)
static void until_break_command_continuation ( void *  arg,
int  err 
)
static
void update_breakpoint_locations ( struct breakpoint b,
struct symtabs_and_lines  sals,
struct symtabs_and_lines  sals_end 
)
void update_breakpoints_after_exec ( void  )
static void update_dprintf_command_list ( struct breakpoint b)
static
static void update_dprintf_commands ( char *  args,
int  from_tty,
struct cmd_list_element c 
)
static
static void update_global_location_list ( enum ugll_insert_mode  insert_mode)
static

Definition at line 12141 of file breakpoint.c.

References _, bp_location::address, ALL_BP_LOCATIONS, ALL_BREAKPOINTS, bp_access_watchpoint, bp_hardware_watchpoint, bp_location, bp_location_compare(), bp_location_count, bp_location_target_extensions_update(), bp_read_watchpoint, breakpoint_address_is_meaningful(), breakpoint_locations_match(), breakpoints_should_be_inserted_now(), bp_location::condition_changed, condition_modified, condition_unchanged, decref_bp_location(), do_cleanups(), download_tracepoint_locations(), bp_location::duplicate, bp_location::events_till_retirement, force_breakpoint_reinsertion(), gdb_assert, insert_breakpoint_locations(), bp_location::inserted, is_breakpoint(), is_hardware_watchpoint(), is_tracepoint(), breakpoint::loc, make_cleanup(), mark_uninserted, need_moribund_for_location_type(), bp_location::needs_update, bp_location::next, non_stop, program_space::num, breakpoint::number, overlay_debugging, bp_location::owner, printf_filtered(), bp_location::pspace, qsort, remove_breakpoint(), bp_location::section, should_be_inserted(), swap_insertion(), thread_count(), breakpoint::type, UGLL_DONT_INSERT, UGLL_INSERT, unduplicated_should_be_inserted(), update_inserted_breakpoint_locations(), VEC_safe_push, bp_location::watchpoint_type, xfree(), and xmalloc().

Referenced by bpstat_stop_status(), break_range_command(), breakpoint_program_space_exit(), condition_command(), create_breakpoint(), create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), delete_breakpoint(), disable_breakpoint(), disable_breakpoints_before_startup(), disable_command(), disable_overlay_breakpoints(), disable_watchpoints_before_interactive_call_start(), enable_breakpoint_disp(), enable_command(), enable_overlay_breakpoints(), enable_watchpoints_after_interactive_call_stop(), insert_breakpoints(), insert_single_step_breakpoint(), install_breakpoint(), set_condition_evaluation_mode(), update_breakpoint_locations(), and update_global_location_list_nothrow().

static void update_global_location_list_nothrow ( enum ugll_insert_mode  insert_mode)
static
static void update_inserted_breakpoint_locations ( void  )
static
static struct symtab_and_line update_static_tracepoint ( struct breakpoint b,
struct symtab_and_line  sal 
)
static
static void update_watchpoint ( struct watchpoint b,
int  reparse 
)
static

Definition at line 1814 of file breakpoint.c.

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

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

int user_breakpoint_p ( struct breakpoint b)
static void validate_commands_for_breakpoint ( struct breakpoint b,
struct command_line commands 
)
static
VEC ( bp_location_p  )
static VEC ( char_ptr  )
static
VEC ( breakpoint_p  )
static void watch_command ( char *  arg,
int  from_tty 
)
static

Definition at line 11375 of file breakpoint.c.

References hw_write, and watch_maybe_just_location().

Referenced by _initialize_breakpoint().

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

Definition at line 10934 of file breakpoint.c.

References _, bp_location::address, adjust_breakpoint_address(), cleanup::arg, watchpoint::base, block_innermost_frame(), bp_access_watchpoint, bp_enabled, bp_hardware_watchpoint, bp_read_watchpoint, bp_watchpoint_scope, CATCH, check_typedef(), watchpoint::cond_exp_valid_block, breakpoint::cond_string, core_addr_to_string(), create_internal_breakpoint(), current_program_space, delete_breakpoint(), disp_del, disp_donttouch, breakpoint::disposition, do_cleanups(), breakpoint::enable_state, END_CATCH, error(), watchpoint::exp, watchpoint::exp_string, watchpoint::exp_string_reparse, watchpoint::exp_valid_block, fetch_subexp_value(), breakpoint::frame_id, frame_id_p(), frame_unwind_caller_arch(), frame_unwind_caller_id(), frame_unwind_caller_pc(), bp_location::gdbarch, get_frame_id(), hw_access, hw_read, watchpoint::hw_wp_mask, inferior_ptid, init_raw_breakpoint_without_location(), innermost_block, install_breakpoint(), invalid_thread_id_error(), breakpoint::language, language_c, len, breakpoint::loc, make_cleanup(), masked_watchpoint_breakpoint_ops, momentary_breakpoint_ops, name, null_frame_id, null_ptid, parse_exp_1(), parse_to_comma_and_eval(), breakpoint::pspace, breakpoint::related_breakpoint, release_value(), bp_location::requested_address, RETURN_MASK_ALL, savestring(), skip_spaces_const(), skip_to_space_const(), startswith(), target_masked_watch_num_registers(), breakpoint::thread, throw_exception(), TRY, breakpoint::type, TYPE_TARGET_TYPE, type_to_string(), update_watchpoint(), watchpoint::val, watchpoint::val_bitpos, watchpoint::val_bitsize, watchpoint::val_valid, valid_thread_id(), value_addr(), value_as_address(), value_bitpos(), value_bitsize(), value_free_to_mark(), value_mark(), value_type(), watchpoint_breakpoint_ops, watchpoint_exp_is_const(), watchpoint::watchpoint_frame, watchpoint::watchpoint_thread, xfree(), and xstrprintf().

Referenced by awatch_command_wrapper(), rwatch_command_wrapper(), watch_command_wrapper(), and watch_maybe_just_location().

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

Definition at line 11350 of file breakpoint.c.

References hw_write, and watch_command_1().

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

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

Definition at line 11359 of file breakpoint.c.

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

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

static int watchpoint_check ( void *  p)
static
static void watchpoint_del_at_next_stop ( struct watchpoint w)
static
static int watchpoint_exp_is_const ( const struct expression exp)
static
static int watchpoint_in_thread_scope ( struct watchpoint b)
static
static int watchpoint_locations_match ( struct bp_location loc1,
struct bp_location loc2 
)
static
static void watchpoint_value_print ( struct value val,
struct ui_file stream 
)
static

Definition at line 4690 of file breakpoint.c.

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

Referenced by print_it_watchpoint().

static void watchpoints_info ( char *  args,
int  from_tty 
)
static

Definition at line 6839 of file breakpoint.c.

References breakpoint_1(), current_uiout, is_watchpoint(), and ui_out_message().

Referenced by _initialize_breakpoint().

int watchpoints_triggered ( struct target_waitstatus ws)
static int works_in_software_mode_masked_watchpoint ( const struct breakpoint b)
static

Definition at line 10781 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static int works_in_software_mode_watchpoint ( const struct breakpoint b)
static

Definition at line 10558 of file breakpoint.c.

References bp_hardware_watchpoint, bp_watchpoint, and breakpoint::type.

Referenced by initialize_breakpoint_ops().

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

Definition at line 5926 of file breakpoint.c.

References gdb_assert, ui_out_query_field(), and wrap_indent.

Referenced by print_breakpoint_location().

Variable Documentation

int always_inserted_mode = 0
static

Definition at line 447 of file breakpoint.c.

int automatic_hardware_breakpoints
static

Definition at line 429 of file breakpoint.c.

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:12748
static void base_breakpoint_re_set(struct breakpoint *b)
Definition: breakpoint.c:12634
static void base_breakpoint_print_mention(struct breakpoint *b)
Definition: breakpoint.c:12701
static void base_breakpoint_print_recreate(struct breakpoint *b, struct ui_file *fp)
Definition: breakpoint.c:12707
static void base_breakpoint_create_sals_from_address(char **arg, struct linespec_result *canonical, enum bptype type_wanted, char *addr_start, char **copy_arg)
Definition: breakpoint.c:12713
static struct bp_location * base_breakpoint_allocate_location(struct breakpoint *self)
Definition: breakpoint.c:12624
static void base_breakpoint_print_one_detail(const struct breakpoint *self, struct ui_out *uiout)
Definition: breakpoint.c:12694
static enum print_stop_action base_breakpoint_print_it(bpstat bs)
Definition: breakpoint.c:12688
static void base_breakpoint_dtor(struct breakpoint *self)
Definition: breakpoint.c:12613
static int base_breakpoint_works_in_software_mode(const struct breakpoint *b)
Definition: breakpoint.c:12673
static void base_breakpoint_check_status(bpstat bs)
Definition: breakpoint.c:12664
static int base_breakpoint_resources_needed(const struct bp_location *bl)
Definition: breakpoint.c:12682
static int base_breakpoint_remove_location(struct bp_location *bl)
Definition: breakpoint.c:12649
static void base_breakpoint_decode_linespec(struct breakpoint *b, char **s, struct symtabs_and_lines *sals)
Definition: breakpoint.c:12739
static void base_breakpoint_after_condition_true(struct bpstats *bs)
Definition: breakpoint.c:12756
static int base_breakpoint_breakpoint_hit(const struct bp_location *bl, struct address_space *aspace, CORE_ADDR bp_addr, const struct target_waitstatus *ws)
Definition: breakpoint.c:12655
static int base_breakpoint_insert_location(struct bp_location *bl)
Definition: breakpoint.c:12643
static void base_breakpoint_create_breakpoints_sal(struct gdbarch *gdbarch, struct linespec_result *c, char *cond_string, 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:12723

Definition at line 12761 of file breakpoint.c.

Referenced by dtor_catch_exec(), dtor_catch_solib(), dtor_catch_syscall(), dtor_watchpoint(), initialize_breakpoint_ops(), initialize_signal_catchpoint_ops(), initialize_syscall_catchpoint_ops(), and signal_catchpoint_dtor().

struct breakpoint_ops bkpt_base_breakpoint_ops
static

Definition at line 300 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

struct breakpoint_ops bkpt_breakpoint_ops
struct breakpoint_ops bkpt_probe_breakpoint_ops
static

Definition at line 316 of file breakpoint.c.

Referenced by break_command_1(), and initialize_breakpoint_ops().

struct bp_location** bp_location
static

Definition at line 599 of file breakpoint.c.

Referenced by update_global_location_list().

unsigned bp_location_count
static

Definition at line 603 of file breakpoint.c.

Referenced by breakpoint_xfer_memory(), and update_global_location_list().

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

Definition at line 12604 of file breakpoint.c.

CORE_ADDR bp_location_placed_address_before_address_max
static

Definition at line 611 of file breakpoint.c.

CORE_ADDR bp_location_shadow_len_after_address_max
static

Definition at line 619 of file breakpoint.c.

struct breakpoint* breakpoint_chain

Definition at line 595 of file breakpoint.c.

Referenced by add_to_breakpoint_chain(), and tui_update_breakpoint_info().

const struct objfile_data* breakpoint_objfile_key
static

Definition at line 3363 of file breakpoint.c.

int breakpoint_proceeded
static

Definition at line 380 of file breakpoint.c.

int can_use_hw_watchpoints
static

Definition at line 396 of file breakpoint.c.

struct cmd_list_element* catch_cmdlist
static

Definition at line 15468 of file breakpoint.c.

struct breakpoint_ops catch_exec_breakpoint_ops
static

Definition at line 8611 of file breakpoint.c.

Referenced by catch_exec_command_1(), and initialize_breakpoint_ops().

struct breakpoint_ops catch_fork_breakpoint_ops
static

Definition at line 8037 of file breakpoint.c.

Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().

struct breakpoint_ops catch_solib_breakpoint_ops
static

Definition at line 8356 of file breakpoint.c.

Referenced by add_solib_catchpoint(), and initialize_breakpoint_ops().

struct breakpoint_ops catch_vfork_breakpoint_ops
static

Definition at line 8153 of file breakpoint.c.

Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().

const char condition_evaluation_auto[] = "auto"
static

Definition at line 487 of file breakpoint.c.

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

Definition at line 484 of file breakpoint.c.

Referenced by bp_condition_evaluator().

const char* const condition_evaluation_enums[]
static
Initial value:
= {
NULL
}
static const char condition_evaluation_auto[]
Definition: breakpoint.c:487
static const char condition_evaluation_host[]
Definition: breakpoint.c:488
static const char condition_evaluation_target[]
Definition: breakpoint.c:489

Definition at line 490 of file breakpoint.c.

const char condition_evaluation_host[] = "host"
static
const char* condition_evaluation_mode = condition_evaluation_auto
static

Definition at line 502 of file breakpoint.c.

Referenced by set_condition_evaluation_mode().

const char* condition_evaluation_mode_1 = condition_evaluation_auto
static

Definition at line 498 of file breakpoint.c.

Referenced by set_condition_evaluation_mode().

const char condition_evaluation_target[] = "target"
static
int disconnected_dprintf = 1
static

Definition at line 358 of file breakpoint.c.

struct breakpoint_ops dprintf_breakpoint_ops

Definition at line 319 of file breakpoint.c.

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

char* dprintf_channel = ""
static

Definition at line 354 of file breakpoint.c.

char* dprintf_function = ""
static

Definition at line 344 of file breakpoint.c.

const char* dprintf_style = dprintf_style_gdb
static

Definition at line 337 of file breakpoint.c.

const char dprintf_style_agent[] = "agent"
static

Definition at line 330 of file breakpoint.c.

const char dprintf_style_call[] = "call"
static

Definition at line 329 of file breakpoint.c.

const char* const dprintf_style_enums[]
static
Initial value:
= {
NULL
}
static const char dprintf_style_call[]
Definition: breakpoint.c:329
static const char dprintf_style_agent[]
Definition: breakpoint.c:330
static const char dprintf_style_gdb[]
Definition: breakpoint.c:328

Definition at line 331 of file breakpoint.c.

const char dprintf_style_gdb[] = "gdb"
static

Definition at line 328 of file breakpoint.c.

struct cmd_list_element* enablebreaklist = NULL
static

Definition at line 15756 of file breakpoint.c.

int executing_breakpoint_commands
static

Definition at line 545 of file breakpoint.c.

int internal_breakpoint_number = -1
static

Definition at line 3288 of file breakpoint.c.

struct breakpoint_ops internal_breakpoint_ops
static
struct breakpoint_ops longjmp_breakpoint_ops
static

Definition at line 309 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), and set_longjmp_breakpoint().

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

Definition at line 3329 of file breakpoint.c.

struct breakpoint_ops masked_watchpoint_breakpoint_ops
static
struct breakpoint_ops momentary_breakpoint_ops
static
struct minimal_symbol msym_not_found
static
int next_cmd
static

Definition at line 14955 of file breakpoint.c.

int overlay_events_enabled
static

Definition at line 548 of file breakpoint.c.

enum auto_boolean pending_break_support
static

Definition at line 413 of file breakpoint.c.

struct breakpoint_ops ranged_breakpoint_ops
static

Definition at line 10174 of file breakpoint.c.

Referenced by break_range_command(), and initialize_breakpoint_ops().

int rbreak_start_breakpoint_count
static

Definition at line 680 of file breakpoint.c.

Referenced by end_rbreak_breakpoints().

struct breakpoint_ops strace_marker_breakpoint_ops
static

Definition at line 13527 of file breakpoint.c.

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

int target_exact_watchpoints = 0

Definition at line 551 of file breakpoint.c.

Referenced by _initialize_rs6000_tdep().

struct cmd_list_element* tcatch_cmdlist
static

Definition at line 15471 of file breakpoint.c.

struct uploaded_tp* this_utp
static

Definition at line 14954 of file breakpoint.c.

struct breakpoint_ops tracepoint_breakpoint_ops
struct breakpoint_ops tracepoint_probe_breakpoint_ops
static

Definition at line 13353 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), and trace_command().

struct breakpoint_ops watchpoint_breakpoint_ops
static

Definition at line 10740 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), and watch_command_1().