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

#include <MemoryInspector.h>

+ Inheritance diagram for MemoryInspector:
+ Collaboration diagram for MemoryInspector:

Public Member Functions

 MemoryInspector ()
 
 ~MemoryInspector ()
 
void autocomplete (const HugeStaticString &input, HugeStaticString &output)
 
bool execute (const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
 
const NormalStaticString getString ()
 
virtual const char * getLine1 (size_t index, DebuggerIO::Colour &colour, DebuggerIO::Colour &bgColour)
 
virtual const char * getLine2 (size_t index, size_t &colOffset, DebuggerIO::Colour &colour, DebuggerIO::Colour &bgColour)
 
virtual size_t getLineCount ()
 
- Public Member Functions inherited from Scrollable
void move (size_t x, size_t y)
 
void resize (size_t width, size_t height)
 
void scroll (ssize_t lines)
 
void scrollTo (size_t absolute)
 
void refresh (DebuggerIO *pScreen)
 
void setScrollKeys (char up, char down)
 
ssize_t getLine ()
 
void centreOn (size_t line)
 
size_t height () const
 
size_t width () const
 

Private Member Functions

void resetStatusLine (DebuggerIO *pScreen)
 
void doGoto (DebuggerIO *pScreen, InterruptState &state)
 
void doSearch (bool bForward, DebuggerIO *pScreen, InterruptState &state)
 
bool tryGoto (LargeStaticString &str, uintptr_t &result, InterruptState &state)
 

Private Attributes

size_t m_nCharsPerLine
 

Additional Inherited Members

- Protected Attributes inherited from Scrollable
size_t m_x
 
size_t m_y
 
size_t m_width
 
size_t m_height
 
ssize_t m_line
 
char m_ScrollUp
 
char m_ScrollDown
 

Detailed Description

A debugger command to inspect memory at a location.

Definition at line 36 of file MemoryInspector.h.

Constructor & Destructor Documentation

MemoryInspector::MemoryInspector ( )

Default constructor - zero's stuff.

Definition at line 26 of file MemoryInspector.cc.

MemoryInspector::~MemoryInspector ( )

Default destructor - does nothing.

Definition at line 31 of file MemoryInspector.cc.

Member Function Documentation

void MemoryInspector::autocomplete ( const HugeStaticString input,
HugeStaticString output 
)
virtual

Return an autocomplete string, given an input string.

Implements DebuggerCommand.

Definition at line 35 of file MemoryInspector.cc.

bool MemoryInspector::execute ( const HugeStaticString input,
HugeStaticString output,
InterruptState &  state,
DebuggerIO screen 
)
virtual
const NormalStaticString MemoryInspector::getString ( )
inlinevirtual

Returns the string representation of this command.

Implements DebuggerCommand.

Definition at line 64 of file MemoryInspector.h.


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