GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | 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 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 ()
 
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 (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)
 
bp_location_range locations () const
 

Public Attributes

breakpointnext = NULL
 
bptype type = bp_none
 
enum enable_state enable_state = bp_enabled
 
bpdisp disposition = disp_del
 
int number = 0
 
bp_locationloc = NULL
 
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 task = 0
 
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
 

Detailed Description

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

◆ ~breakpoint()

breakpoint::~breakpoint ( )
pure virtual

Definition at line 248 of file breakpoint.c.

Member Function Documentation

◆ after_condition_true()

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

Reimplemented in dprintf_breakpoint.

Definition at line 723 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 11579 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

◆ 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 716 of file breakpoint.h.

Referenced by bpstat_explains_signal().

◆ insert_location()

int breakpoint::insert_location ( struct bp_location bl)
virtual

◆ 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 ( 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 702 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

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 748 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

◆ input_radix

int breakpoint::input_radix

Definition at line 785 of file breakpoint.h.

Referenced by breakpoint_re_set_one().

◆ language

enum language breakpoint::language

Definition at line 783 of file breakpoint.h.

Referenced by breakpoint_re_set_one().

◆ loc

bp_location* breakpoint::loc = NULL

◆ locspec

location_spec_up breakpoint::locspec

◆ locspec_range_end

location_spec_up breakpoint::locspec_range_end

◆ next

breakpoint* breakpoint::next = NULL

◆ number

int breakpoint::number = 0

Definition at line 739 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_re_set(), breakpoint_xfer_memory(), code_breakpoint::code_breakpoint(), compare_breakpoints(), condition_completer(), create_excep_cond_exprs(), 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_breakpoint_created(), mi_breakpoint_deleted(), mi_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(), remove_breakpoint_1(), remove_threaded_breakpoints(), set_breakpoint_condition(), set_breakpoint_number(), set_ignore_count(), tfind_1(), trace_pass_set_count(), tracefile_fetch_registers(), update_breakpoint_locations(), update_static_tracepoint(), 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 = 0

◆ thread

int breakpoint::thread = -1

◆ type

bptype breakpoint::type = bp_none

Definition at line 733 of file breakpoint.h.

Referenced by bppy_get_location(), bppy_get_type(), 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(), parse_tracepoint_definition(), print_breakpoint_location(), masked_watchpoint::print_it(), watchpoint::print_it(), 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(), say_where(), 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: