pfp::core::db::Breakpoint Class Reference

Class representation of a pfpdb breakpoint. More...

#include <Breakpoint.h>

+ Collaboration diagram for pfp::core::db::Breakpoint:

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

pfp::core::db::Breakpoint::Breakpoint ( bool  stealth = false)
explicit

Default Constructor.

Parameters
stealthIndicates 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
conditioncondition to be added.
valuevalue 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
brobject 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