GDB (xrefs)
Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/breakpoint.h File Reference
#include "frame.h"
#include "value.h"
#include "vec.h"
#include "ax.h"
#include "command.h"
#include "break-common.h"
#include "probe.h"
#include "location.h"
#include <vector>
#include "common/array-view.h"
#include "cli/cli-script.h"

Go to the source code of this file.

Classes

struct  bp_target_info
 
struct  bp_location_ops
 
class  bp_location
 
struct  breakpoint_ops
 
struct  breakpoint
 
struct  watchpoint
 
struct  tracepoint
 
struct  bpstat_what
 
struct  bpstats
 
struct  breakpoint_deleter
 
class  scoped_rbreak_breakpoints
 

Macros

#define BREAKPOINT_MAX   16
 
#define CATCH_PERMANENT   ((void *) (uintptr_t) 0)
 
#define CATCH_TEMPORARY   ((void *) (uintptr_t) 1)
 

Typedefs

typedef struct bp_locationbp_location_p
 
typedef std::shared_ptr< command_linecounted_command_line
 
typedef struct breakpointbreakpoint_p
 
typedef struct bpstatsbpstat
 
typedef std::unique_ptr< struct breakpoint, breakpoint_deleterbreakpoint_up
 
typedef void(* walk_bp_location_callback) (struct bp_location *, void *)
 

Enumerations

enum  remove_bp_reason { REMOVE_BREAKPOINT, DETACH_BREAKPOINT }
 
enum  bptype {
  bp_none = 0, bp_breakpoint, bp_hardware_breakpoint, bp_single_step,
  bp_until, bp_finish, bp_watchpoint, bp_hardware_watchpoint,
  bp_read_watchpoint, bp_access_watchpoint, bp_longjmp, bp_longjmp_resume,
  bp_longjmp_call_dummy, bp_exception, bp_exception_resume, bp_step_resume,
  bp_hp_step_resume, bp_watchpoint_scope, bp_call_dummy, bp_std_terminate,
  bp_shlib_event, bp_thread_event, bp_overlay_event, bp_longjmp_master,
  bp_std_terminate_master, bp_exception_master, bp_catchpoint, bp_tracepoint,
  bp_fast_tracepoint, bp_static_tracepoint, bp_dprintf, bp_jit_event,
  bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return
}
 
enum  enable_state { bp_disabled, bp_enabled, bp_call_disabled }
 
enum  bpdisp { disp_del, disp_del_at_next_stop, disp_disable, disp_donttouch }
 
enum  condition_status { condition_unchanged = 0, condition_modified, condition_updated }
 
enum  bp_loc_type { bp_loc_software_breakpoint, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_other }
 
enum  print_stop_action { PRINT_UNKNOWN = -1, PRINT_SRC_AND_LOC, PRINT_SRC_ONLY, PRINT_NOTHING }
 
enum  watchpoint_triggered { watch_triggered_no = 0, watch_triggered_unknown, watch_triggered_yes }
 
enum  bpstat_what_main_action {
  BPSTAT_WHAT_KEEP_CHECKING, BPSTAT_WHAT_SINGLE, BPSTAT_WHAT_SET_LONGJMP_RESUME, BPSTAT_WHAT_CLEAR_LONGJMP_RESUME,
  BPSTAT_WHAT_STEP_RESUME, BPSTAT_WHAT_STOP_SILENT, BPSTAT_WHAT_STOP_NOISY, BPSTAT_WHAT_HP_STEP_RESUME
}
 
enum  stop_stack_kind { STOP_NONE = 0, STOP_STACK_DUMMY, STOP_STD_TERMINATE }
 
enum  bp_print_how { print_it_normal, print_it_noop, print_it_done }
 
enum  inf_context { inf_starting, inf_running, inf_exited, inf_execd }
 
enum  breakpoint_here { no_breakpoint_here = 0, ordinary_breakpoint_here, permanent_breakpoint_here }
 
enum  breakpoint_create_flags { CREATE_BREAKPOINT_FLAGS_INSERTED = 1 << 0 }
 

Functions

void print_recreate_thread (struct breakpoint *b, struct ui_file *fp)
 
 DEF_VEC_P (bp_location_p)
 
