#include <debugger-shell.H>
Inherited by DEBUGGER_SHELL.
Public Member Functions | |
| virtual BOOL | Enable (const DEBUGGER_SHELL_ARGS &args)=0 |
| virtual unsigned | GetHelpCount ()=0 |
| virtual BOOL | GetHelpString (unsigned index, std::string *cmd, std::string *description)=0 |
| virtual REG | GetSkipOneRegister ()=0 |
| virtual | ~IDEBUGGER_SHELL () |
Typical usage in the tool is as follows:
include "debugger-shell.H"
int main(int argc, char **argv) { if (PIN_Init(argc,argv)) return 1;
IDEBUGGER_SHELL *shell = CreateDebuggerShell(); DEBUGGER_SHELL_ARGS args; if (!shell->Enable(args)) return 1;
The tool must also compile and link with "debugger-shell.cpp".
|
|
Destroys the DEBUGGER_SHELL object.
|
|
|
This method must be called once, typically from the tool's main() function. It enables the Pin instrumentation which implements the debugger extensions.
|
|
|
Tools that set DEBUGGER_SHELL_ARGS._enableHelp to FALSE, may want to use this method and GetHelpString() to print their own help message.
|
|
||||||||||||||||
|
Get the help message describing a single debugger command.
|
|
|
Tools that override the default instrumentation with IDEBUGGER_SHELL_INSTRUMENTOR may need a virtual register to hold the "skip one" flag. This method provides the register number to use for this.
|
1.4.6