simulavr  1.1.0
RWAbort Class Reference

abort() on access memory More...

#include <specialmem.h>

Inheritance diagram for RWAbort:

Public Member Functions

 RWAbort (TraceValueRegister *registry, const std::string &tracename="")
 
- Public Member Functions inherited from RWMemoryMember
 RWMemoryMember (TraceValueRegister *registry, const std::string &tracename="", const int index=-1)
 
 RWMemoryMember (void)
 
 operator unsigned char () const
 Read access on memory. More...
 
unsigned char operator= (unsigned char val)
 Write access on memory. More...
 
unsigned char operator= (const RWMemoryMember &mm)
 Write access on memory. More...
 
virtual ~RWMemoryMember ()
 
virtual void set_bit (unsigned int bitaddr)
 
virtual void clear_bit (unsigned int bitaddr)
 
const std::string & GetTraceName (void)
 
bool IsInvalid (void) const
 

Protected Member Functions

unsigned char get () const
 
void set (unsigned char)
 

Additional Inherited Members

- Protected Attributes inherited from RWMemoryMember
TraceValuetv
 
TraceValueRegisterregistry
 
const std::string tracename
 
const bool isInvalid
 

Detailed Description

abort() on access memory

Any access to this memory will instantly stop simulavr.

Definition at line 99 of file specialmem.h.

Constructor & Destructor Documentation

◆ RWAbort()

RWAbort::RWAbort ( TraceValueRegister registry,
const std::string &  tracename = "" 
)

Definition at line 96 of file specialmem.cpp.

Member Function Documentation

◆ get()

unsigned char RWAbort::get ( ) const
protectedvirtual

This function as the oppposite to get() is expected to read the real byte.

Implements RWMemoryMember.

Definition at line 106 of file specialmem.cpp.

References SystemConsoleHandler::AbortApplication(), avr_warning, DumpManager::Instance(), DumpManager::stopApplication(), and sysConHandler.

◆ set()

void RWAbort::set ( unsigned  nv)
protectedvirtual

This function is the function which will be called by the above access operators and is expected to do the real work when writing a byte.

Implements RWMemoryMember.

Definition at line 100 of file specialmem.cpp.

References SystemConsoleHandler::AbortApplication(), avr_warning, DumpManager::Instance(), DumpManager::stopApplication(), and sysConHandler.


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