GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
breakpoint Struct Referenceabstract

#include "breakpoint.h"

Inheritance diagram for breakpoint:
catchpoint code_breakpoint watchpoint exec_catchpoint fork_catchpoint signal_catchpoint solib_catchpoint syscall_catchpoint ada_catchpoint amd_dbgapi_target_breakpoint exception_catchpoint internal_breakpoint momentary_breakpoint ordinary_breakpoint tracepoint masked_watchpoint

Public Member Functions

 breakpoint (struct gdbarch *gdbarch_, enum bptype bptype, bool temp=true, const char *cond_string=nullptr)
 
 DISABLE_COPY_AND_ASSIGN (breakpoint)
 
virtual ~breakpoint ()=0
 
virtual struct bp_locationallocate_location ()
 
bp_location_range locations () const
 
void add_location (bp_location &loc)
 
void unadd_location (bp_location &loc)
 
void clear_locations ()
 
bp_location_list steal_locations (program_space *pspace)
 
bool has_locations () const
 
bool has_single_location () const
 
bool has_multiple_locations () const
 
bp_locationfirst_loc ()
 
const bp_locationfirst_loc () const
 
const bp_locationlast_loc () const
 
virtual void re_set ()
 
virtual int insert_location (struct bp_location *)
 
virtual int remove_location (struct bp_location *, enum remove_bp_reason reason)
 
virtual int breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws)
 
virtual void check_status (struct bpstat *bs)
 
virtual int resources_needed (const struct bp_location *)
 
virtual enum print_stop_action print_it (const bpstat *bs) const
 
virtual bool print_one (const bp_location **) const
 
virtual void print_one_detail (struct ui_out *) const
 
virtual void print_mention () const
 
virtual void print_recreate (struct ui_file *fp) const
 
virtual bool explains_signal (enum gdb_signal)
 
virtual void after_condition_true (struct bpstat *bs)
 

Public Attributes

bptype type = bp_none
 
enum enable_state enable_state = bp_enabled
 
bpdisp disposition = disp_del
 
int number = 0
 
bool silent = false
 
bool display_canonical = false
 
int ignore_count = 0
 
int enable_count = 0
 
counted_command_line commands
 
struct frame_id frame_id = null_frame_id
 
program_spacepspace = NULL
 
location_spec_up locspec
 
gdb::unique_xmalloc_ptr< char > filter
 
location_spec_up locspec_range_end
 
struct gdbarchgdbarch
 
enum language language
 
int input_radix
 
gdb::unique_xmalloc_ptr< char > cond_string
 
gdb::unique_xmalloc_ptr< char > extra_string
 
breakpointrelated_breakpoint
 
int thread = -1
 
int inferior = -1
 
int task = -1
 
int hit_count = 0
 
int condition_not_parsed = 0
 
gdbpy_breakpoint_objectpy_bp_object = NULL
 
gdbscm_breakpoint_objectscm_bp_object = NULL
 

Protected Member Functions

void print_recreate_thread (struct ui_file *fp) const
 

Protected Attributes

bp_location_list m_locations
 

Detailed Description

Definition at line 622 of file breakpoint.h.

Constructor & Destructor Documentation

◆ breakpoint()

breakpoint::breakpoint ( struct gdbarch * gdbarch_,
enum bptype bptype ,
bool temp = true,
const char * cond_string = nullptr )

Definition at line 8130 of file breakpoint.c.

◆ ~breakpoint()

breakpoint::~breakpoint ( )
pure virtual

Definition at line 313 of file breakpoint.c.

Member Function Documentation

◆ add_location()

void breakpoint::add_location ( bp_location & loc)

Definition at line 11882 of file breakpoint.c.

References loc, and m_locations.

Referenced by add_dummy_location(), code_breakpoint::add_location(), and update_watchpoint().

◆ after_condition_true()

virtual void breakpoint::after_condition_true ( struct bpstat * bs)
inlinevirtual

Reimplemented in dprintf_breakpoint.

Definition at line 792 of file breakpoint.h.

Referenced by bpstat_stop_status().

◆ allocate_location()

struct bp_location * breakpoint::allocate_location ( )
virtual

Reimplemented in ada_catchpoint, and exception_catchpoint.

Definition at line 11874 of file breakpoint.c.

Referenced by code_breakpoint::add_location(), and update_watchpoint().

◆ breakpoint_hit()

int breakpoint::breakpoint_hit ( const struct bp_location * bl,
const address_space * aspace,
CORE_ADDR bp_addr,
const target_waitstatus & ws )
virtual

◆ check_status()

virtual void breakpoint::check_status ( struct bpstat * bs)
inlinevirtual

◆ clear_locations()

void breakpoint::clear_locations ( )
inline

Definition at line 652 of file breakpoint.h.

References m_locations.

Referenced by breakpoint_init_inferior(), delete_breakpoint(), and update_watchpoint().

