GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
breakpoint.h File Reference
#include "frame.h"
#include "value.h"
#include "ax.h"
#include "command.h"
#include "gdbsupport/break-common.h"
#include "probe.h"
#include "location.h"
#include <vector>
#include "gdbsupport/array-view.h"
#include "gdbsupport/filtered-iterator.h"
#include "gdbsupport/function-view.h"
#include "gdbsupport/next-iterator.h"
#include "gdbsupport/iterator-range.h"
#include "gdbsupport/refcounted-object.h"
#include "gdbsupport/safe-iterator.h"
#include "cli/cli-script.h"
#include "target/waitstatus.h"

Go to the source code of this file.

Classes

struct  bp_target_info
 
class  bp_location
 
struct  bp_location_ref_policy
 
struct  breakpoint_ops
 
struct  breakpoint
 
struct  code_breakpoint
 
struct  watchpoint
 
struct  tracepoint
 
struct  catchpoint
 
struct  bpstat_what
 
struct  bpstat
 
struct  breakpoint_deleter
 
class  scoped_rbreak_breakpoints
 
struct  tracepoint_filter
 

Macros

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

Typedefs

typedef gdb::ref_ptr< bp_location, bp_location_ref_policybp_location_ref_ptr
 
using bp_location_list = intrusive_list<bp_location>
 
using bp_location_iterator = bp_location_list::iterator
 
using bp_location_range = iterator_range<bp_location_iterator>
 
typedef std::unique_ptr< struct breakpoint, breakpoint_deleterbreakpoint_up
 
using breakpoint_list = intrusive_list<breakpoint>
 
using breakpoint_iterator = breakpoint_list::iterator
 
using breakpoint_range = iterator_range<breakpoint_iterator>
 
using breakpoint_safe_range = basic_safe_range<breakpoint_range>
 
using tracepoint_iterator = filtered_iterator<breakpoint_iterator, tracepoint_filter>
 
using tracepoint_range = iterator_range<tracepoint_iterator>
 

Enumerations

enum  exception_event_kind { EX_EVENT_THROW , EX_EVENT_RETHROW , EX_EVENT_CATCH }
 
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_static_marker_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_software_watchpoint , bp_loc_hardware_watchpoint ,
  bp_loc_tracepoint , 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

bool is_breakpoint (const struct breakpoint *bpt)
 
bool is_watchpoint (const struct breakpoint *bpt)
 
bool is_exception_catchpoint (breakpoint *bp)
 
void bpstat_clear (bpstat **)
 
bpstatbpstat_copy (bpstat *)
 
bpstatbuild_bpstat_chain (const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws)
 
bpstatbpstat_stop_status (const address_space *aspace, CORE_ADDR pc, thread_info *thread, const target_waitstatus &ws, bpstat *stop_chain=nullptr)
 
bpstatbpstat_stop_status_nowatch (const address_space *aspace, CORE_ADDR bp_addr, thread_info *thread, const target_waitstatus &ws)
 
struct bpstat_what bpstat_what (bpstat *)
 
void bpstat_run_callbacks (bpstat *bs_head)
 
bpstatbpstat_find_breakpoint (bpstat *, struct breakpoint *)
 
bool bpstat_explains_signal (bpstat *, enum gdb_signal)
 
bool bpstat_causes_stop (bpstat *)
 
bool bpstat_should_step ()
 
enum print_stop_action bpstat_print (bpstat *bs, target_waitkind kind)
 
int bpstat_num (bpstat **, int *)
 
int bpstat_locno (const bpstat *bs)
 
void print_num_locno (const bpstat *bs, struct ui_out *)
 
void bpstat_do_actions (void)
 
void bpstat_clear_actions (void)
 
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 (code_breakpoint *b, struct program_space *filter_pspace, gdb::array_view< const symtab_and_line > sals, gdb::array_view< const symtab_and_line > sals_end)
 
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 *)
 
struct command_linebreakpoint_commands (struct breakpoint *b)
 
