GDB (xrefs)
Classes | Defines | Enumerations | Functions | Variables
/home/stan/gdb/src/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 "gdbthread.h"
#include "target.h"
#include "language.h"
#include "gdb_string.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 "gdb_assert.h"
#include "block.h"
#include "solib.h"
#include "solist.h"
#include "observer.h"
#include "exceptions.h"
#include "memattr.h"
#include "ada-lang.h"
#include "top.h"
#include "valprint.h"
#include "jit.h"
#include "xml-syscall.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 "format.h"
#include "readline/readline.h"
#include "readline/history.h"
#include "mi/mi-common.h"
#include "python/python.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  syscall_catchpoint
struct  catch_syscall_inferior_data
struct  exec_catchpoint
struct  until_break_command_continuation_args
struct  disp_data

Defines

#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) or `-probe-stap' (for a SystemTap 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  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)
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 breakpoint_address_match (struct address_space *aspace1, CORE_ADDR addr1, struct address_space *aspace2, CORE_ADDR addr2)
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 detach_single_step_breakpoints (void)
static int single_step_breakpoint_inserted_here_p (struct address_space *, CORE_ADDR pc)
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 (int)
static void update_global_location_list_nothrow (int)
static int is_hardware_watchpoint (const struct breakpoint *bpt)
static void insert_breakpoint_locations (void)
static int syscall_catchpoint_p (struct breakpoint *b)
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_always_inserted_mode (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 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_line
alloc_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, 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)
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 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_data
get_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)
int regular_breakpoint_inserted_here_p (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_watchpoint_inserted_in_range (struct address_space *aspace, CORE_ADDR addr, ULONGEST len)
int breakpoint_thread_match (struct address_space *aspace, CORE_ADDR pc, ptid_t ptid)
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)
enum bpstat_signal_value 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)
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)
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 make_breakpoint_permanent (struct breakpoint *b)
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 (int thread)
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)
struct breakpointcreate_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 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)
static void dtor_catch_syscall (struct breakpoint *b)
static struct
catch_syscall_inferior_data
get_catch_syscall_inferior_data (struct inferior *inf)
static void catch_syscall_inferior_data_cleanup (struct inferior *inf, void *arg)
static int insert_catch_syscall (struct bp_location *bl)
static int remove_catch_syscall (struct bp_location *bl)
static int breakpoint_hit_catch_syscall (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_syscall (bpstat bs)
static void print_one_catch_syscall (struct breakpoint *b, struct bp_location **last_loc)
static void print_mention_catch_syscall (struct breakpoint *b)
static void print_recreate_catch_syscall (struct breakpoint *b, struct ui_file *fp)
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)
static void create_syscall_event_catchpoint (int tempflag, VEC(int)*filter, const struct breakpoint_ops *ops)
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)
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)
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 enum bpstat_signal_value 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 VEC (int)
static void catch_syscall_command_1 (char *arg, int from_tty, struct cmd_list_element *command)
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 enum bpstat_signal_value 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 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 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 * deprecated_insert_raw_breakpoint (struct gdbarch *gdbarch, struct address_space *aspace, CORE_ADDR pc)
int deprecated_remove_raw_breakpoint (struct gdbarch *gdbarch, void *bp)
void insert_single_step_breakpoint (struct gdbarch *gdbarch, struct address_space *aspace, CORE_ADDR next_pc)
int single_step_breakpoints_inserted (void)
void remove_single_step_breakpoints (void)
void cancel_single_step_breakpoints (void)
static int is_syscall_catchpoint_enabled (struct breakpoint *bp)
int catch_syscall_enabled (void)
int catching_syscall_number (int syscall_number)
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, int optional_p)
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, void(*sfunc)(char *args, int from_tty, struct cmd_list_element *command), completer_ftype *completer, void *user_data_catch, void *user_data_tcatch)
static void clear_syscall_counts (struct inferior *inf)
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

