LLVM API Documentation
#include <InferiorProcess.h>
Collaboration diagram for llvm::InferiorProcess:
Public Member Functions | |
virtual | ~InferiorProcess () |
virtual std::string | getStatus () const |
virtual void * | getPreviousFrame (void *Frame) const =0 |
virtual const GlobalVariable * | getSubprogramDesc (void *Frame) const =0 |
virtual void | getFrameLocation (void *Frame, unsigned &LineNo, unsigned &ColNo, const GlobalVariable *&SourceDesc) const=0 |
virtual unsigned | addBreakpoint (unsigned LineNo, unsigned ColNo, const GlobalVariable *SourceDesc)=0 |
virtual void | removeBreakpoint (unsigned ID)=0 |
virtual void | stepProgram ()=0 |
virtual void | finishProgram (void *Frame)=0 |
virtual void | contProgram ()=0 |
Static Public Member Functions | |
static InferiorProcess * | create (Module *M, const std::vector< std::string > &Arguments, const char *const *envp) |
Protected Member Functions | |
InferiorProcess (Module *m) |
Definition at line 51 of file InferiorProcess.h.
llvm::InferiorProcess::InferiorProcess | ( | Module * | m | ) | [inline, protected] |
Definition at line 54 of file InferiorProcess.h.
virtual llvm::InferiorProcess::~InferiorProcess | ( | ) | [inline, virtual] |
Definition at line 65 of file InferiorProcess.h.
InferiorProcess * InferiorProcess::create | ( | Module * | M, | |
const std::vector< std::string > & | Arguments, | |||
const char *const * | envp | |||
) | [static] |
create - Create an inferior process of the specified module, and stop it at the first opportunity. If there is a problem starting the program (for example, it has no main), throw an exception.
Definition at line 117 of file Debugger.cpp.
Referenced by llvm::Debugger::createProgram().
virtual std::string llvm::InferiorProcess::getStatus | ( | ) | const [inline, virtual] |
getStatus - Return a status message that is specific to the current type of inferior process that is created. This can return things like the PID of the inferior or other potentially interesting things.
Definition at line 75 of file InferiorProcess.h.
virtual void* llvm::InferiorProcess::getPreviousFrame | ( | void * | Frame | ) | const [pure virtual] |
getPreviousFrame - Given the descriptor for the current stack frame, return the descriptor for the caller frame. This returns null when it runs out of frames. If Frame is null, the initial frame should be returned.
Referenced by llvm::StackFrame::StackFrame().
virtual const GlobalVariable* llvm::InferiorProcess::getSubprogramDesc | ( | void * | Frame | ) | const [pure virtual] |
getSubprogramDesc - Return the subprogram descriptor for the current stack frame.
Referenced by llvm::StackFrame::getFunctionDesc().
virtual void llvm::InferiorProcess::getFrameLocation | ( | void * | Frame, | |
unsigned & | LineNo, | |||
unsigned & | ColNo, | |||
const GlobalVariable *& | SourceDesc | |||
) | const [pure virtual] |
getFrameLocation - This method returns the source location where each stack frame is stopped.
Referenced by llvm::StackFrame::getSourceLocation().
virtual unsigned llvm::InferiorProcess::addBreakpoint | ( | unsigned | LineNo, | |
unsigned | ColNo, | |||
const GlobalVariable * | SourceDesc | |||
) | [pure virtual] |
addBreakpoint - This method adds a breakpoint at the specified line, column, and source file, and returns a unique identifier for it.
It is up to the debugger to determine whether or not there is actually a stop-point that corresponds with the specified location.
virtual void llvm::InferiorProcess::removeBreakpoint | ( | unsigned | ID | ) | [pure virtual] |
removeBreakpoint - This deletes the breakpoint with the specified ID number.
virtual void llvm::InferiorProcess::stepProgram | ( | ) | [pure virtual] |
stepProgram - Implement the 'step' command, continuing execution until the next possible stop point.
virtual void llvm::InferiorProcess::finishProgram | ( | void * | Frame | ) | [pure virtual] |
finishProgram - Implement the 'finish' command, continuing execution until the current function returns.
virtual void llvm::InferiorProcess::contProgram | ( | ) | [pure virtual] |
contProgram - Implement the 'cont' command, continuing execution until a breakpoint is encountered.