const char * bpdisp_text (enum bpdisp disp)
 
void break_command (const char *, int)
 
void watch_command_wrapper (const char *, int, bool)
 
void awatch_command_wrapper (const char *, int, bool)
 
void rwatch_command_wrapper (const char *, int, bool)
 
void tbreak_command (const char *, int)
 
void add_catch_command (const char *name, const char *docstring, cmd_func_ftype *func, completer_ftype *completer, void *user_data_catch, void *user_data_tcatch)
 
breakpointinstall_breakpoint (int internal, std::unique_ptr< breakpoint > &&b, int update_gll)
 
const struct breakpoint_opsbreakpoint_ops_for_location_spec (const location_spec *locspec, bool is_tracepoint)
 
int create_breakpoint (struct gdbarch *gdbarch, struct location_spec *locspec, const char *cond_string, int thread, int inferior, const char *extra_string, bool force_condition, int parse_extra, int tempflag, enum bptype 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)
 
void remove_breakpoints_inf (inferior *inf)
 
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, counted_command_line &&commands)
 
void breakpoint_set_silent (struct breakpoint *b, int silent)
 
void breakpoint_set_thread (struct breakpoint *b, int thread)
 
void breakpoint_set_inferior (struct breakpoint *b, int inferior)
 
void breakpoint_set_task (struct breakpoint *b, int task)
 
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)
 
bool is_catchpoint (struct breakpoint *b)
 
void add_solib_catchpoint (const char *arg, bool is_load, bool is_temp, bool enabled)
 
void insert_single_step_breakpoint (struct gdbarch *, const address_space *, CORE_ADDR)
 
int insert_single_step_breakpoints (struct gdbarch *)
 
int watchpoints_triggered (const 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, bool force)
 
void set_breakpoint_condition (int bpnum, const char *exp, int from_tty, bool force)
 
int catch_syscall_enabled (void)
 
bool 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)
 
bool is_tracepoint (const struct breakpoint *b)
 
std::vector< breakpoint * > static_tracepoints_here (CORE_ADDR addr)
 
breakpoint_range all_breakpoints ()
 
breakpoint_safe_range all_breakpoints_safe ()
 
tracepoint_range all_tracepoints ()
 
const std::vector< bp_location * > & all_bp_locations ()
 
int pc_at_non_inline_function (const address_space *aspace, CORE_ADDR pc, const 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)
 
void catch_exception_event (enum exception_event_kind ex_event, const char *regex, bool tempflag, int from_tty)
 
void print_solib_event (bool is_catchpoint)
 
void describe_other_breakpoints (struct gdbarch *, struct program_space *, CORE_ADDR, struct obj_section *, int)
 
void enable_disable_bp_location (bp_location *loc, bool enable)
 
void notify_breakpoint_modified (breakpoint *b)
 

Variables

bool target_exact_watchpoints
 
const struct breakpoint_ops code_breakpoint_ops
 
cmd_list_elementcommands_cmd_element
 
bool fix_multi_location_breakpoint_output_globally
 
bool fix_breakpoint_script_output_globally
 

Macro Definition Documentation

◆ BREAKPOINT_MAX

#define BREAKPOINT_MAX   16

◆ CATCH_PERMANENT

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

Definition at line 1540 of file breakpoint.h.

◆ CATCH_TEMPORARY

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

Typedef Documentation

◆ bp_location_iterator

using bp_location_iterator = bp_location_list::iterator

Definition at line 611 of file breakpoint.h.

◆ bp_location_list

using bp_location_list = intrusive_list<bp_location>

Definition at line 610 of file breakpoint.h.

◆ bp_location_range

using bp_location_range = iterator_range<bp_location_iterator>

Definition at line 612 of file breakpoint.h.

◆ bp_location_ref_ptr

Definition at line 537 of file breakpoint.h.

◆ breakpoint_iterator

using breakpoint_iterator = breakpoint_list::iterator

Definition at line 1914 of file breakpoint.h.

◆ breakpoint_list

