ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Wintermute::Console Class Reference

#include <debugger.h>

Inheritance diagram for Wintermute::Console:
Collaboration diagram for Wintermute::Console:

List of all members.

Public Member Functions

 Console (WintermuteEngine *vm)
 ~Console () override
bool Cmd_Help (int argc, const char **argv)
bool Cmd_ShowFps (int argc, const char **argv)
bool Cmd_DumpFile (int argc, const char **argv)
bool Cmd_Step (int argc, const char **argv)
 Step - break again on next line.
bool Cmd_Continue (int argc, const char **argv)
 Continue execution.
bool Cmd_Finish (int argc, const char **argv)
 Only break again when the current function is finished (activation record is popped).
bool Cmd_Print (int argc, const char **argv)
bool Cmd_Set (int argc, const char **argv)
bool Cmd_AddBreakpoint (int argc, const char **argv)
bool Cmd_RemoveBreakpoint (int argc, const char **argv)
bool Cmd_EnableBreakpoint (int argc, const char **argv)
bool Cmd_DisableBreakpoint (int argc, const char **argv)
bool Cmd_Watch (int argc, const char **argv)
 Add a watch.
bool Cmd_RemoveWatch (int argc, const char **argv)
bool Cmd_EnableWatch (int argc, const char **argv)
bool Cmd_DisableWatch (int argc, const char **argv)
bool Cmd_Info (int argc, const char **argv)
 Print info re:watch and breakpoints.
bool Cmd_List (int argc, const char **argv)
 Print source.
bool Cmd_SourcePath (int argc, const char **argv)
 Set (DOS-style) source path for debugging.
bool Cmd_Top (int argc, const char **argv)
 Top.
Error printSource (int n=DEFAULT_SOURCE_PADDING)
void notifyBreakpoint (const char *filename, int line)
 Hooks for the controller to open the console.
void notifyStep (const char *filename, int line)
void notifyWatch (const char *filename, const char *symbol, const char *newValue)
 To be called by the adapter when a watched variable is changed.

Private Member Functions

void printError (const Common::String &command, Error error)
void printUsage (const Common::String &command)

Private Attributes

const WintermuteEngine_engineRef

Detailed Description

Definition at line 63 of file debugger.h.


Constructor & Destructor Documentation

Wintermute::Console::Console ( WintermuteEngine vm  ) 

Definition at line 34 of file debugger.cpp.

Wintermute::Console::~Console ( void   )  [override]

Definition at line 60 of file debugger.cpp.


Member Function Documentation

bool Wintermute::Console::Cmd_AddBreakpoint ( int  argc,
const char **  argv 
)

Definition at line 108 of file debugger.cpp.

bool Wintermute::Console::Cmd_Continue ( int  argc,
const char **  argv 
)

Continue execution.

Definition at line 223 of file debugger.cpp.

bool Wintermute::Console::Cmd_DisableBreakpoint ( int  argc,
const char **  argv 
)

Definition at line 138 of file debugger.cpp.

bool Wintermute::Console::Cmd_DisableWatch ( int  argc,
const char **  argv 
)

Definition at line 169 of file debugger.cpp.

bool Wintermute::Console::Cmd_DumpFile ( int  argc,
const char **  argv 
)

Definition at line 311 of file debugger.cpp.

bool Wintermute::Console::Cmd_EnableBreakpoint ( int  argc,
const char **  argv 
)

Definition at line 128 of file debugger.cpp.

bool Wintermute::Console::Cmd_EnableWatch ( int  argc,
const char **  argv 
)

Definition at line 159 of file debugger.cpp.

bool Wintermute::Console::Cmd_Finish ( int  argc,
const char **  argv 
)

Only break again when the current function is finished (activation record is popped).

Definition at line 238 of file debugger.cpp.

bool Wintermute::Console::Cmd_Help ( int  argc,
const char **  argv 
)

Definition at line 63 of file debugger.cpp.

bool Wintermute::Console::Cmd_Info ( int  argc,
const char **  argv 
)

Print info re:watch and breakpoints.

This differs from e.g. gdb in that we have separate lists.

Definition at line 189 of file debugger.cpp.

bool Wintermute::Console::Cmd_List ( int  argc,
const char **  argv 
)

Print source.

Definition at line 254 of file debugger.cpp.

bool Wintermute::Console::Cmd_Print ( int  argc,
const char **  argv 
)

Definition at line 262 of file debugger.cpp.

bool Wintermute::Console::Cmd_RemoveBreakpoint ( int  argc,
const char **  argv 
)

Definition at line 118 of file debugger.cpp.

bool Wintermute::Console::Cmd_RemoveWatch ( int  argc,
const char **  argv 
)

Definition at line 148 of file debugger.cpp.

bool Wintermute::Console::Cmd_Set ( int  argc,
const char **  argv 
)

Definition at line 280 of file debugger.cpp.

bool Wintermute::Console::Cmd_ShowFps ( int  argc,
const char **  argv 
)

Definition at line 296 of file debugger.cpp.

bool Wintermute::Console::Cmd_SourcePath ( int  argc,
const char **  argv 
)

Set (DOS-style) source path for debugging.

This is where you will (optionally) put your sources to enable printing of sources as you step through the scripts.

Please note that we have no checksum or anything to make sure your source files are up to date.

YOU HAVE to make sure of that.

You have been warned! :)

Definition at line 345 of file debugger.cpp.

bool Wintermute::Console::Cmd_Step ( int  argc,
const char **  argv 
)

Step - break again on next line.

Definition at line 208 of file debugger.cpp.

bool Wintermute::Console::Cmd_Top ( int  argc,
const char **  argv 
)

Top.

Definition at line 405 of file debugger.cpp.

bool Wintermute::Console::Cmd_Watch ( int  argc,
const char **  argv 
)

Add a watch.

It monitors the value of some variable x against its last known state and it breaks if it has changed since.

Definition at line 179 of file debugger.cpp.

void Wintermute::Console::notifyBreakpoint ( const char *  filename,
int  line 
)

Hooks for the controller to open the console.

Definition at line 359 of file debugger.cpp.

void Wintermute::Console::notifyStep ( const char *  filename,
int  line 
)

Definition at line 366 of file debugger.cpp.

void Wintermute::Console::notifyWatch ( const char *  filename,
const char *  symbol,
const char *  newValue 
)

To be called by the adapter when a watched variable is changed.

Opens a console and prints info and listing if available.

Definition at line 373 of file debugger.cpp.

void Wintermute::Console::printError ( const Common::String command,
Error  error 
) [private]

Definition at line 417 of file debugger.cpp.

Error Wintermute::Console::printSource ( int  n = DEFAULT_SOURCE_PADDING  ) 

Definition at line 380 of file debugger.cpp.

void Wintermute::Console::printUsage ( const Common::String command  )  [private]

Definition at line 73 of file debugger.cpp.


Member Data Documentation

Definition at line 151 of file debugger.h.


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


Generated on Sat Sep 19 2020 05:06:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge