LLVM API Documentation
#include <Debugger.h>
Collaboration diagram for llvm::Debugger:
Public Member Functions | |
Debugger () | |
~Debugger () | |
void | initializeEnvironment (const char *const *envp) |
void | setWorkingDirectory (const std::string &Dir) |
template<typename It> | |
void | setProgramArguments (It I, It E) |
unsigned | getNumProgramArguments () const |
const std::string & | getProgramArgument (unsigned i) const |
bool | isProgramLoaded () const |
Module * | getProgram () const |
std::string | getProgramPath () const |
void | loadProgram (const std::string &Path) |
void | unloadProgram () |
bool | isProgramRunning () const |
const InferiorProcess & | getRunningProcess () const |
void | createProgram () |
void | killProgram () |
void | stepProgram () |
void | nextProgram () |
void | finishProgram (void *Frame) |
void | contProgram () |
Definition at line 28 of file Debugger.h.
|
Debugger constructor - Initialize the debugger to its initial, empty, state. Definition at line 24 of file Debugger.cpp. |
|
Definition at line 27 of file Debugger.cpp. References killProgram(), and unloadProgram(). |
|
contProgram - Implement the 'cont' command, continuing execution until the next breakpoint is encountered. Definition at line 213 of file Debugger.cpp. References llvm::InferiorProcessDead::getExitCode(), isProgramRunning(), llvm::itostr(), and killProgram(). |
|
createProgram - Create an instance of the currently loaded program, killing off any existing one. This creates the program and stops it at the first possible moment. If there is no program loaded or if there is a problem starting the program, this method throws an exception. Definition at line 100 of file Debugger.cpp. References llvm::InferiorProcess::create(), getProgramPath(), isProgramLoaded(), and killProgram(). |
|
finishProgram - Implement the 'finish' command, continuing execution until the specified frame ID returns. Definition at line 197 of file Debugger.cpp. References llvm::InferiorProcessDead::getExitCode(), isProgramRunning(), llvm::itostr(), and killProgram(). |
|
Definition at line 70 of file Debugger.h. |
|
getProgram - Return the LLVM module corresponding to the program. Definition at line 86 of file Debugger.h. |
|
Definition at line 71 of file Debugger.h. |
|
getProgramPath - Get the path of the currently loaded program, or an empty string if none is loaded. Definition at line 41 of file Debugger.cpp. Referenced by createProgram(). |
|
getRunningProcess - If there is no program running, throw an exception. Otherwise return the running process so that it can be inspected by the debugger. Definition at line 118 of file Debugger.h. |
|
initializeEnvironment - Specify the environment the program should run with. This is used to initialize the environment of the program to the environment of the debugger. Definition at line 56 of file Debugger.h. |
|
isProgramLoaded - Return true if there is a program currently loaded. Definition at line 82 of file Debugger.h. Referenced by createProgram(), and unloadProgram(). |
|
isProgramRunning - Return true if a program is loaded and has a currently active instance. Definition at line 113 of file Debugger.h. Referenced by contProgram(), finishProgram(), nextProgram(), and stepProgram(). |
|
killProgram - If the program is currently executing, kill off the process and free up any state related to the currently running program. If there is no program currently running, this just silently succeeds. If something horrible happens when killing the program, an exception gets thrown. Definition at line 118 of file Debugger.cpp. Referenced by contProgram(), createProgram(), finishProgram(), nextProgram(), stepProgram(), unloadProgram(), and ~Debugger(). |
|
loadProgram - If a program is currently loaded, unload it. Then search the PATH for the specified program, loading it when found. If the specified program cannot be found, an exception is thrown to indicate the error. Definition at line 62 of file Debugger.cpp. References getMaterializedModuleProvider(), and llvm::getToken(). |
|
nextProgram - Implement the 'next' command, continuing execution until the next possible stop point that is in the current function. Definition at line 147 of file Debugger.cpp. References llvm::InferiorProcessDead::getExitCode(), isProgramRunning(), llvm::itostr(), and killProgram(). |
|
Definition at line 67 of file Debugger.h. |
|
setWorkingDirectory - Specify the working directory for the program to be started from. Definition at line 62 of file Debugger.h. |
|
stepProgram - Implement the 'step' command, continuing execution until the next possible stop point. Definition at line 131 of file Debugger.cpp. References llvm::InferiorProcessDead::getExitCode(), isProgramRunning(), llvm::itostr(), and killProgram(). |
|
unloadProgram - If a program is running, kill it, then unload all traces of the current program. If no program is loaded, this method silently succeeds. Definition at line 88 of file Debugger.cpp. References isProgramLoaded(), and killProgram(). Referenced by ~Debugger(). |