struct breakpointbreakpoint_find_if (int(*func)(struct breakpoint *b, void *d), void *user_data)
 
int is_breakpoint (const struct breakpoint *bpt)
 
int is_watchpoint (const struct breakpoint *bpt)
 
 DEF_VEC_P (breakpoint_p)
 
void bpstat_clear (bpstat *)
 
bpstat bpstat_copy (bpstat)
 
bpstat bpstat_stop_status (const address_space *aspace, CORE_ADDR pc, ptid_t ptid, const struct target_waitstatus *ws)
 
struct bpstat_what bpstat_what (bpstat)
 
void bpstat_run_callbacks (bpstat bs_head)
 
bpstat bpstat_find_breakpoint (bpstat, struct breakpoint *)
 
int bpstat_explains_signal (bpstat, enum gdb_signal)
 
int bpstat_causes_stop (bpstat)
 
int bpstat_should_step (void)
 
enum print_stop_action bpstat_print (bpstat, int)
 
int bpstat_num (bpstat *, int *)
 
void bpstat_do_actions (void)
 
void bpstat_clear_actions (void)
 
int program_breakpoint_here_p (struct gdbarch *gdbarch, CORE_ADDR address)
 
enum breakpoint_here breakpoint_here_p (const address_space *, CORE_ADDR)
 
int breakpoint_in_range_p (const address_space *aspace, CORE_ADDR addr, ULONGEST len)
 
int moribund_breakpoint_here_p (const address_space *, CORE_ADDR)
 
int breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
 
int software_breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
 
int hardware_breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
 
int breakpoint_has_location_inserted_here (struct breakpoint *bp, const address_space *aspace, CORE_ADDR pc)
 
int single_step_breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
 
int hardware_watchpoint_inserted_in_range (const address_space *, CORE_ADDR addr, ULONGEST len)
 
int breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, const address_space *aspace2, CORE_ADDR addr2)
 
void until_break_command (const char *, int, int)
 
void update_breakpoint_locations (struct breakpoint *b, struct program_space *filter_pspace, gdb::array_view< const symtab_and_line > sals, gdb::array_view< const symtab_and_line > sals_end)
 
void breakpoint_re_set (void)
 
void breakpoint_re_set_thread (struct breakpoint *)
 
void delete_breakpoint (struct breakpoint *)
 
breakpoint_up set_momentary_breakpoint (struct gdbarch *, struct symtab_and_line, struct frame_id, enum bptype)
 
breakpoint_up set_momentary_breakpoint_at_pc (struct gdbarch *, CORE_ADDR pc, enum bptype type)
 
struct breakpointclone_momentary_breakpoint (struct breakpoint *bpkt)
 
void set_ignore_count (int, int, int)
 
void breakpoint_init_inferior (enum inf_context)
 
void breakpoint_auto_delete (bpstat)
 
void iterate_over_bp_locations (walk_bp_location_callback)
 
struct command_linebreakpoint_commands (struct breakpoint *b)
 
const char * bpdisp_text (enum bpdisp disp)
 
void break_command (const char *, int)
 
void hbreak_command_wrapper (const char *, int)
 
void thbreak_command_wrapper (const char *, int)
 
void rbreak_command_wrapper (const char *, int)
 
void watch_command_wrapper (const char *, int, int)
 
void awatch_command_wrapper (const char *, int, int)
 
void rwatch_command_wrapper (const char *, int, int)
 
void tbreak_command (const char *, int)
 
void initialize_breakpoint_ops (void)
 
void add_catch_command (const char *name, const char *docstring, cmd_const_sfunc_ftype *sfunc, completer_ftype *completer, void *user_data_catch, void *user_data_tcatch)
 
void init_ada_exception_breakpoint (struct breakpoint *b, struct gdbarch *gdbarch, struct symtab_and_line sal, const char *addr_string, const struct breakpoint_ops *ops, int tempflag, int enabled, int from_tty)
 
void init_catchpoint (struct breakpoint *b, struct gdbarch *gdbarch, int tempflag, const char *cond_string, const struct breakpoint_ops *ops)
 
void install_breakpoint (int internal, std::unique_ptr< breakpoint > &&b, int update_gll)
 
