The Pedigree Project 0.1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TraceCommand Class Reference

#include <TraceCommand.h>

+ Inheritance diagram for TraceCommand:
+ Collaboration diagram for TraceCommand:

Classes

class  Disassembly
 
class  Registers
 
class  Stacktrace
 

Public Member Functions

 TraceCommand ()
 
 ~TraceCommand ()
 
void autocomplete (const HugeStaticString &input, HugeStaticString &output)
 
void setInterface (int nInterface)
 
bool execute (const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
 
const NormalStaticString getString ()
 
int execTrace ()
 

Private Member Functions

void drawBackground (size_t nCols, size_t nLines, DebuggerIO *pScreen)
 

Private Attributes

int m_nExec
 
int m_nInterface
 

Detailed Description

Allows the tracing of an execution path, single stepping and continuing to breakpoints, while displaying a disassembly, the target CPU state and a stack backtrace.

Definition at line 39 of file TraceCommand.h.

Constructor & Destructor Documentation

◆ TraceCommand()

TraceCommand::TraceCommand ( )

Default constructor - zero's stuff.

Definition at line 28 of file TraceCommand.cc.

◆ ~TraceCommand()

TraceCommand::~TraceCommand ( )

Default destructor - does nothing.

Definition at line 30 of file TraceCommand.cc.

Member Function Documentation

◆ autocomplete()

void TraceCommand::autocomplete ( const HugeStaticString &  input,
HugeStaticString &  output 
)
virtual

Return an autocomplete string, given an input string.

Implements DebuggerCommand.

Definition at line 32 of file TraceCommand.cc.

◆ drawBackground()

void TraceCommand::drawBackground ( size_t  nCols,
size_t  nLines,
DebuggerIO *  pScreen 
)
private

Definition at line 136 of file TraceCommand.cc.

◆ execTrace()

int TraceCommand::execTrace ( )
inline

Returns >=0 if the debugger should immediately call us. Returns the interface index to use.

Definition at line 75 of file TraceCommand.h.

References m_nExec.

◆ execute()

bool TraceCommand::execute ( const HugeStaticString &  input,
HugeStaticString &  output,
InterruptState &  state,
DebuggerIO *  screen 
)
virtual

◆ getString()

const NormalStaticString TraceCommand::getString ( )
inlinevirtual

Returns the string representation of this command.

Implements DebuggerCommand.

Definition at line 67 of file TraceCommand.h.

◆ setInterface()

void TraceCommand::setInterface ( int  nInterface)

Definition at line 34 of file TraceCommand.cc.

Member Data Documentation

◆ m_nExec

int TraceCommand::m_nExec
private

Should the debugger immediately call our execute function? and what interface should it use?

Definition at line 136 of file TraceCommand.h.

Referenced by execTrace(), and execute().

◆ m_nInterface

int TraceCommand::m_nInterface
private

Definition at line 137 of file TraceCommand.h.


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