ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Types | Public Member Functions | Private Attributes | List of all members
etiss::plugin::gdb::BreakpointDB Class Reference

structure to store breakpoints More...

#include <GDBServer.h>

Collaboration diagram for etiss::plugin::gdb::BreakpointDB:
Collaboration graph
[legend]

Public Types

enum  BPType { BPTYPE_BREAK_MEM = 1 , BPTYPE_BREAK_HW = 2 , BPTYPE_WATCH_WRITE = 4 , BPTYPE_WATCH_READ = 8 }
 

Public Member Functions

 BreakpointDB ()
 
bool isEmpty ()
 
etiss::uint32 get (etiss::uint64 addr)
 
void set (etiss::uint64 addr, etiss::uint32 val)
 

Private Attributes

etiss::uint32 **** instrbrkpt_
 important: index maps are reversed to instruction pointer e.g pointer(0x0102030405060708) [POINTER != ADDRESS] -> instrbrkpt_[0x0708][0x0506][0x0304][0x0201] More...
 

Detailed Description

structure to store breakpoints

Definition at line 79 of file GDBServer.h.

Member Enumeration Documentation

◆ BPType

Enumerator
BPTYPE_BREAK_MEM 
BPTYPE_BREAK_HW 
BPTYPE_WATCH_WRITE 
BPTYPE_WATCH_READ 

Definition at line 82 of file GDBServer.h.

Constructor & Destructor Documentation

◆ BreakpointDB()

BreakpointDB::BreakpointDB ( )

Definition at line 63 of file GDBServer.cpp.

References instrbrkpt_.

Member Function Documentation

◆ get()

etiss::uint32 etiss::plugin::gdb::BreakpointDB::get ( etiss::uint64  addr)
inline

◆ isEmpty()

bool etiss::plugin::gdb::BreakpointDB::isEmpty ( )
inline

◆ set()

void BreakpointDB::set ( etiss::uint64  addr,
etiss::uint32  val 
)

Definition at line 68 of file GDBServer.cpp.

References instrbrkpt_, and memset().

Referenced by etiss::plugin::gdb::Server::handlePacket().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ instrbrkpt_

etiss::uint32*** * etiss::plugin::gdb::BreakpointDB::instrbrkpt_
private

important: index maps are reversed to instruction pointer e.g pointer(0x0102030405060708) [POINTER != ADDRESS] -> instrbrkpt_[0x0708][0x0506][0x0304][0x0201]

Definition at line 117 of file GDBServer.h.

Referenced by BreakpointDB(), get(), isEmpty(), and set().


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