◆ DISABLE_COPY_AND_ASSIGN()

breakpoint::DISABLE_COPY_AND_ASSIGN ( breakpoint )

◆ explains_signal()

virtual bool breakpoint::explains_signal ( enum gdb_signal )
inlinevirtual

Reimplemented in signal_catchpoint, and watchpoint.

Definition at line 785 of file breakpoint.h.

Referenced by bpstat_explains_signal().

◆ first_loc() [1/2]

bp_location & breakpoint::first_loc ( )
inline

◆ first_loc() [2/2]

const bp_location & breakpoint::first_loc ( ) const
inline

Definition at line 690 of file breakpoint.h.

References has_locations(), and m_locations.

◆ has_locations()

bool breakpoint::has_locations ( ) const
inline

◆ has_multiple_locations()

bool breakpoint::has_multiple_locations ( ) const
inline

◆ has_single_location()

bool breakpoint::has_single_location ( ) const
inline

◆ insert_location()

int breakpoint::insert_location ( struct bp_location * bl)
virtual

◆ last_loc()

const bp_location & breakpoint::last_loc ( ) const
inline

Definition at line 697 of file breakpoint.h.

References has_locations(), and m_locations.

Referenced by set_breakpoint_condition().

◆ locations()

bp_location_range breakpoint::locations ( ) const

◆ print_it()

enum print_stop_action breakpoint::print_it ( const bpstat * bs) const
virtual

◆ print_mention()

void breakpoint::print_mention ( ) const
virtual

◆ print_one()

virtual bool breakpoint::print_one ( const bp_location ** ) const
inlinevirtual

◆ print_one_detail()

virtual void breakpoint::print_one_detail ( struct ui_out * ) const
inlinevirtual

Reimplemented in exception_catchpoint, ranged_breakpoint, masked_watchpoint, and tracepoint.

Definition at line 771 of file breakpoint.h.

Referenced by print_one_breakpoint_location().

◆ print_recreate()

void breakpoint::print_recreate ( struct ui_file * fp) const
virtual

◆ print_recreate_thread()

void breakpoint::print_recreate_thread ( struct ui_file * fp) const
protected

◆ re_set()

virtual void breakpoint::re_set ( )
inlinevirtual

◆ remove_location()

int breakpoint::remove_location ( struct bp_location * bl,
enum remove_bp_reason reason )
virtual

◆ resources_needed()

int breakpoint::resources_needed ( const struct bp_location * bl)
virtual

◆ steal_locations()

bp_location_list breakpoint::steal_locations ( program_space * pspace)

Definition at line 12940 of file breakpoint.c.

References loc, m_locations, and pspace.

Referenced by update_breakpoint_locations().

◆ unadd_location()

void breakpoint::unadd_location ( bp_location & loc)

Definition at line 11898 of file breakpoint.c.

References loc, and m_locations.

Member Data Documentation

◆ commands

counted_command_line breakpoint::commands

◆ cond_string

gdb::unique_xmalloc_ptr<char> breakpoint::cond_string

◆ condition_not_parsed

int breakpoint::condition_not_parsed = 0

◆ display_canonical

bool breakpoint::display_canonical = false

Definition at line 810 of file breakpoint.h.

Referenced by code_breakpoint::code_breakpoint(), and print_breakpoint_location().

◆ disposition

bpdisp breakpoint::disposition = disp_del

◆ enable_count

int breakpoint::enable_count = 0

◆ enable_state

enum enable_state breakpoint::enable_state = bp_enabled

◆ extra_string

gdb::unique_xmalloc_ptr<char> breakpoint::extra_string

◆ filter

gdb::unique_xmalloc_ptr<char> breakpoint::filter

◆ frame_id

struct frame_id breakpoint::frame_id = null_frame_id

◆ gdbarch

struct gdbarch* breakpoint::gdbarch

◆ hit_count

int breakpoint::hit_count = 0

◆ ignore_count

int breakpoint::ignore_count = 0

◆ inferior

int breakpoint::inferior = -1

◆ input_radix

int breakpoint::input_radix

Definition at line 847 of file breakpoint.h.

Referenced by breakpoint_re_set_one().

◆ language

enum language breakpoint::language

Definition at line 845 of file breakpoint.h.

Referenced by breakpoint_re_set_one().

◆ locspec

location_spec_up breakpoint::locspec

◆ locspec_range_end

location_spec_up breakpoint::locspec_range_end

◆ m_locations

bp_location_list breakpoint::m_locations
protected

◆ number

int breakpoint::number = 0

Definition at line 804 of file breakpoint.h.

Referenced by actions_command(), bp_location_is_less_than(), bpscm_breakpoint_deleted(), bpstat_check_breakpoint_conditions(), bpstat_check_watchpoint(), bpstat_do_actions_1(), bpstat_locno(), bpstat_num(), breakpoint_1(), breakpoint_changed(), breakpoint_location_address_str(), breakpoint_re_set(), breakpoint_xfer_memory(), code_breakpoint::code_breakpoint(), compare_breakpoints(), condition_completer(), create_tracepoint_from_upload(), delete_breakpoint(), describe_other_breakpoints(), remote_target::disable_tracepoint(), remote_target::download_tracepoint(), download_tracepoint_locations(), enable_breakpoint_disp(), remote_target::enable_tracepoint(), find_location_by_number(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_modified(), gdbscm_breakpoint_visible(), insert_bp_location(), map_breakpoint_number_range(), merge_uploaded_tracepoints(), mi_interp::on_breakpoint_created(), mi_interp::on_breakpoint_deleted(), mi_interp::on_breakpoint_modified(), ada_catchpoint::print_it(), exec_catchpoint::print_it(), fork_catchpoint::print_it(), solib_catchpoint::print_it(), signal_catchpoint::print_it(), syscall_catchpoint::print_it(), exception_catchpoint::print_it(), ordinary_breakpoint::print_it(), ranged_breakpoint::print_it(), masked_watchpoint::print_it(), watchpoint::print_it(), ada_catchpoint::print_mention(), exec_catchpoint::print_mention(), fork_catchpoint::print_mention(), solib_catchpoint::print_mention(), signal_catchpoint::print_mention(), syscall_catchpoint::print_mention(), exception_catchpoint::print_mention(), ordinary_breakpoint::print_mention(), ranged_breakpoint::print_mention(), masked_watchpoint::print_mention(), watchpoint::print_mention(), tracepoint::print_mention(), print_num_locno(), print_one_breakpoint_location(), ada_catchpoint::re_set(), remove_breakpoint_1(), remove_inferior_breakpoints(), remove_threaded_breakpoints(), set_breakpoint_condition(), set_breakpoint_condition(), set_breakpoint_number(), set_ignore_count(), tfind_1(), trace_pass_set_count(), tracefile_fetch_registers(), update_breakpoint_locations(), update_watchpoint(), user_breakpoint_p(), and watchpoint_check().

◆ pspace

program_space* breakpoint::pspace = NULL

◆ py_bp_object

gdbpy_breakpoint_object* breakpoint::py_bp_object = NULL

◆ related_breakpoint

breakpoint* breakpoint::related_breakpoint

◆ scm_bp_object

gdbscm_breakpoint_object* breakpoint::scm_bp_object = NULL

◆ silent

bool breakpoint::silent = false

◆ task

int breakpoint::task = -1

◆ thread

int breakpoint::thread = -1

◆ type

bptype breakpoint::type = bp_none

Definition at line 798 of file breakpoint.h.

Referenced by bppy_get_location(), bppy_get_type(), bppy_set_inferior(), bpscm_print_breakpoint_smob(), bpstat_check_watchpoint(), bpstat_run_callbacks(), bpstat_should_step(), bpstat_stop_status(), breakpoint_1(), breakpoint_init_inferior(), breakpoint_kind(), breakpoint_xfer_memory(), build_bpstat_chain(), build_target_command_list(), check_longjmp_breakpoint_for_call_dummy(), clear_command(), clone_momentary_breakpoint(), delete_breakpoint(), delete_longjmp_breakpoint(), delete_longjmp_breakpoint_at_next_stop(), delete_std_terminate_breakpoint(), disable_breakpoint(), disable_breakpoints_in_shlibs(), disable_breakpoints_in_unloaded_shlib(), disable_overlay_breakpoints(), remote_target::download_tracepoint(), download_tracepoint_locations(), elf_gnu_ifunc_resolver_return_stop(), elf_gnu_ifunc_resolver_stop(), enable_breakpoint_disp(), enable_overlay_breakpoints(), gdbscm_breakpoint_location(), gdbscm_breakpoint_type(), handle_automatic_hardware_breakpoints(), hw_breakpoint_used_count(), hw_watchpoint_used_count_others(), insert_bp_location(), is_breakpoint(), is_catchpoint(), is_hardware_watchpoint(), is_non_inline_function(), is_tracepoint(), is_watchpoint(), jit_breakpoint_deleted(), print_breakpoint_location(), print_one_breakpoint_location(), process_event_stop_test(), remove_breakpoint(), remove_breakpoint_1(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), remove_solib_event_breakpoints_at_next_stop(), set_breakpoint_location_function(), set_longjmp_breakpoint(), set_longjmp_breakpoint_for_call_dummy(), set_std_terminate_breakpoint(), should_be_inserted(), static_tracepoints_here(), stopped_by_user_bp_inline_frame(), strace_marker_p(), svr4_update_solib_event_breakpoint(), update_breakpoints_after_exec(), update_dprintf_commands(), update_global_location_list(), update_watchpoint(), validate_commands_for_breakpoint(), watch_command_1(), watchpoint_del_at_next_stop(), and watchpoint_locations_match().


The documentation for this struct was generated from the following files: