Class representation of a pfpdb breakpoint. More...
#include <Breakpoint.h>
Public Types | |
enum | BreakpointCondition { BREAK_ON_MODULE_READ, BREAK_ON_MODULE_WRITE, BREAK_AT_TIME, BREAK_ON_PACKET_ID } |
Enumeration representing the various conditions on which the user can break. More... | |
Public Member Functions | |
Breakpoint (bool stealth=false) | |
Default Constructor. More... | |
bool | isEqual (Breakpoint br) |
Function to compare two Breakpoint objects. More... | |
void | addCondition (BreakpointCondition condition, std::string value) |
Add a condition to the Breakpoint. More... | |
int | getID () const |
Get the unique ID of the Breakpoint. More... | |
Public Attributes | |
std::map< BreakpointCondition, std::string > | conditions |
Map containing all the conditions of the Breakpoint and the associated value. More... | |
bool | temp |
Indicates whether the Breakpoint is temporary. More... | |
bool | disabled |
Indicates whether the Breakpoint is disabled. More... | |
Detailed Description
Class representation of a pfpdb breakpoint.
Member Enumeration Documentation
Enumeration representing the various conditions on which the user can break.
The user can break when a module reads a packet, a module writes a packet, a specific simulation time is reached or when a packet hits any module.
Constructor & Destructor Documentation
|
explicit |
Default Constructor.
- Parameters
-
stealth Indicates whether the breakpoint is internal or set by the user.
Member Function Documentation
void pfp::core::db::Breakpoint::addCondition | ( | BreakpointCondition | condition, |
std::string | value | ||
) |
Add a condition to the Breakpoint.
- Parameters
-
condition condition to be added. value value to break on.
int pfp::core::db::Breakpoint::getID | ( | ) | const |
Get the unique ID of the Breakpoint.
- Returns
- the unique ID.
bool pfp::core::db::Breakpoint::isEqual | ( | Breakpoint | br | ) |
Function to compare two Breakpoint objects.
- Parameters
-
br object to compare to.
- Returns
- true if they are equal, otherwise false.
Member Data Documentation
std::map<BreakpointCondition, std::string> pfp::core::db::Breakpoint::conditions |
Map containing all the conditions of the Breakpoint and the associated value.
bool pfp::core::db::Breakpoint::disabled |
Indicates whether the Breakpoint is disabled.
If disabled, it will not be hit but will still exist so that it can be enabled later.
bool pfp::core::db::Breakpoint::temp |
Indicates whether the Breakpoint is temporary.
If temporary, it will be destroyed when hit.
The documentation for this class was generated from the following files:
- /home/lemniscate/workspace/PFPSim/pfpsim/core/debugger/Breakpoint.h
- /home/lemniscate/workspace/PFPSim/pfpsim/core/debugger/Breakpoint.cpp