openMSX
Public Types | Public Member Functions | List of all members
openmsx::WatchPoint Class Reference

Base class for CPU breakpoints. More...

#include <WatchPoint.hh>

Inheritance diagram for openmsx::WatchPoint:
Inheritance graph
[legend]
Collaboration diagram for openmsx::WatchPoint:
Collaboration graph
[legend]

Public Types

enum  Type { READ_IO, WRITE_IO, READ_MEM, WRITE_MEM }
 

Public Member Functions

 WatchPoint (TclObject command, TclObject condition, Type type, unsigned beginAddr, unsigned endAddr, bool once, unsigned newId=-1)
 Begin and end address are inclusive (IOW range = [begin, end]) More...
 
virtual ~WatchPoint ()=default
 
unsigned getId () const
 
Type getType () const
 
unsigned getBeginAddress () const
 
unsigned getEndAddress () const
 
- Public Member Functions inherited from openmsx::BreakPointBase
string_view getCondition () const
 
string_view getCommand () const
 
TclObject getConditionObj () const
 
TclObject getCommandObj () const
 
bool onlyOnce () const
 
void checkAndExecute (GlobalCliComm &cliComm, Interpreter &interp)
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::BreakPointBase
 BreakPointBase (TclObject command_, TclObject condition_, bool once_)
 

Detailed Description

Base class for CPU breakpoints.

For performance reasons every bp is associated with exactly one (immutable) address.

Definition at line 12 of file WatchPoint.hh.

Member Enumeration Documentation

◆ Type

Enumerator
READ_IO 
WRITE_IO 
READ_MEM 
WRITE_MEM 

Definition at line 15 of file WatchPoint.hh.

Constructor & Destructor Documentation

◆ WatchPoint()

openmsx::WatchPoint::WatchPoint ( TclObject  command,
TclObject  condition,
Type  type,
unsigned  beginAddr,
unsigned  endAddr,
bool  once,
unsigned  newId = -1 
)

Begin and end address are inclusive (IOW range = [begin, end])

Definition at line 8 of file WatchPoint.cc.

◆ ~WatchPoint()

virtual openmsx::WatchPoint::~WatchPoint ( )
virtualdefault

Member Function Documentation

◆ getBeginAddress()

unsigned openmsx::WatchPoint::getBeginAddress ( ) const
inline

◆ getEndAddress()

unsigned openmsx::WatchPoint::getEndAddress ( ) const
inline

Definition at line 27 of file WatchPoint.hh.

◆ getId()

unsigned openmsx::WatchPoint::getId ( ) const
inline

Definition at line 24 of file WatchPoint.hh.

◆ getType()

Type openmsx::WatchPoint::getType ( ) const
inline

Definition at line 25 of file WatchPoint.hh.


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