int create_breakpoint (struct gdbarch *gdbarch, const struct event_location *location, const char *cond_string, int thread, const char *extra_string, int parse_extra, int tempflag, enum bptype wanted_type, int ignore_count, enum auto_boolean pending_break_support, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags)
 
void insert_breakpoints (void)
 
int remove_breakpoints (void)
 
int remove_breakpoints_pid (int pid)
 
void update_breakpoints_after_exec (void)
 
int detach_breakpoints (ptid_t ptid)
 
void breakpoint_program_space_exit (struct program_space *pspace)
 
void set_longjmp_breakpoint (struct thread_info *tp, struct frame_id frame)
 
void delete_longjmp_breakpoint (int thread)
 
void delete_longjmp_breakpoint_at_next_stop (int thread)
 
struct breakpointset_longjmp_breakpoint_for_call_dummy (void)
 
void check_longjmp_breakpoint_for_call_dummy (struct thread_info *tp)
 
void enable_overlay_breakpoints (void)
 
void disable_overlay_breakpoints (void)
 
void set_std_terminate_breakpoint (void)
 
void delete_std_terminate_breakpoint (void)
 
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)
 
enum command_control_type commands_from_control_command (const char *arg, struct command_line *cmd)
 
void clear_breakpoint_hit_counts (void)
 
struct breakpointget_breakpoint (int num)
 
void disable_current_display (void)
 
void do_displays (void)
 
void disable_display (int)
 
void clear_displays (void)
 
void disable_breakpoint (struct breakpoint *)
 
void enable_breakpoint (struct breakpoint *)
 
void breakpoint_set_commands (struct breakpoint *b, command_line_up &&commands)
 
void breakpoint_set_silent (struct breakpoint *b, int silent)
 
void breakpoint_set_thread (struct breakpoint *b, int thread)
 
void breakpoint_set_task (struct breakpoint *b, int task)
 
void mark_breakpoints_out (void)
 
struct breakpointcreate_jit_event_breakpoint (struct gdbarch *, CORE_ADDR)
 
struct breakpointcreate_solib_event_breakpoint (struct gdbarch *, CORE_ADDR)
 
struct breakpointcreate_and_insert_solib_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address)
 
struct breakpointcreate_thread_event_breakpoint (struct gdbarch *, CORE_ADDR)
 
void remove_jit_event_breakpoints (void)
 
void remove_solib_event_breakpoints (void)
 
void remove_solib_event_breakpoints_at_next_stop (void)
 
void disable_breakpoints_in_shlibs (void)
 
int is_catchpoint (struct breakpoint *)
 
void add_solib_catchpoint (const char *arg, int is_load, int is_temp, int enabled)
 
void insert_single_step_breakpoint (struct gdbarch *, const address_space *, CORE_ADDR)
 
int insert_single_step_breakpoints (struct gdbarch *)
 
int watchpoints_triggered (struct target_waitstatus *)
 
void breakpoint_xfer_memory (gdb_byte *readbuf, gdb_byte *writebuf, const gdb_byte *writebuf_org, ULONGEST memaddr, LONGEST len)
 
int breakpoints_should_be_inserted_now (void)
 
void breakpoint_retire_moribund (void)
 
void set_breakpoint_condition (struct breakpoint *b, const char *exp, int from_tty)
 
int catch_syscall_enabled (void)
 
int catching_syscall_number (int syscall_number)
 
struct tracepointget_tracepoint (int num)
 
struct tracepointget_tracepoint_by_number_on_target (int num)
 
struct tracepointget_tracepoint_by_number (const char **arg, number_or_range_parser *parser)
 
 VEC (breakpoint_p) *all_tracepoints(void)
 
int is_tracepoint (const struct breakpoint *b)
 
void check_tracepoint_command (char *line, void *closure)
 
struct breakpointiterate_over_breakpoints (int(*)(struct breakpoint *, void *), void *)
 
int pc_at_non_inline_function (const address_space *aspace, CORE_ADDR pc, const struct target_waitstatus *ws)
 
int user_breakpoint_p (struct breakpoint *)
 
int pending_breakpoint_p (struct breakpoint *)
 
struct gdbarchget_sal_arch (struct symtab_and_line sal)
 
void breakpoint_free_objfile (struct objfile *objfile)
 