using breakpoint_list = intrusive_list<breakpoint>

Definition at line 1912 of file breakpoint.h.

◆ breakpoint_range

using breakpoint_range = iterator_range<breakpoint_iterator>

Definition at line 1918 of file breakpoint.h.

◆ breakpoint_safe_range

using breakpoint_safe_range = basic_safe_range<breakpoint_range>

Definition at line 1927 of file breakpoint.h.

◆ breakpoint_up

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

Definition at line 1506 of file breakpoint.h.

◆ tracepoint_iterator

Definition at line 1944 of file breakpoint.h.

◆ tracepoint_range

using tracepoint_range = iterator_range<tracepoint_iterator>

Definition at line 1948 of file breakpoint.h.

Enumeration Type Documentation

◆ bp_loc_type

Enumerator
bp_loc_software_breakpoint 
bp_loc_hardware_breakpoint 
bp_loc_software_watchpoint 
bp_loc_hardware_watchpoint 
bp_loc_tracepoint 
bp_loc_other 

Definition at line 314 of file breakpoint.h.

◆ bp_print_how

Enumerator
print_it_normal 
print_it_noop 
print_it_done 

Definition at line 1348 of file breakpoint.h.

◆ bpdisp

enum bpdisp
Enumerator
disp_del 
disp_del_at_next_stop 
disp_disable 
disp_donttouch 

Definition at line 235 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 1204 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_static_marker_tracepoint 
bp_dprintf 
bp_jit_event 
bp_gnu_ifunc_resolver 
bp_gnu_ifunc_resolver_return 

Definition at line 83 of file breakpoint.h.

◆ breakpoint_create_flags

Enumerator
CREATE_BREAKPOINT_FLAGS_INSERTED 

Definition at line 1577 of file breakpoint.h.

◆ breakpoint_here

Enumerator
no_breakpoint_here 
ordinary_breakpoint_here 
permanent_breakpoint_here 

Definition at line 1426 of file breakpoint.h.

◆ condition_status

Enumerator
condition_unchanged 
condition_modified 
condition_updated 

Definition at line 247 of file breakpoint.h.

◆ enable_state

Enumerator
bp_disabled 
bp_enabled 
bp_call_disabled 

Definition at line 216 of file breakpoint.h.

◆ exception_event_kind

Enumerator
EX_EVENT_THROW 
EX_EVENT_RETHROW 
EX_EVENT_CATCH 

Definition at line 54 of file breakpoint.h.

◆ inf_context

Enumerator
inf_starting 
inf_running 
inf_exited 
inf_execd 

Definition at line 1416 of file breakpoint.h.

◆ print_stop_action

Enumerator
PRINT_UNKNOWN 
PRINT_SRC_AND_LOC 
PRINT_SRC_ONLY 
PRINT_NOTHING 

Definition at line 541 of file breakpoint.h.

◆ remove_bp_reason

Enumerator
REMOVE_BREAKPOINT 
DETACH_BREAKPOINT 

Definition at line 63 of file breakpoint.h.

◆ stop_stack_kind

Enumerator
STOP_NONE 
STOP_STACK_DUMMY 
STOP_STD_TERMINATE 

Definition at line 1255 of file breakpoint.h.

◆ watchpoint_triggered

Enumerator
watch_triggered_no 
watch_triggered_unknown 
watch_triggered_yes 

Definition at line 590 of file breakpoint.h.

Function Documentation

◆ add_catch_command()

void add_catch_command ( const char * name,
const char * docstring,
cmd_func_ftype * func,
completer_ftype * completer,
void * user_data_catch,
void * user_data_tcatch )
extern

◆ add_solib_catchpoint()

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

◆ all_bp_locations()

const std::vector< bp_location * > & all_bp_locations ( )

◆ all_breakpoints()

breakpoint_range all_breakpoints ( )

◆ all_breakpoints_safe()

breakpoint_safe_range all_breakpoints_safe ( )

◆ all_tracepoints()

