GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
watchpoint Struct Reference

#include "breakpoint.h"

Inheritance diagram for watchpoint:
breakpoint masked_watchpoint

Public Member Functions

void re_set () override
 
int insert_location (struct bp_location *) override
 
int remove_location (struct bp_location *, enum remove_bp_reason reason) override
 
int breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws) override
 
void check_status (struct bpstat *bs) override
 
int resources_needed (const struct bp_location *) override
 
virtual bool works_in_software_mode () const
 
enum print_stop_action print_it (const bpstat *bs) const override
 
void print_mention () const override
 
void print_recreate (struct ui_file *fp) const override
 
bool explains_signal (enum gdb_signal) override
 
 ~watchpoint ()
 
 breakpoint (struct gdbarch *gdbarch_, enum bptype bptype, bool temp=true, const char *cond_string=nullptr)
 
- Public Member Functions inherited from breakpoint
 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 bool print_one (const bp_location **) const
 
virtual void print_one_detail (struct ui_out *) const
 
virtual void after_condition_true (struct bpstat *bs)
 

Public Attributes

gdb::unique_xmalloc_ptr< char > exp_string
 
gdb::unique_xmalloc_ptr< char > exp_string_reparse
 
expression_up exp
 
const struct blockexp_valid_block
 
expression_up cond_exp
 
const struct blockcond_exp_valid_block
 
value_ref_ptr val
 
bool val_valid
 
int val_bitpos
 
int val_bitsize
 
struct frame_id watchpoint_frame
 
ptid_t watchpoint_thread
 
enum watchpoint_triggered watchpoint_triggered
 
int exact
 
CORE_ADDR hw_wp_mask
 
- Public Attributes inherited from breakpoint
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
 

Additional Inherited Members

- Protected Member Functions inherited from breakpoint
void print_recreate_thread (struct ui_file *fp) const
 
- Protected Attributes inherited from breakpoint
bp_location_list m_locations
 

Detailed Description

Definition at line 978 of file breakpoint.h.

Constructor & Destructor Documentation

◆ ~watchpoint()

watchpoint::~watchpoint ( )

Definition at line 9818 of file breakpoint.c.

References breakpoint::related_breakpoint.

Member Function Documentation

◆ breakpoint()

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

Definition at line 624 of file breakpoint.c.

◆ breakpoint_hit()

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

Reimplemented from breakpoint.

Definition at line 9898 of file breakpoint.c.

References is_hardware_watchpoint(), bp_location::owner, and watch_triggered_no.

◆ check_status()

void watchpoint::check_status ( struct bpstat * bs)
overridevirtual

Reimplemented from breakpoint.

Definition at line 9918 of file breakpoint.c.

References bpstat_check_watchpoint().

◆ explains_signal()

bool watchpoint::explains_signal ( enum gdb_signal sig)
overridevirtual

Reimplemented from breakpoint.

Definition at line 10091 of file breakpoint.c.

References bp_watchpoint.

◆ insert_location()

int watchpoint::insert_location ( struct bp_location * bl)
overridevirtual

◆ print_it()

enum print_stop_action watchpoint::print_it ( const bpstat * bs) const
overridevirtual

◆ print_mention()

void watchpoint::print_mention ( ) const
overridevirtual

◆ print_recreate()

void watchpoint::print_recreate ( struct ui_file * fp) const
overridevirtual

◆ re_set()

void watchpoint::re_set ( )
overridevirtual

Reimplemented from breakpoint.

Definition at line 9844 of file breakpoint.c.

References update_watchpoint().

◆ remove_location()

int watchpoint::remove_location ( struct bp_location * bl,
enum remove_bp_reason reason )
overridevirtual

◆ resources_needed()

int watchpoint::resources_needed ( const struct bp_location * bl)
overridevirtual

Reimplemented from breakpoint.

Definition at line 9927 of file breakpoint.c.

References bp_location::address, exact, bp_location::length, and target_region_ok_for_hw_watchpoint().

◆ works_in_software_mode()

bool watchpoint::works_in_software_mode ( ) const
virtual

Reimplemented in masked_watchpoint.

Definition at line 9938 of file breakpoint.c.

References bp_hardware_watchpoint, and bp_watchpoint.

Referenced by update_watchpoint().

Member Data Documentation

◆ cond_exp

expression_up watchpoint::cond_exp

◆ cond_exp_valid_block

const struct block* watchpoint::cond_exp_valid_block

◆ exact

int watchpoint::exact

◆ exp

expression_up watchpoint::exp

Definition at line 1013 of file breakpoint.h.

Referenced by update_watchpoint(), and watchpoint_check().

◆ exp_string

gdb::unique_xmalloc_ptr<char> watchpoint::exp_string

◆ exp_string_reparse

gdb::unique_xmalloc_ptr<char> watchpoint::exp_string_reparse

Definition at line 1010 of file breakpoint.h.

Referenced by update_watchpoint().

◆ exp_valid_block

const struct block* watchpoint::exp_valid_block

Definition at line 1016 of file breakpoint.h.

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

◆ hw_wp_mask

CORE_ADDR watchpoint::hw_wp_mask

◆ val

value_ref_ptr watchpoint::val

◆ val_bitpos

int watchpoint::val_bitpos

Definition at line 1033 of file breakpoint.h.

Referenced by extract_bitfield_from_watchpoint_value(), and update_watchpoint().

◆ val_bitsize

int watchpoint::val_bitsize

◆ val_valid

bool watchpoint::val_valid

◆ watchpoint_frame

struct frame_id watchpoint::watchpoint_frame

Definition at line 1039 of file breakpoint.h.

Referenced by update_watchpoint(), and watchpoint_check().

◆ watchpoint_thread

ptid_t watchpoint::watchpoint_thread

Definition at line 1044 of file breakpoint.h.

Referenced by watchpoint_in_thread_scope().

◆ watchpoint_triggered

enum watchpoint_triggered watchpoint::watchpoint_triggered

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