const char * ep_parse_optional_if_clause (const char **arg)
 
void maybe_print_thread_hit_breakpoint (struct ui_out *uiout)
 
void print_breakpoint (breakpoint *bp)
 

Variables

int target_exact_watchpoints
 
struct breakpoint_ops base_breakpoint_ops
 
struct breakpoint_ops bkpt_breakpoint_ops
 
struct breakpoint_ops tracepoint_breakpoint_ops
 
struct breakpoint_ops dprintf_breakpoint_ops
 

Macro Definition Documentation

◆ BREAKPOINT_MAX

#define BREAKPOINT_MAX   16

◆ CATCH_PERMANENT

#define CATCH_PERMANENT   ((void *) (uintptr_t) 0)

◆ CATCH_TEMPORARY

#define CATCH_TEMPORARY   ((void *) (uintptr_t) 1)

Typedef Documentation

◆ bp_location_p

typedef struct bp_location* bp_location_p

Definition at line 662 of file breakpoint.h.

◆ bpstat

typedef struct bpstats* bpstat

Definition at line 910 of file breakpoint.h.

◆ breakpoint_p

typedef struct breakpoint* breakpoint_p

Definition at line 903 of file breakpoint.h.

◆ breakpoint_up

typedef std::unique_ptr<struct breakpoint, breakpoint_deleter> breakpoint_up

Definition at line 1236 of file breakpoint.h.

◆ counted_command_line

typedef std::shared_ptr<command_line> counted_command_line

Definition at line 667 of file breakpoint.h.

◆ walk_bp_location_callback

typedef void(* walk_bp_location_callback) (struct bp_location *, void *)

Definition at line 1252 of file breakpoint.h.

Enumeration Type Documentation

◆ bp_loc_type

Enumerator
bp_loc_software_breakpoint 
bp_loc_hardware_breakpoint 
bp_loc_hardware_watchpoint 
bp_loc_other 

Definition at line 296 of file breakpoint.h.

◆ bp_print_how

Enumerator
print_it_normal 
print_it_noop 
print_it_done 

Definition at line 1072 of file breakpoint.h.

◆ bpdisp

enum bpdisp
Enumerator
disp_del 
disp_del_at_next_stop 
disp_disable 
disp_donttouch 

Definition at line 217 of file breakpoint.h.

◆ bpstat_what_main_action

Enumerator
BPSTAT_WHAT_KEEP_CHECKING 
BPSTAT_WHAT_SINGLE 
BPSTAT_WHAT_SET_LONGJMP_RESUME 
BPSTAT_WHAT_CLEAR_LONGJMP_RESUME 
BPSTAT_WHAT_STEP_RESUME 
BPSTAT_WHAT_STOP_SILENT 
BPSTAT_WHAT_STOP_NOISY 
BPSTAT_WHAT_HP_STEP_RESUME 

Definition at line 940 of file breakpoint.h.

◆ bptype

enum bptype
Enumerator
bp_none 
bp_breakpoint 
bp_hardware_breakpoint 
bp_single_step 
bp_until 
bp_finish 
bp_watchpoint 
bp_hardware_watchpoint 
bp_read_watchpoint 
bp_access_watchpoint 
bp_longjmp 
bp_longjmp_resume 
bp_longjmp_call_dummy 
bp_exception 
bp_exception_resume 
bp_step_resume 
bp_hp_step_resume 
bp_watchpoint_scope 
bp_call_dummy 
bp_std_terminate 
bp_shlib_event 
bp_thread_event 
bp_overlay_event 
bp_longjmp_master 
bp_std_terminate_master 
bp_exception_master 
bp_catchpoint 
bp_tracepoint 
bp_fast_tracepoint 
bp_static_tracepoint 
bp_dprintf 
bp_jit_event 
bp_gnu_ifunc_resolver 
bp_gnu_ifunc_resolver_return 

Definition at line 67 of file breakpoint.h.

◆ breakpoint_create_flags

Enumerator
CREATE_BREAKPOINT_FLAGS_INSERTED 

Definition at line 1325 of file breakpoint.h.

◆ breakpoint_here

Enumerator
no_breakpoint_here 
ordinary_breakpoint_here 
permanent_breakpoint_here 

Definition at line 1151 of file breakpoint.h.

◆ condition_status

Enumerator
condition_unchanged 
condition_modified 
condition_updated 

Definition at line 229 of file breakpoint.h.

◆ enable_state

Enumerator
bp_disabled 
bp_enabled 
bp_call_disabled 

Definition at line 198 of file breakpoint.h.

◆ inf_context

Enumerator
inf_starting 
inf_running 
inf_exited 
inf_execd 

Definition at line 1141 of file breakpoint.h.

◆ print_stop_action

Enumerator
PRINT_UNKNOWN 
PRINT_SRC_AND_LOC 
PRINT_SRC_ONLY 
PRINT_NOTHING 

Definition at line 498 of file breakpoint.h.

◆ remove_bp_reason

Enumerator
REMOVE_BREAKPOINT 
DETACH_BREAKPOINT 

Definition at line 47 of file breakpoint.h.

◆ stop_stack_kind

Enumerator
STOP_NONE 
STOP_STACK_DUMMY 
STOP_STD_TERMINATE 

Definition at line 991 of file breakpoint.h.

◆ watchpoint_triggered

Enumerator
watch_triggered_no 
watch_triggered_unknown 
watch_triggered_yes 

Definition at line 649 of file breakpoint.h.

Function Documentation

◆ add_catch_command()

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

◆ add_solib_catchpoint()

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

◆ awatch_command_wrapper()

void awatch_command_wrapper ( const char *  ,
int  ,
int   
)

Definition at line 11052 of file breakpoint.c.

References hw_access, and watch_command_1().

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

◆ bpdisp_text()

const char* bpdisp_text ( enum bpdisp  disp)

◆ bpstat_causes_stop()

int bpstat_causes_stop ( bpstat  )

Definition at line 5780 of file breakpoint.c.

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

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

◆ bpstat_clear()

void bpstat_clear ( bpstat )

◆ bpstat_clear_actions()

void bpstat_clear_actions ( void  )

◆ bpstat_copy()

bpstat bpstat_copy ( bpstat  )

Definition at line 4251 of file breakpoint.c.

References bpstats::next.

Referenced by save_infcall_control_state().

◆ bpstat_do_actions()

void bpstat_do_actions ( void  )

◆ bpstat_explains_signal()

int bpstat_explains_signal ( bpstat  ,
enum  gdb_signal 
)

◆ bpstat_find_breakpoint()

bpstat bpstat_find_breakpoint ( bpstat  ,
struct breakpoint  
)

◆ bpstat_num()

int bpstat_num ( bpstat ,
int *   
)

Definition at line 4327 of file breakpoint.c.

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

Referenced by continue_command(), and info_program_command().

◆ bpstat_print()

enum print_stop_action bpstat_print ( bpstat  ,
int   
)

◆ bpstat_run_callbacks()

void bpstat_run_callbacks ( bpstat  bs_head)

◆ bpstat_should_step()

int bpstat_should_step ( void  )

◆ bpstat_stop_status()

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

◆ bpstat_what()

◆ break_command()

void break_command ( const char *  ,
int   
)

Definition at line 9596 of file breakpoint.c.

References break_command_1().

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

◆ breakpoint_address_match()

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

◆ breakpoint_auto_delete()

void breakpoint_auto_delete ( bpstat  )

◆ breakpoint_commands()

struct command_line* breakpoint_commands ( struct breakpoint b)

◆ breakpoint_find_if()

struct breakpoint* breakpoint_find_if ( int(*)(struct breakpoint *b, void *d)  func,
void *  user_data 
)

Referenced by catching_syscall_number().

◆ breakpoint_free_objfile()

void breakpoint_free_objfile ( struct objfile objfile)

Definition at line 15404 of file breakpoint.c.

References ALL_BP_LOCATIONS, loc, and SYMTAB_OBJFILE.

Referenced by objfile::~objfile().

◆ breakpoint_has_location_inserted_here()

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

◆ breakpoint_here_p()

enum breakpoint_here breakpoint_here_p ( const address_space ,
CORE_ADDR   
)

◆ breakpoint_in_range_p()

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

◆ breakpoint_init_inferior()

void breakpoint_init_inferior ( enum  inf_context)

◆ breakpoint_inserted_here_p()

int breakpoint_inserted_here_p ( const address_space ,
CORE_ADDR   
)

◆ breakpoint_program_space_exit()

void breakpoint_program_space_exit ( struct program_space pspace)

◆ breakpoint_re_set()

void breakpoint_re_set ( void  )

◆ breakpoint_re_set_thread()

void breakpoint_re_set_thread ( struct breakpoint )

◆ breakpoint_retire_moribund()

void breakpoint_retire_moribund ( void  )

Definition at line 12195 of file breakpoint.c.

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

Referenced by handle_inferior_event_1().

◆ breakpoint_set_commands()

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

◆ breakpoint_set_silent()

void breakpoint_set_silent ( struct breakpoint b,
int  silent 
)

◆ breakpoint_set_task()

void breakpoint_set_task ( struct breakpoint b,
int  task 
)

◆ breakpoint_set_thread()

void breakpoint_set_thread ( struct breakpoint b,
int  thread 
)

◆ breakpoint_xfer_memory()

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

◆ breakpoints_should_be_inserted_now()

int breakpoints_should_be_inserted_now ( void  )

◆ catch_syscall_enabled()

int catch_syscall_enabled ( void  )

◆ catching_syscall_number()

int catching_syscall_number ( int  syscall_number)

◆ check_longjmp_breakpoint_for_call_dummy()

void check_longjmp_breakpoint_for_call_dummy ( struct thread_info tp)

◆ check_tracepoint_command()

void check_tracepoint_command ( char *  line,
void *  closure 
)

Definition at line 1219 of file breakpoint.c.

References validate_actionline().

Referenced by actions_command(), and mi_cmd_break_commands().

◆ clear_breakpoint_hit_counts()

void clear_breakpoint_hit_counts ( void  )

Definition at line 639 of file breakpoint.c.

References ALL_BREAKPOINTS, and breakpoint::hit_count.

Referenced by run_command_1().

◆ clear_displays()

void clear_displays ( void  )

Definition at line 1768 of file printcmd.c.

References display_chain, free_display(), and display::next.

Referenced by clear_symtab_users(), and undisplay_command().

◆ clone_momentary_breakpoint()

struct breakpoint* clone_momentary_breakpoint ( struct breakpoint bpkt)

Definition at line 8611 of file breakpoint.c.

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

Referenced by follow_fork().

◆ commands_from_control_command()

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

Definition at line 1289 of file breakpoint.c.

References commands_command_1(), and simple_control.

Referenced by execute_control_command_1().

◆ create_and_insert_solib_event_breakpoint()

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

◆ create_breakpoint()

int create_breakpoint ( struct gdbarch gdbarch,
const struct event_location location,
const char *  cond_string,
int  thread,
const char *  extra_string,
int  parse_extra,
int  tempflag,
enum bptype  wanted_type,
int  ignore_count,
enum auto_boolean  pending_break_support,
const struct breakpoint_ops ops,
int  from_tty,
int  enabled,
int  internal,
unsigned  flags 
)

◆ create_jit_event_breakpoint()

struct breakpoint* create_jit_event_breakpoint ( struct gdbarch ,
CORE_ADDR   
)

◆ create_solib_event_breakpoint()

struct breakpoint* create_solib_event_breakpoint ( struct gdbarch ,
CORE_ADDR   
)

◆ create_thread_event_breakpoint()

struct breakpoint* create_thread_event_breakpoint ( struct gdbarch ,
CORE_ADDR   
)

◆ DEF_VEC_P() [1/2]

DEF_VEC_P ( bp_location_p  )

◆ DEF_VEC_P() [2/2]

DEF_VEC_P ( breakpoint_p  )

◆ delete_breakpoint()

void delete_breakpoint ( struct breakpoint )

◆ delete_longjmp_breakpoint()

void delete_longjmp_breakpoint ( int  thread)

◆ delete_longjmp_breakpoint_at_next_stop()

void delete_longjmp_breakpoint_at_next_stop ( int  thread)

◆ delete_std_terminate_breakpoint()

void delete_std_terminate_breakpoint ( void  )

◆ detach_breakpoints()

int detach_breakpoints ( ptid_t  ptid)

◆ disable_breakpoint()

void disable_breakpoint ( struct breakpoint )

◆ disable_breakpoints_before_startup()

void disable_breakpoints_before_startup ( void  )

◆ disable_breakpoints_in_shlibs()

void disable_breakpoints_in_shlibs ( void  )

◆ disable_current_display()

void disable_current_display ( void  )

Definition at line 2042 of file printcmd.c.

References _, current_display_number, disable_display(), fprintf_unfiltered(), and gdb_stderr.

Referenced by normal_stop().

◆ disable_display()

void disable_display ( int  )

◆ disable_overlay_breakpoints()

void disable_overlay_breakpoints ( void  )

◆ disable_watchpoints_before_interactive_call_start()

void disable_watchpoints_before_interactive_call_start ( void  )

◆ do_displays()

void do_displays ( void  )

Definition at line 2016 of file printcmd.c.

References display_chain, do_one_display(), and display::next.

Referenced by display_command(), print_stop_event(), and tfind_1().

◆ enable_breakpoint()

void enable_breakpoint ( struct breakpoint )

◆ enable_breakpoints_after_startup()

void enable_breakpoints_after_startup ( void  )

◆ enable_overlay_breakpoints()

void enable_overlay_breakpoints ( void  )

◆ enable_watchpoints_after_interactive_call_stop()

void enable_watchpoints_after_interactive_call_stop ( void  )

◆ ep_parse_optional_if_clause()

const char* ep_parse_optional_if_clause ( const char **  arg)

Definition at line 11279 of file breakpoint.c.

References skip_spaces().

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

◆ get_breakpoint()

struct breakpoint* get_breakpoint ( int  num)

◆ get_sal_arch()

struct gdbarch* get_sal_arch ( struct symtab_and_line  sal)

◆ get_tracepoint()

struct tracepoint* get_tracepoint ( int  num)

◆ get_tracepoint_by_number()

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

◆ get_tracepoint_by_number_on_target()

struct tracepoint* get_tracepoint_by_number_on_target ( int  num)

Definition at line 15034 of file breakpoint.c.

References ALL_TRACEPOINTS, and tracepoint::number_on_target.

Referenced by tfile_get_traceframe_address(), and tfind_1().

◆ hardware_breakpoint_inserted_here_p()

int hardware_breakpoint_inserted_here_p ( const address_space ,
CORE_ADDR   
)

◆ hardware_watchpoint_inserted_in_range()

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

◆ hbreak_command_wrapper()

void hbreak_command_wrapper ( const char *  ,
int   
)

◆ init_ada_exception_breakpoint()

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

◆ init_catchpoint()

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

◆ initialize_breakpoint_ops()

void initialize_breakpoint_ops ( void  )

Definition at line 15414 of file breakpoint.c.

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

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

◆ insert_breakpoints()

void insert_breakpoints ( void  )

◆ insert_single_step_breakpoint()

void insert_single_step_breakpoint ( struct gdbarch ,
const address_space ,
CORE_ADDR   
)

◆ insert_single_step_breakpoints()

int insert_single_step_breakpoints ( struct gdbarch )

◆ install_breakpoint()

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

◆ is_breakpoint()

int is_breakpoint ( const struct breakpoint bpt)

◆ is_catchpoint()

int is_catchpoint ( struct breakpoint )

Definition at line 4192 of file breakpoint.c.

References bp_catchpoint, and breakpoint::type.

Referenced by print_one_breakpoint_location(), and print_solib_event().

◆ is_tracepoint()

int is_tracepoint ( const struct breakpoint b)

◆ is_watchpoint()

int is_watchpoint ( const struct breakpoint bpt)

◆ iterate_over_bp_locations()

void iterate_over_bp_locations ( walk_bp_location_callback  )

Definition at line 2866 of file breakpoint.c.

References ALL_BP_LOCATIONS, and loc.

Referenced by record_full_init_record_breakpoints().

◆ iterate_over_breakpoints()

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

◆ mark_breakpoints_out()

void mark_breakpoints_out ( void  )

◆ maybe_print_thread_hit_breakpoint()

void maybe_print_thread_hit_breakpoint ( struct ui_out uiout)

◆ moribund_breakpoint_here_p()

int moribund_breakpoint_here_p ( const address_space ,
CORE_ADDR   
)

Definition at line 4056 of file breakpoint.c.

References breakpoint_location_address_match(), loc, and VEC_iterate.

Referenced by adjust_pc_after_break().

◆ pc_at_non_inline_function()

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

◆ pending_breakpoint_p()

int pending_breakpoint_p ( struct breakpoint )

Definition at line 6501 of file breakpoint.c.

References breakpoint::loc.

Referenced by bppy_get_pending().

◆ print_breakpoint()

void print_breakpoint ( breakpoint bp)

Definition at line 6483 of file breakpoint.c.

References print_one_breakpoint().

Referenced by breakpoint_notify(), and mi_print_breakpoint_for_event().

◆ print_recreate_thread()

void print_recreate_thread ( struct breakpoint b,
struct ui_file fp 
)

◆ program_breakpoint_here_p()

int program_breakpoint_here_p ( struct gdbarch gdbarch,
CORE_ADDR  address 
)

◆ rbreak_command_wrapper()

void rbreak_command_wrapper ( const char *  ,
int   
)

◆ remove_breakpoints()

int remove_breakpoints ( void  )

◆ remove_breakpoints_pid()

int remove_breakpoints_pid ( int  pid)

◆ remove_jit_event_breakpoints()

void remove_jit_event_breakpoints ( void  )

◆ remove_solib_event_breakpoints()

void remove_solib_event_breakpoints ( void  )

◆ remove_solib_event_breakpoints_at_next_stop()

void remove_solib_event_breakpoints_at_next_stop ( void  )

◆ rwatch_command_wrapper()

void rwatch_command_wrapper ( const char *  ,
int  ,
int   
)

Definition at line 11040 of file breakpoint.c.

References hw_read, and watch_command_1().

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

◆ set_breakpoint_condition()

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

◆ set_ignore_count()

void set_ignore_count ( int  ,
int  ,
int   
)

◆ set_longjmp_breakpoint()

void set_longjmp_breakpoint ( struct thread_info tp,
struct frame_id  frame 
)

◆ set_longjmp_breakpoint_for_call_dummy()

struct breakpoint* set_longjmp_breakpoint_for_call_dummy ( void  )

◆ set_momentary_breakpoint()

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

◆ set_momentary_breakpoint_at_pc()

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

◆ set_std_terminate_breakpoint()

void set_std_terminate_breakpoint ( void  )

◆ single_step_breakpoint_inserted_here_p()

int single_step_breakpoint_inserted_here_p ( const address_space ,
CORE_ADDR   
)

◆ software_breakpoint_inserted_here_p()

int software_breakpoint_inserted_here_p ( const address_space ,
CORE_ADDR   
)

◆ tbreak_command()

void tbreak_command ( const char *  ,
int   
)

Definition at line 9602 of file breakpoint.c.

References BP_TEMPFLAG, and break_command_1().

Referenced by _initialize_breakpoint(), and run_command_1().

◆ thbreak_command_wrapper()

void thbreak_command_wrapper ( const char *  ,
int   
)

◆ until_break_command()

void until_break_command ( const char *  ,
int  ,
int   
)

◆ update_breakpoint_locations()

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

◆ update_breakpoints_after_exec()

void update_breakpoints_after_exec ( void  )

◆ user_breakpoint_p()

int user_breakpoint_p ( struct breakpoint )

◆ VEC()

VEC ( breakpoint_p  )

◆ watch_command_wrapper()

void watch_command_wrapper ( const char *  ,
int  ,
int   
)

Definition at line 11009 of file breakpoint.c.

References hw_write, and watch_command_1().

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

◆ watchpoints_triggered()

int watchpoints_triggered ( struct target_waitstatus )

Variable Documentation

◆ base_breakpoint_ops

struct breakpoint_ops base_breakpoint_ops

◆ bkpt_breakpoint_ops

struct breakpoint_ops bkpt_breakpoint_ops

◆ dprintf_breakpoint_ops

struct breakpoint_ops dprintf_breakpoint_ops

Definition at line 261 of file breakpoint.c.

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

◆ target_exact_watchpoints

int target_exact_watchpoints

◆ tracepoint_breakpoint_ops

struct breakpoint_ops tracepoint_breakpoint_ops