tracepoint_range all_tracepoints ( )

◆ awatch_command_wrapper()

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

Definition at line 10811 of file breakpoint.c.

References watch_command_1().

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

◆ bpdisp_text()

const char * bpdisp_text ( enum bpdisp disp)

◆ bpstat_causes_stop()

bool bpstat_causes_stop ( bpstat * bs)
extern

Definition at line 6201 of file breakpoint.c.

References bpstat::next, and bpstat::stop.

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

◆ bpstat_clear()

void bpstat_clear ( bpstat ** bsp)
extern

◆ bpstat_clear_actions()

void bpstat_clear_actions ( void )
extern

◆ bpstat_copy()

bpstat * bpstat_copy ( bpstat * bs)
extern

Definition at line 4571 of file breakpoint.c.

References bpstat::next.

Referenced by save_infcall_control_state().

◆ bpstat_do_actions()

void bpstat_do_actions ( void )
extern

◆ bpstat_explains_signal()

bool bpstat_explains_signal ( bpstat * bsp,
enum gdb_signal )
extern

Definition at line 4614 of file breakpoint.c.

References bpstat::breakpoint_at, breakpoint::explains_signal(), and bpstat::next.

Referenced by handle_signal_stop().

◆ bpstat_find_breakpoint()

bpstat * bpstat_find_breakpoint ( bpstat * bsp,
struct breakpoint * breakpoint )

◆ bpstat_locno()

int bpstat_locno ( const bpstat * bs)
extern

◆ bpstat_num()

int bpstat_num ( bpstat ** bsp,
int * num )
extern

Definition at line 4638 of file breakpoint.c.

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

Referenced by continue_command(), and info_program_command().

◆ bpstat_print()

enum print_stop_action bpstat_print ( bpstat * bs,
target_waitkind kind )
extern

◆ bpstat_run_callbacks()

void bpstat_run_callbacks ( bpstat * bs_head)
extern

◆ bpstat_should_step()

bool bpstat_should_step ( )
extern

◆ bpstat_stop_status()

bpstat * bpstat_stop_status ( const address_space * aspace,
CORE_ADDR pc,
thread_info * thread,
const target_waitstatus & ws,
bpstat * stop_chain = nullptr )
extern

◆ bpstat_stop_status_nowatch()

bpstat * bpstat_stop_status_nowatch ( const address_space * aspace,
CORE_ADDR bp_addr,
thread_info * thread,
const target_waitstatus & ws )
extern

◆ bpstat_what()

struct bpstat_what bpstat_what ( bpstat * bs_head)

◆ break_command()

void break_command ( const char * arg,
int from_tty )
extern

Definition at line 9493 of file breakpoint.c.

References break_command_1().

Referenced by 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 )
extern

◆ breakpoint_auto_delete()

void breakpoint_auto_delete ( bpstat * bs)
extern

◆ breakpoint_commands()

struct command_line * breakpoint_commands ( struct breakpoint * b)
extern

◆ breakpoint_free_objfile()

void breakpoint_free_objfile ( struct objfile * objfile)
extern

Definition at line 14675 of file breakpoint.c.

References all_bp_locations(), and loc.

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

◆ breakpoint_here_p()

enum breakpoint_here breakpoint_here_p ( const address_space * aspace,
CORE_ADDR pc )
extern

◆ breakpoint_in_range_p()

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

◆ breakpoint_init_inferior()

void breakpoint_init_inferior ( enum inf_context)
extern

◆ breakpoint_inserted_here_p()

int breakpoint_inserted_here_p ( const address_space * aspace,
CORE_ADDR pc )
extern

◆ breakpoint_ops_for_location_spec()

const struct breakpoint_ops * breakpoint_ops_for_location_spec ( const location_spec * locspec,
bool is_tracepoint )
extern

◆ breakpoint_program_space_exit()

void breakpoint_program_space_exit ( struct program_space * pspace)
extern

◆ breakpoint_re_set()

void breakpoint_re_set ( void )
extern

◆ breakpoint_re_set_thread()

void breakpoint_re_set_thread ( struct breakpoint * b)
extern

◆ breakpoint_retire_moribund()

void breakpoint_retire_moribund ( void )
extern

Definition at line 11744 of file breakpoint.c.

References decref_bp_location(), loc, and moribund_locations.

Referenced by handle_inferior_event().

◆ breakpoint_set_commands()

void breakpoint_set_commands ( struct breakpoint * b,
counted_command_line && commands )
extern

◆ breakpoint_set_inferior()

void breakpoint_set_inferior ( struct breakpoint * b,
int inferior )
extern

◆ breakpoint_set_silent()

void breakpoint_set_silent ( struct breakpoint * b,
int silent )
extern

◆ breakpoint_set_task()

void breakpoint_set_task ( struct breakpoint * b,
int task )
extern

◆ breakpoint_set_thread()

void breakpoint_set_thread ( struct breakpoint * b,
int thread )
extern

◆ breakpoint_xfer_memory()

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

◆ breakpoints_should_be_inserted_now()

int breakpoints_should_be_inserted_now ( void )
extern

◆ build_bpstat_chain()

bpstat * build_bpstat_chain ( const address_space * aspace,
CORE_ADDR bp_addr,
const target_waitstatus & ws )
extern

◆ catch_exception_event()

void catch_exception_event ( enum exception_event_kind ex_event,
const char * regex,
bool tempflag,
int from_tty )
extern

◆ catch_syscall_enabled()

int catch_syscall_enabled ( void )
extern

◆ catching_syscall_number()

bool catching_syscall_number ( int syscall_number)
extern

◆ check_longjmp_breakpoint_for_call_dummy()

void check_longjmp_breakpoint_for_call_dummy ( struct thread_info * tp)
extern

◆ clear_breakpoint_hit_counts()

void clear_breakpoint_hit_counts ( void )
extern

Definition at line 876 of file breakpoint.c.

References all_breakpoints().

Referenced by run_command_1().

◆ clear_displays()

void clear_displays ( void )
extern

Definition at line 2023 of file printcmd.c.

References all_displays.

Referenced by clear_symtab_users(), and undisplay_command().

◆ clone_momentary_breakpoint()

struct breakpoint * clone_momentary_breakpoint ( struct breakpoint * bpkt)
extern

Definition at line 8361 of file breakpoint.c.

References momentary_breakpoint_from_master(), breakpoint::thread, 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 )
extern

Definition at line 1684 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 )
extern

◆ create_breakpoint()

int create_breakpoint ( struct gdbarch * gdbarch,
struct location_spec * locspec,
const char * cond_string,
int thread,
int inferior,
const char * extra_string,
bool force_condition,
int parse_extra,
int tempflag,
enum bptype 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 )
extern

◆ create_jit_event_breakpoint()

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

Definition at line 7911 of file breakpoint.c.

References bp_jit_event, and create_internal_breakpoint().

Referenced by jit_breakpoint_re_set_internal().

◆ create_solib_event_breakpoint()

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

◆ create_thread_event_breakpoint()

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

◆ delete_breakpoint()

void delete_breakpoint ( struct breakpoint * bpt)
extern

◆ delete_longjmp_breakpoint()

void delete_longjmp_breakpoint ( int thread)
extern

◆ delete_longjmp_breakpoint_at_next_stop()

void delete_longjmp_breakpoint_at_next_stop ( int thread)
extern

◆ delete_std_terminate_breakpoint()

void delete_std_terminate_breakpoint ( void )
extern

◆ describe_other_breakpoints()

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

◆ detach_breakpoints()

int detach_breakpoints ( ptid_t ptid)
extern

◆ disable_breakpoint()

void disable_breakpoint ( struct breakpoint * bpt)
extern

◆ disable_breakpoints_before_startup()

void disable_breakpoints_before_startup ( void )
extern

◆ disable_breakpoints_in_shlibs()

void disable_breakpoints_in_shlibs ( void )
extern

◆ disable_current_display()

void disable_current_display ( void )
extern

Definition at line 2274 of file printcmd.c.

References current_display_number, disable_display(), gdb_printf(), and gdb_stderr.

Referenced by normal_stop().

◆ disable_display()

void disable_display ( int num)
extern

Definition at line 2262 of file printcmd.c.

References all_displays, and gdb_printf().

Referenced by disable_current_display().

◆ disable_overlay_breakpoints()

void disable_overlay_breakpoints ( void )
extern

◆ disable_watchpoints_before_interactive_call_start()

void disable_watchpoints_before_interactive_call_start ( void )
extern

◆ do_displays()

void do_displays ( void )
extern

Definition at line 2252 of file printcmd.c.

References all_displays, and do_one_display().

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

◆ enable_breakpoint()

void enable_breakpoint ( struct breakpoint * bpt)
extern

◆ enable_breakpoints_after_startup()

void enable_breakpoints_after_startup ( void )
extern

◆ enable_disable_bp_location()

void enable_disable_bp_location ( bp_location * loc,
bool enable )
extern

◆ enable_overlay_breakpoints()

void enable_overlay_breakpoints ( void )
extern

◆ enable_watchpoints_after_interactive_call_stop()

void enable_watchpoints_after_interactive_call_stop ( void )
extern

◆ ep_parse_optional_if_clause()

const char * ep_parse_optional_if_clause ( const char ** arg)
extern

◆ get_breakpoint()

struct breakpoint * get_breakpoint ( int num)
extern

◆ get_sal_arch()

struct gdbarch * get_sal_arch ( struct symtab_and_line sal)
extern

◆ get_tracepoint()

struct tracepoint * get_tracepoint ( int num)
extern

◆ get_tracepoint_by_number()

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

◆ get_tracepoint_by_number_on_target()

struct tracepoint * get_tracepoint_by_number_on_target ( int num)
extern

Definition at line 14356 of file breakpoint.c.

References all_tracepoints(), and tracepoint::number_on_target.

Referenced by tfile_get_traceframe_address(), and tfind_1().

◆ hardware_breakpoint_inserted_here_p()

int hardware_breakpoint_inserted_here_p ( const address_space * aspace,
CORE_ADDR pc )
extern

◆ hardware_watchpoint_inserted_in_range()

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

◆ insert_breakpoints()

void insert_breakpoints ( void )
extern

◆ insert_single_step_breakpoint()

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

◆ insert_single_step_breakpoints()

int insert_single_step_breakpoints ( struct gdbarch * gdbarch)
extern

◆ install_breakpoint()

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

◆ is_breakpoint()

bool is_breakpoint ( const struct breakpoint * bpt)
extern

◆ is_catchpoint()

bool is_catchpoint ( struct breakpoint * b)
extern

◆ is_exception_catchpoint()

bool is_exception_catchpoint ( breakpoint * bp)
extern

Definition at line 115 of file break-catch-throw.c.

References bp.

Referenced by print_one_breakpoint(), and print_one_breakpoint_location().

◆ is_tracepoint()

bool is_tracepoint ( const struct breakpoint * b)
extern

◆ is_watchpoint()

bool is_watchpoint ( const struct breakpoint * bpt)
extern

◆ mark_breakpoints_out()

void mark_breakpoints_out ( void )
extern

◆ maybe_print_thread_hit_breakpoint()

void maybe_print_thread_hit_breakpoint ( struct ui_out * uiout)
extern

◆ moribund_breakpoint_here_p()

int moribund_breakpoint_here_p ( const address_space * aspace,
CORE_ADDR pc )
extern

◆ notify_breakpoint_modified()

void notify_breakpoint_modified ( breakpoint * b)
extern

◆ pc_at_non_inline_function()

int pc_at_non_inline_function ( const address_space * aspace,
CORE_ADDR pc,
const target_waitstatus & ws )
extern

◆ pending_breakpoint_p()

int pending_breakpoint_p ( struct breakpoint * b)
extern

Definition at line 6951 of file breakpoint.c.

References breakpoint::has_locations().

Referenced by bppy_get_pending().

◆ print_breakpoint()

void print_breakpoint ( breakpoint * bp)
extern

Definition at line 6933 of file breakpoint.c.

References print_one_breakpoint().

Referenced by breakpoint_notify(), and mi_print_breakpoint_for_event().

◆ print_num_locno()

void print_num_locno ( const bpstat * bs,
struct ui_out * uiout )
extern

◆ print_solib_event()

void print_solib_event ( bool is_catchpoint)
extern

◆ remove_breakpoints()

int remove_breakpoints ( void )
extern

◆ remove_breakpoints_inf()

void remove_breakpoints_inf ( inferior * inf)
extern

◆ remove_jit_event_breakpoints()

void remove_jit_event_breakpoints ( void )
extern

◆ remove_solib_event_breakpoints()

void remove_solib_event_breakpoints ( void )
extern

◆ remove_solib_event_breakpoints_at_next_stop()

void remove_solib_event_breakpoints_at_next_stop ( void )
extern

◆ rwatch_command_wrapper()

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

Definition at line 10799 of file breakpoint.c.

References watch_command_1().

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

◆ set_breakpoint_condition() [1/2]

void set_breakpoint_condition ( int bpnum,
const char * exp,
int from_tty,
bool force )
extern

◆ set_breakpoint_condition() [2/2]

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

◆ set_ignore_count()

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

◆ set_longjmp_breakpoint()

void set_longjmp_breakpoint ( struct thread_info * tp,
struct frame_id frame )
extern

◆ set_longjmp_breakpoint_for_call_dummy()

struct breakpoint * set_longjmp_breakpoint_for_call_dummy ( void )
extern

◆ set_momentary_breakpoint()

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

◆ set_momentary_breakpoint_at_pc()

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

◆ set_std_terminate_breakpoint()

void set_std_terminate_breakpoint ( void )
extern

◆ single_step_breakpoint_inserted_here_p()

int single_step_breakpoint_inserted_here_p ( const address_space * aspace,
CORE_ADDR pc )
extern

◆ software_breakpoint_inserted_here_p()

int software_breakpoint_inserted_here_p ( const address_space * aspace,
CORE_ADDR pc )
extern

◆ static_tracepoints_here()

std::vector< breakpoint * > static_tracepoints_here ( CORE_ADDR addr)
extern

◆ tbreak_command()

void tbreak_command ( const char * arg,
int from_tty )
extern

Definition at line 9499 of file breakpoint.c.

References BP_TEMPFLAG, and break_command_1().

Referenced by run_command_1().

◆ until_break_command()

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

◆ update_breakpoint_locations()

void update_breakpoint_locations ( code_breakpoint * b,
struct program_space * filter_pspace,
gdb::array_view< const symtab_and_line > sals,
gdb::array_view< const symtab_and_line > sals_end )
extern

◆ update_breakpoints_after_exec()

void update_breakpoints_after_exec ( void )
extern

◆ user_breakpoint_p()

int user_breakpoint_p ( struct breakpoint * b)
extern

◆ watch_command_wrapper()

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

Definition at line 10717 of file breakpoint.c.

References watch_command_1().

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

◆ watchpoints_triggered()

int watchpoints_triggered ( const target_waitstatus & ws)

Variable Documentation

◆ code_breakpoint_ops

const struct breakpoint_ops code_breakpoint_ops
extern

◆ commands_cmd_element

cmd_list_element* commands_cmd_element
extern

Definition at line 14688 of file breakpoint.c.

Referenced by process_next_line().

◆ fix_breakpoint_script_output_globally

bool fix_breakpoint_script_output_globally
extern

◆ fix_multi_location_breakpoint_output_globally

bool fix_multi_location_breakpoint_output_globally
extern

◆ target_exact_watchpoints

bool target_exact_watchpoints
extern