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 class  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])
 
virtual ~WatchPoint ()=default
 
unsigned getId () const
 
Type getType () const
 
unsigned getBeginAddress () const
 
unsigned getEndAddress () const
 
- Public Member Functions inherited from openmsx::BreakPointBase
std::string_view getCondition () const
 
std::string_view getCommand () const
 
TclObject getConditionObj () const
 
TclObject getCommandObj () const
 
bool onlyOnce () const
 
bool 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 13 of file WatchPoint.hh.

Member Enumeration Documentation

◆ Type

enum class openmsx::WatchPoint::Type
strong
Enumerator
READ_IO 
WRITE_IO 
READ_MEM 
WRITE_MEM 

Definition at line 16 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 
)
inline

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

Definition at line 20 of file WatchPoint.hh.

◆ ~WatchPoint()

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

Member Function Documentation

◆ getBeginAddress()

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

Definition at line 34 of file WatchPoint.hh.

Referenced by openmsx::WatchIO::getDevice().

◆ getEndAddress()

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

Definition at line 35 of file WatchPoint.hh.

◆ getId()

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

Definition at line 32 of file WatchPoint.hh.

Referenced by openmsx::MSXCPUInterface::removeWatchPoint().

◆ getType()

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

Definition at line 33 of file WatchPoint.hh.


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