struct breakpoint_ops base_breakpoint_ops
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 enum auto_boolean always_inserted_mode = AUTO_BOOLEAN_AUTO
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 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 inferior_data * catch_syscall_inferior_data = NULL
static struct breakpoint_ops catch_syscall_breakpoint_ops
static struct breakpoint_ops catch_exec_breakpoint_ops
static struct breakpoint_ops ranged_breakpoint_ops
static struct breakpoint_ops watchpoint_breakpoint_ops
static struct breakpoint_ops masked_watchpoint_breakpoint_ops
static struct bp_location_ops bp_location_ops
struct breakpoint_ops tracepoint_breakpoint_ops
static struct breakpoint_ops tracepoint_probe_breakpoint_ops
static struct breakpoint_ops strace_marker_breakpoint_ops
static void * single_step_breakpoints [2]
static struct gdbarchsingle_step_gdbarch [2]
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

Define 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++)

Definition at line 549 of file breakpoint.c.

Referenced by build_target_command_list(), build_target_condition_list(), and force_breakpoint_reinsertion().

#define ALL_BREAKPOINTS (   B)    for (B = breakpoint_chain; B; B = B->next)
#define ALL_BREAKPOINTS_SAFE (   B,
  TMP 
)
#define ALL_TRACEPOINTS (   B)
#define BP_HARDWAREFLAG   2

Definition at line 4763 of file breakpoint.c.

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

#define BP_TEMPFLAG   1

Definition at line 4762 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) or `-probe-stap' (for a SystemTap 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 15658 of file breakpoint.c.

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

Referenced by create_longjmp_master_breakpoint().

#define WP_DELETED   1

Definition at line 4754 of file breakpoint.c.

Referenced by bpstat_check_watchpoint(), and watchpoint_check().

#define WP_IGNORE   4

Definition at line 4760 of file breakpoint.c.

Referenced by bpstat_check_watchpoint(), and watchpoint_check().

#define WP_VALUE_CHANGED   2

Definition at line 4756 of file breakpoint.c.

Referenced by bpstat_check_watchpoint(), and watchpoint_check().

#define WP_VALUE_NOT_CHANGED   3

Definition at line 4758 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 11530 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 86 of file breakpoint.c.

Enumerator:
mark_inserted 
mark_uninserted 

Definition at line 196 of file breakpoint.c.


Function Documentation

void _initialize_breakpoint ( void  )
void add_catch_command ( char *  name,
char *  docstring,
void(*)(char *args, int from_tty, struct cmd_list_element *command)  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, read]
void add_solib_catchpoint ( char *  arg,
int  is_load,
int  is_temp,
int  enabled 
)
static void add_to_breakpoint_chain ( struct breakpoint b) [static]

Definition at line 6976 of file breakpoint.c.

References breakpoint_chain, and breakpoint::next.

Referenced by install_breakpoint().

static struct symtabs_and_lines addr_string_to_sals ( struct breakpoint b,
char *  addr_string,
int found 
) [static, read]
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 9989 of file breakpoint.c.

References _, and error().

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, read]
static struct bp_location * allocate_bp_location ( struct breakpoint bpt) [static, read]
static int ambiguous_names_p ( struct bp_location loc) [static]
static void awatch_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 11352 of file breakpoint.c.

References hw_access, and watch_maybe_just_location().

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

Definition at line 11346 of file breakpoint.c.

References hw_access, and watch_command_1().

Referenced by bppy_init(), and mi_cmd_break_watch().

static void base_breakpoint_after_condition_true ( struct bpstats bs) [static]

Definition at line 12814 of file breakpoint.c.

static struct bp_location* base_breakpoint_allocate_location ( struct breakpoint self) [static, read]

Definition at line 12682 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 12713 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_check_status ( bpstat  bs) [static]

Definition at line 12722 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 12781 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 12771 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 12797 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_dtor ( struct breakpoint self) [static]

Definition at line 12671 of file breakpoint.c.

References decref_counted_command_line(), and xfree().

static enum bpstat_signal_value base_breakpoint_explains_signal ( struct breakpoint b,
enum gdb_signal  sig 
) [static]

Definition at line 12806 of file breakpoint.c.

References BPSTAT_SIGNAL_HIDE.

static int base_breakpoint_insert_location ( struct bp_location bl) [static]

Definition at line 12701 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 12746 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_print_mention ( struct breakpoint b) [static]

Definition at line 12759 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 12752 of file breakpoint.c.

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

Definition at line 12765 of file breakpoint.c.

References internal_error_pure_virtual_called.

static void base_breakpoint_re_set ( struct breakpoint b) [static]

Definition at line 12692 of file breakpoint.c.

static int base_breakpoint_remove_location ( struct bp_location bl) [static]

Definition at line 12707 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 12740 of file breakpoint.c.

References internal_error_pure_virtual_called.

Definition at line 12731 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 13002 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 12992 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 13023 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 867 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 12654 of file breakpoint.c.

References free_agent_expr(), and xfree().

static int bp_location_has_shadow ( struct bp_location bl) [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]

Definition at line 5637 of file breakpoint.c.

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

Referenced by bpstat_stop_status(), and handle_inferior_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  )
void bpstat_do_actions ( void  )
static int bpstat_do_actions_1 ( bpstat bsp) [static]
enum bpstat_signal_value bpstat_explains_signal ( bpstat  bsp,
enum gdb_signal  sig 
)
bpstat bpstat_find_breakpoint ( bpstat  bsp,
struct breakpoint breakpoint 
)

Definition at line 4195 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 4252 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  )

Definition at line 5626 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_watchpoint, breakpoint::loc, and breakpoint::type.

Referenced by currently_stepping(), proceed(), and resume().

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) [read]
static const char* bptype_string ( enum bptype  type) [static]
void break_command ( char *  arg,
int  from_tty 
)

Definition at line 9871 of file breakpoint.c.

References break_command_1().

Referenced by 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 6666 of file breakpoint.c.

References bp_catchpoint, bp_watchpoint, and breakpoint::type.

Referenced by update_global_location_list().

static int breakpoint_address_match ( struct address_space aspace1,
CORE_ADDR  addr1,
struct address_space aspace2,
CORE_ADDR  addr2 
) [static]
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 6812 of file breakpoint.c.

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

Referenced by adjust_breakpoint_address(), and bkpt_print_it().

struct command_line* breakpoint_commands ( struct breakpoint b) [read]
static int breakpoint_cond_eval ( void *  exp) [static]
static const char* breakpoint_condition_evaluation_mode ( void  ) [static]
void breakpoint_free_objfile ( struct objfile objfile)

Definition at line 15784 of file breakpoint.c.

References ALL_BP_LOCATIONS, symtab::objfile, and bp_location::symtab.

Referenced by free_objfile().

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_syscall ( 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 9358 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 
)

Definition at line 1225 of file breakpoint.c.

References observer_notify_breakpoint_modified(), and breakpoint::silent.

Referenced by bppy_set_silent().

void breakpoint_set_task ( struct breakpoint b,
int  task 
)

Definition at line 1251 of file breakpoint.c.

References observer_notify_breakpoint_modified(), and breakpoint::task.

Referenced by bppy_set_task().

void breakpoint_set_thread ( struct breakpoint b,
int  thread 
)

Definition at line 1238 of file breakpoint.c.

References observer_notify_breakpoint_modified(), and breakpoint::thread.

Referenced by bppy_set_thread().

int breakpoint_thread_match ( struct address_space aspace,
CORE_ADDR  pc,
ptid_t  ptid 
)
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 6556 of file breakpoint.c.

References breakpoint_1(), and default_collect_info().

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]

Definition at line 14973 of file breakpoint.c.

References xfree().

Referenced by handle_inferior_event().

static void catch_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 11743 of file breakpoint.c.

References _, and error().

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

References catch_load_or_unload().

static void catch_load_or_unload ( char *  arg,
int  from_tty,
int  is_load,
struct cmd_list_element command 
) [static]
static void catch_syscall_command_1 ( char *  arg,
int  from_tty,
struct cmd_list_element command 
) [static]
static void catch_syscall_inferior_data_cleanup ( struct inferior inf,
void *  arg 
) [static]

Definition at line 8121 of file breakpoint.c.

References xfree().

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

Definition at line 8049 of file breakpoint.c.

References catch_load_or_unload().

int catching_syscall_number ( int  syscall_number)
static void check_fast_tracepoint_sals ( struct gdbarch gdbarch,
struct symtabs_and_lines sals 
) [static]
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 4321 of file breakpoint.c.

Referenced by bpstat_do_actions_1().

void clear_breakpoint_hit_counts ( void  )

Definition at line 656 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]
static void clear_syscall_counts ( struct inferior inf) [static]
struct breakpoint* clone_momentary_breakpoint ( struct breakpoint orig) [read]

Definition at line 8826 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 4330 of file breakpoint.c.

References command_line::line, and xdb_commands.

Referenced by bpstat_do_actions_1(), and bpstat_stop_status().

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

Definition at line 1385 of file breakpoint.c.

References commands_command_1().

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

Referenced by clear_command().

static void condition_command ( char *  arg,
int  from_tty 
) [static]
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 9552 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, 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, gdb_exception::error, error(), exception_print(), breakpoint::extra_string, find_condition_and_thread(), gdb_assert, GDB_NO_ERROR, 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, gdb_exception::reason, RETURN_ERROR, RETURN_MASK_ALL, linespec_sals::sals, symtabs_and_lines::sals, throw_exception(), TRY_CATCH, 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(), gdb_set_bp(), 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, read]
struct breakpoint* create_jit_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
) [read]
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 
) [read]
static void create_std_terminate_master_breakpoint ( void  ) [static]
static void create_syscall_event_catchpoint ( int  tempflag,
VEC(int)*  filter,
const struct breakpoint_ops ops 
) [static]
struct breakpoint* create_thread_event_breakpoint ( struct gdbarch gdbarch,
CORE_ADDR  address 
) [read]
struct tracepoint* create_tracepoint_from_upload ( struct uploaded_tp utp) [read]
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, read]
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)
static void delete_trace_command ( char *  arg,
int  from_tty 
) [static]
void* deprecated_insert_raw_breakpoint ( struct gdbarch gdbarch,
struct address_space aspace,
CORE_ADDR  pc 
)
int deprecated_remove_raw_breakpoint ( struct gdbarch gdbarch,
void *  bp 
)
static void describe_other_breakpoints ( struct gdbarch gdbarch,
struct program_space pspace,
CORE_ADDR  pc,
struct obj_section section,
int  thread 
) [static]
static void detach_single_step_breakpoints ( void  ) [static]

Definition at line 14990 of file breakpoint.c.

References target_remove_breakpoint().

Referenced by detach_breakpoints().

void disable_breakpoint ( struct breakpoint bpt)
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 15299 of file breakpoint.c.

References disable_command().

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 708 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 13718 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 13669 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 14557 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 14687 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 14566 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 14696 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 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 7798 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

static void dtor_catch_syscall ( struct breakpoint b) [static]

Definition at line 8077 of file breakpoint.c.

References base_breakpoint_ops, breakpoint_ops::dtor, and VEC_free.

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

References do_map_enable_delete_breakpoint(), and map_breakpoint_numbers().

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

Definition at line 14773 of file breakpoint.c.

References do_map_enable_once_breakpoint(), and map_breakpoint_numbers().

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

Definition at line 15291 of file breakpoint.c.

References enable_command().

void end_rbreak_breakpoints ( void  )

Definition at line 648 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 11505 of file breakpoint.c.

References skip_spaces().

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

static enum bpstat_signal_value explains_signal_watchpoint ( struct breakpoint b,
enum gdb_signal  sig 
) [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, read]
static void force_breakpoint_reinsertion ( struct bp_location bl) [static]
static void free_bp_location ( struct bp_location loc) [static]

Definition at line 6946 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 3135 of file breakpoint.c.

References VEC_free.

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) [read]
static struct breakpoint_objfile_data* get_breakpoint_objfile_data ( struct objfile objfile) [static, read]
static struct catch_syscall_inferior_data* get_catch_syscall_inferior_data ( struct inferior inf) [static, read]
static struct bp_location ** get_first_locp_gte_addr ( CORE_ADDR  address) [static, read]

Definition at line 884 of file breakpoint.c.

References bp_location::address, bp_location_compare_addrs(), and memset().

struct gdbarch* get_sal_arch ( struct symtab_and_line  sal) [read]
struct tracepoint* get_tracepoint ( int  num) [read]
struct tracepoint* get_tracepoint_by_number ( char **  arg,
struct get_number_or_range_state state,
int  optional_p 
) [read]

Definition at line 15422 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]
static void hbreak_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 9883 of file breakpoint.c.

References BP_HARDWAREFLAG, and break_command_1().

Referenced by 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 6955 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 681 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 15794 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_syscall(), breakpoint_hit_catch_vfork(), breakpoint_hit_ranged_breakpoint(), breakpoint_hit_watchpoint(), catch_exec_breakpoint_ops, catch_fork_breakpoint_ops, catch_solib_breakpoint_ops, catch_syscall_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_ops, dprintf_print_recreate(), dprintf_re_set(), breakpoint_ops::dtor, dtor_catch_exec(), dtor_catch_solib(), dtor_catch_syscall(), dtor_watchpoint(), breakpoint_ops::explains_signal, explains_signal_watchpoint(), insert_catch_exec(), insert_catch_fork(), insert_catch_solib(), insert_catch_syscall(), 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_syscall(), 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_syscall(), 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_syscall(), 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_syscall(), 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_syscall(), 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_ada_catchpoint_ops(), initialize_signal_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 2372 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(), disp_del_at_next_stop, breakpoint::disposition, do_cleanups(), bp_location::duplicate, breakpoint::enable_state, fprintf_filtered(), fprintf_unfiltered(), gdb_assert, gdb_stdout, bp_location::gdbarch, 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_message(), gdb_exception::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, bp_target_info::placed_address_space, bp_location::pspace, gdb_exception::reason, RETURN_MASK_ALL, bp_location::section, section_is_mapped(), section_is_overlay(), bp_location::shlib_disabled, should_be_inserted(), solib_name_from_address(), bp_location::target_info, target_insert_breakpoint(), TARGET_XFER_E_IO, TRY_CATCH, 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 8530 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 7548 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 7810 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static int insert_catch_syscall ( struct bp_location bl) [static]
static int insert_catch_vfork ( struct bp_location bl) [static]

Definition at line 7665 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 13121 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 9408 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 4117 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 15745 of file breakpoint.c.

References bp_shlib_event, and breakpoint::type.

Referenced by pc_at_non_inline_function().

static int is_syscall_catchpoint_enabled ( struct breakpoint bp) [static]
int is_tracepoint ( const struct breakpoint b)
static int is_tracepoint_type ( enum bptype  type) [static]
int is_watchpoint ( const struct breakpoint bpt)

Definition at line 2740 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 
) [read]
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 6579 of file breakpoint.c.

References breakpoint_1(), and default_collect_info().

void make_breakpoint_permanent ( struct breakpoint b)
static struct cleanup* make_cleanup_decref_counted_command_line ( struct counted_command_line **  cmdp) [static, read]
struct cleanup* make_cleanup_delete_breakpoint ( struct breakpoint b) [read]

Definition at line 13675 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 *  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 13138 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 13172 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static void momentary_bkpt_re_set ( struct breakpoint b) [static]

Definition at line 13129 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 
) [static, read]
int moribund_breakpoint_here_p ( struct address_space aspace,
CORE_ADDR  pc 
)

Definition at line 3929 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 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, read]
static struct agent_expr* parse_cond_to_aexpr ( CORE_ADDR  scope,
struct expression cond 
) [static, read]
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, read]
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_syscall ( 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 8609 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 7642 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 7957 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

static void print_mention_catch_syscall ( struct breakpoint b) [static]
static void print_mention_catch_vfork ( struct breakpoint b) [static]

Definition at line 7758 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 5905 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_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, bp_location::pspace, inferior::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_syscall ( struct breakpoint b,
struct bp_location **  last_loc 
) [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 8618 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 7651 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 7966 of file breakpoint.c.

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

Referenced by initialize_breakpoint_ops().

static void print_recreate_catch_syscall ( struct breakpoint b,
struct ui_file fp 
) [static]
static void print_recreate_catch_vfork ( struct breakpoint b,
struct ui_file fp 
) [static]

Definition at line 7767 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]
static void re_set_watchpoint ( struct breakpoint b) [static]

Definition at line 10422 of file breakpoint.c.

References update_watchpoint().

Referenced by initialize_breakpoint_ops().

static char* read_uploaded_action ( void  ) [static]

Definition at line 15167 of file breakpoint.c.

References VEC_iterate.

Referenced by create_tracepoint_from_upload().

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  )
static int remove_catch_exec ( struct bp_location bl) [static]

Definition at line 8536 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 7557 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 7816 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static int remove_catch_syscall ( struct bp_location bl) [static]
static int remove_catch_vfork ( struct bp_location bl) [static]

Definition at line 7674 of file breakpoint.c.

References inferior_ptid, ptid_get_pid(), and target_remove_vfork_catchpoint.

Referenced by initialize_breakpoint_ops().

static int remove_masked_watchpoint ( struct bp_location bl) [static]
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 10015 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 11340 of file breakpoint.c.

References hw_read, and watch_maybe_just_location().

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

Definition at line 11334 of file breakpoint.c.

References hw_read, and watch_command_1().

Referenced by bppy_init(), 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 15624 of file breakpoint.c.

References save_breakpoints().

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

Definition at line 15719 of file breakpoint.c.

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

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

Definition at line 15632 of file breakpoint.c.

References is_tracepoint(), and save_breakpoints().

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

Definition at line 14809 of file breakpoint.c.

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

Definition at line 624 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 3035 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_momentary_breakpoint ( struct gdbarch gdbarch,
struct symtab_and_line  sal,
struct frame_id frame_id  ,
enum bptype  type 
) [read]
struct breakpoint* set_momentary_breakpoint_at_pc ( struct gdbarch gdbarch,
CORE_ADDR  pc,
enum bptype  type 
) [read]
struct breakpoint* set_raw_breakpoint ( struct gdbarch gdbarch,
struct symtab_and_line  sal,
enum bptype bptype  ,
const struct breakpoint_ops ops 
) [read]
static struct breakpoint* set_raw_breakpoint_without_location ( struct gdbarch gdbarch,
enum bptype bptype  ,
const struct breakpoint_ops ops 
) [static, read]
static void set_tracepoint_count ( int  num) [static]

Definition at line 15087 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]
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 415 of file breakpoint.c.

References _, and fprintf_filtered().

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

Definition at line 14814 of file breakpoint.c.

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

References _, and fprintf_filtered().

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

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

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

References _, and fprintf_filtered().

static int single_step_breakpoint_inserted_here_p ( struct address_space aspace,
CORE_ADDR  pc 
) [static]

Definition at line 14938 of file breakpoint.c.

Referenced by record_full_resume(), and record_full_wait_1().

void start_rbreak_breakpoints ( void  )

Definition at line 639 of file breakpoint.c.

Referenced by rbreak_command().

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

Definition at line 9895 of file breakpoint.c.

References _, and printf_filtered().

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

Definition at line 9936 of file breakpoint.c.

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

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

Definition at line 9903 of file breakpoint.c.

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

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 13567 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]
static int syscall_catchpoint_p ( struct breakpoint b) [static]

Definition at line 8441 of file breakpoint.c.

References catch_syscall_breakpoint_ops, and breakpoint::ops.

Referenced by is_syscall_catchpoint_enabled().

void tbreak_command ( char *  arg,
int  from_tty 
)

Definition at line 9877 of file breakpoint.c.

References BP_TEMPFLAG, and break_command_1().

Referenced by go_command(), and run_command_1().

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

Definition at line 11750 of file breakpoint.c.

References _, and error().

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

Definition at line 9889 of file breakpoint.c.

References BP_HARDWAREFLAG, BP_TEMPFLAG, and break_command_1().

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 13253 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 13339 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 13329 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 13360 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 6769 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 13372 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 13383 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 13247 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 2027 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 
)
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 ( int  should_insert) [static]

Definition at line 12194 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_permanent, bp_read_watchpoint, breakpoint_address_is_meaningful(), breakpoint_locations_match(), breakpoints_always_inserted_mode(), bp_location::condition_changed, condition_modified, condition_unchanged, decref_bp_location(), do_cleanups(), download_tracepoint_locations(), bp_location::duplicate, breakpoint::enable_state, bp_location::events_till_retirement, force_breakpoint_reinsertion(), gdb_assert, gdbarch_has_global_breakpoints(), have_live_inferiors(), insert_breakpoint_locations(), bp_location::inserted, internal_error(), is_breakpoint(), is_hardware_watchpoint(), is_tracepoint(), breakpoint::loc, make_cleanup(), mark_uninserted, 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(), target_gdbarch(), thread_count(), breakpoint::type, 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(), install_breakpoint(), set_condition_evaluation_mode(), update_breakpoint_locations(), and update_global_location_list_nothrow().

static void update_global_location_list_nothrow ( int  inserting) [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, read]
static void update_watchpoint ( struct watchpoint b,
int  reparse 
) [static]

Definition at line 1707 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, fetch_subexp_value(), frame_find_by_id(), bp_location::gdbarch, gdbarch_in_function_epilogue_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, 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_valid, value_address(), 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]

Definition at line 594 of file breakpoint.c.

References bp_enabled, breakpoint::enable_state, and save_cmdlist.

static VEC ( char_ptr  ) [static]
static VEC ( int  ) [static]
static void watch_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 11328 of file breakpoint.c.

References hw_write, and watch_maybe_just_location().

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

Definition at line 10899 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, 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, 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, gdb_exception::reason, breakpoint::related_breakpoint, release_value(), bp_location::requested_address, RETURN_MASK_ALL, savestring(), skip_spaces_const(), skip_to_space_const(), target_masked_watch_num_registers(), breakpoint::thread, throw_exception(), TRY_CATCH, breakpoint::type, TYPE_TARGET_TYPE, type_to_string(), update_watchpoint(), watchpoint::val, watchpoint::val_valid, valid_thread_id(), value_addr(), value_as_address(), 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 11303 of file breakpoint.c.

References hw_write, and watch_command_1().

Referenced by bppy_init(), and mi_cmd_break_watch().

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

Definition at line 11312 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 4457 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 6564 of file breakpoint.c.

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

Definition at line 10746 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

static int works_in_software_mode_watchpoint ( const struct breakpoint b) [static]

Definition at line 10523 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 5653 of file breakpoint.c.

References gdb_assert, memset(), ui_out_query_field(), and wrap_indent.

Referenced by print_breakpoint_location().


Variable Documentation

Definition at line 430 of file breakpoint.c.

Definition at line 413 of file breakpoint.c.

Definition at line 284 of file breakpoint.c.

Referenced by initialize_breakpoint_ops().

Definition at line 300 of file breakpoint.c.

Referenced by break_command_1(), and initialize_breakpoint_ops().

struct bp_location** bp_location [static]

Definition at line 569 of file breakpoint.c.

Referenced by update_global_location_list().

unsigned bp_location_count [static]

Definition at line 573 of file breakpoint.c.

Referenced by breakpoint_xfer_memory(), and update_global_location_list().

Initial value:

Definition at line 12662 of file breakpoint.c.

Definition at line 581 of file breakpoint.c.

Definition at line 589 of file breakpoint.c.

Definition at line 565 of file breakpoint.c.

Referenced by add_to_breakpoint_chain(), and tui_update_breakpoint_info().

struct objfile_data* breakpoint_objfile_key [static]

Definition at line 3101 of file breakpoint.c.

Definition at line 364 of file breakpoint.c.

Definition at line 380 of file breakpoint.c.

struct cmd_list_element* catch_cmdlist [static]

Definition at line 15679 of file breakpoint.c.

Definition at line 8624 of file breakpoint.c.

Referenced by catch_exec_command_1(), and initialize_breakpoint_ops().

Definition at line 7659 of file breakpoint.c.

Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().

Definition at line 7978 of file breakpoint.c.

Referenced by add_solib_catchpoint(), and initialize_breakpoint_ops().

struct inferior_data* catch_syscall_inferior_data = NULL [static]

Definition at line 8086 of file breakpoint.c.

Definition at line 7775 of file breakpoint.c.

Referenced by catch_fork_command_1(), and initialize_breakpoint_ops().

const char condition_evaluation_auto[] = "auto" [static]

Definition at line 457 of file breakpoint.c.

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

Definition at line 454 of file breakpoint.c.

Referenced by bp_condition_evaluator().

const char condition_evaluation_host[] = "host" [static]

Definition at line 472 of file breakpoint.c.

Referenced by set_condition_evaluation_mode().

Definition at line 468 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 342 of file breakpoint.c.

Definition at line 303 of file breakpoint.c.

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

char* dprintf_channel = "" [static]

Definition at line 338 of file breakpoint.c.

char* dprintf_function = "" [static]

Definition at line 328 of file breakpoint.c.

Definition at line 321 of file breakpoint.c.

const char dprintf_style_agent[] = "agent" [static]

Definition at line 314 of file breakpoint.c.

const char dprintf_style_call[] = "call" [static]

Definition at line 313 of file breakpoint.c.

const char* const dprintf_style_enums[] [static]
Initial value:

Definition at line 315 of file breakpoint.c.

const char dprintf_style_gdb[] = "gdb" [static]

Definition at line 312 of file breakpoint.c.

struct cmd_list_element* enablebreaklist = NULL [static]

Definition at line 15990 of file breakpoint.c.

Definition at line 515 of file breakpoint.c.

Definition at line 3026 of file breakpoint.c.

Definition at line 293 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 3067 of file breakpoint.c.

struct minimal_symbol msym_not_found [static]
int next_cmd [static]

Definition at line 15164 of file breakpoint.c.

Definition at line 518 of file breakpoint.c.

Definition at line 397 of file breakpoint.c.

Definition at line 10137 of file breakpoint.c.

Referenced by break_range_command(), and initialize_breakpoint_ops().

Definition at line 633 of file breakpoint.c.

Referenced by end_rbreak_breakpoints().

void* single_step_breakpoints[2] [static]

Definition at line 14897 of file breakpoint.c.

struct gdbarch* single_step_gdbarch[2] [static]

Definition at line 14898 of file breakpoint.c.

Definition at line 13564 of file breakpoint.c.

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

Definition at line 521 of file breakpoint.c.

Referenced by _initialize_rs6000_tdep().

struct cmd_list_element* tcatch_cmdlist [static]

Definition at line 15682 of file breakpoint.c.

struct uploaded_tp* this_utp [static]

Definition at line 15163 of file breakpoint.c.

Definition at line 13390 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), and trace_command().

Definition at line 10705 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), and watch_command_1().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines