JAVADebugger::JDBController Class Reference
A front end implementation to the jdb command line debugger. More...
#include <jdbcontroller.h>
Inheritance diagram for JAVADebugger::JDBController:


Public Slots | |
void | slotStart (const QString &application, const QString &args, const QString &sDbgShell=QString()) |
Start a JDB debugging session. | |
void | slotCoreFile (const QString &coreFile) |
void | slotAttachTo (int pid) |
void | slotRun () |
void | slotRunUntil (const QString &filename, int lineNum) |
void | slotStepInto () |
void | slotStepOver () |
void | slotStepIntoIns () |
void | slotStepOverIns () |
void | slotStepOutOff () |
void | slotBreakInto () |
void | slotBPState (Breakpoint *BP) |
void | slotClearAllBreakpoints () |
void | slotDisassemble (const QString &start, const QString &end) |
void | slotMemoryDump (const QString &start, const QString &amount) |
void | slotRegisters () |
void | slotLibraries () |
void | slotExpandItem (VarItem *parent) |
void | slotExpandUserItem (VarItem *parent, const QCString &userRequest) |
void | slotSelectFrame (int frame) |
void | slotSetLocalViewState (bool onOff) |
Signals | |
void | rawData (const QString &rawData) |
void | showStepInSource (const QString &fileName, int lineNum, const QString &address) |
void | rawJDBBreakpointList (char *buf) |
void | rawJDBBreakpointSet (char *buf, int key) |
void | rawJDBDisassemble (char *buf) |
void | rawJDBMemoryDump (char *buf) |
void | rawJDBRegisters (char *buf) |
void | rawJDBLibraries (char *buf) |
void | ttyStdout (const char *output) |
void | ttyStderr (const char *output) |
void | dbgStatus (const QString &status, int statusFlag) |
void | acceptPendingBPs () |
void | unableToSetBPNow (int BPNo) |
void | debuggerStarted () |
Public Member Functions | |
JDBController (VariableTree *varTree, FramestackWidget *frameStack, QString projectDirectory, QString mainProgram) | |
Does all the communication between jdb and the kdevelop's debugger code. | |
~JDBController () | |
void | reConfig () |
Protected Slots | |
void | slotDbgStdout (KProcess *proc, char *buf, int buflen) |
void | slotDbgStderr (KProcess *proc, char *buf, int buflen) |
void | slotDbgWroteStdin (KProcess *proc) |
void | slotDbgProcessExited (KProcess *proc) |
void | slotStepInSource (const QString &fileName, int lineNum) |
void | slotDbgStatus (const QString &status, int state) |
void | slotDebuggerStarted () |
Protected Member Functions | |
void | queueCmd (DbgCommand *cmd, bool executeNext=false) |
Private Slots | |
void | slotAbortTimedEvent () |
Private Member Functions | |
QString | getFile (QString className) |
This function returns the absolute position of the source file for the class specified by the parameter className. | |
void | varUpdateDone () |
void | parseBacktraceList (char *buf) |
void | parseLocals (char *buf) |
void | analyzeDump (QString data) |
char * | parseLine (char *buf) |
char * | parseInfo (char *buf) |
char * | parseBacktrace (char *buf) |
char * | parseLocalVars (char *buf) |
char * | parseDump (char *buf) |
void | parseLocals () |
void | parseFrameSelected (char *buf) |
char * | parse (char *buf) |
void | pauseApp () |
void | executeCmd () |
void | destroyCmds () |
void | removeInfoRequests () |
void | actOnProgramPause (const QString &msg) |
void | programNoApp (const QString &msg, bool msgBox) |
void | setBreakpoint (const QCString &BPSetCmd, int key) |
void | clearBreakpoint (const QCString &BPClearCmd) |
void | modifyBreakpoint (Breakpoint *BP) |
void | setStateOn (int stateOn) |
void | setStateOff (int stateOff) |
bool | stateIsOn (int state) |
Private Attributes | |
QString | classpath_ |
QString | mainclass_ |
QString | projectDirectory_ |
QString | curLine |
QString | curMethod |
QString | locals |
QDict< JDBVarItem > | localData |
QStringList | nameQueue |
int | s_command |
int | stackLineCount |
int | varLineCount |
bool | parsedThis |
FramestackWidget * | frameStack_ |
VariableTree * | varTree_ |
int | currentFrame_ |
int | state_ |
int | jdbSizeofBuf_ |
int | jdbOutputLen_ |
char * | jdbOutput_ |
QPtrList< DbgCommand > | cmdList_ |
DbgCommand * | currentCmd_ |
STTY * | tty_ |
bool | programHasExited_ |
bool | config_breakOnLoadingLibrary_ |
bool | config_forceBPSet_ |
bool | config_displayStaticMembers_ |
bool | config_dbgTerminal_ |
QString | config_jdbPath_ |
Detailed Description
A front end implementation to the jdb command line debugger.
- Author:
- jbb
Definition at line 59 of file jdbcontroller.h.
Constructor & Destructor Documentation
|
Does all the communication between jdb and the kdevelop's debugger code. Significatant classes being used here are VarTree - where the variable data will end up FrameStack - tracks the program frames and allows the user to switch between and therefore view the calling funtions and their data Breakpoint - Where and what to do with breakpoints. STTY - the tty that the _application_ will run on. Significant variables state_ - be very careful setting this. The controller is totally dependent on this reflecting the correct state. For instance, if the app is busy but we don't think so, then we lose control of the app. The only way to get out of these situations is to delete (stop) the controller. currentFrame_
Definition at line 94 of file jdbcontroller.cpp. References cmdList_, config_dbgTerminal_, config_displayStaticMembers_, config_forceBPSet_, config_jdbPath_, dbgStatus(), kdDebug(), KConfigBase::readBoolEntry(), KConfigBase::readPathEntry(), KConfigBase::setGroup(), showStepInSource(), slotDbgStatus(), and slotStepInSource(). |
|
Definition at line 145 of file jdbcontroller.cpp. References DBG_DISPLAY, dbgStatus(), destroyCmds(), JDB_DISPLAY, KProcess::kill(), pauseApp(), setStateOn(), slotAbortTimedEvent(), state_, stateIsOn(), tty_, and KProcess::writeStdin(). |
Member Function Documentation
|
|
|
Definition at line 331 of file jdbcontroller.cpp. References JAVADebugger::FramestackWidget::clearList(), currentFrame_, DBG_DISPLAY, dbgStatus(), executeCmd(), frameStack_, INFOCMD, kdDebug(), localData, nameQueue, NOTINFOCMD, NOTRUNCMD, parsedThis, queueCmd(), JAVADebugger::s_parsingOutput, JAVADebugger::VariableTree::setActiveFlag(), setStateOff(), setStateOn(), stackLineCount, state_, stateIsOn(), varLineCount, and varTree_. Referenced by parseLine(). |
|
oops, we should already have added that object
Definition at line 725 of file jdbcontroller.cpp. References kdDebug(), localData, JAVADebugger::JDBVarItem::name, nameQueue, JAVADebugger::JDBVarItem::siblings, and JAVADebugger::JDBVarItem::value. Referenced by parseDump(), and parseLocalVars(). |
|
Definition at line 1061 of file jdbcontroller.cpp. |
|
Referenced by actOnProgramPause(), executeCmd(), JDBController(), slotDbgProcessExited(), slotStart(), and ~JDBController(). |
|
|
|
Definition at line 294 of file jdbcontroller.cpp. References cmdList_, and currentCmd_. Referenced by slotDbgProcessExited(), and ~JDBController(). |
|
Definition at line 243 of file jdbcontroller.cpp. References JAVADebugger::DbgCommand::cmdLength(), cmdList_, JAVADebugger::DbgCommand::cmdToSend(), currentCmd_, DBG_DISPLAY, dbgStatus(), JAVADebugger::DbgCommand::expectReply(), JAVADebugger::DbgCommand::isARunCmd(), JDB_DISPLAY, JAVADebugger::DbgCommand::moreToSend(), setStateOff(), setStateOn(), state_, stateIsOn(), and KProcess::writeStdin(). Referenced by actOnProgramPause(), queueCmd(), slotDbgStdout(), and slotDbgWroteStdin(). |
|
This function returns the absolute position of the source file for the class specified by the parameter className.
Definition at line 1381 of file jdbcontroller.cpp. References projectDirectory_. Referenced by parseLine(). |
|
Definition at line 1068 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 965 of file jdbcontroller.cpp. References curLine, debuggerStarted(), kdDebug(), parseInfo(), parseLine(), parseLocals(), JAVADebugger::s_appStarting, setStateOff(), and stateIsOn(). Referenced by slotDbgStdout(). |
|
Definition at line 500 of file jdbcontroller.cpp. References JAVADebugger::FramestackWidget::addItem(), currentCmd_, DBG_DISPLAY, frameStack_, kdDebug(), JAVADebugger::s_parsingOutput, setStateOff(), stackLineCount, JAVADebugger::DbgCommand::typeMatch(), and JAVADebugger::FramestackWidget::updateDone(). Referenced by parseInfo(). |
|
Definition at line 936 of file jdbcontroller.cpp. |
|
Definition at line 650 of file jdbcontroller.cpp. References analyzeDump(), currentCmd_, DBG_DISPLAY, kdDebug(), and JAVADebugger::DbgCommand::typeMatch(). Referenced by parseInfo(). |
|
Definition at line 957 of file jdbcontroller.cpp. |
|
Definition at line 479 of file jdbcontroller.cpp. References currentCmd_, parseBacktrace(), parseDump(), parseLocalVars(), JAVADebugger::s_parsingLocals, setStateOn(), and JAVADebugger::DbgCommand::typeMatch(). Referenced by parse(). |
|
Definition at line 396 of file jdbcontroller.cpp. References actOnProgramPause(), classpath_, curLine, curMethod, currentCmd_, DBG_DISPLAY, getFile(), JAVADebugger::DbgCommand::isARunCmd(), kdDebug(), mainclass_, JAVADebugger::s_appStarting, setStateOff(), showStepInSource(), stateIsOn(), JAVADebugger::STEP, and JAVADebugger::DbgCommand::typeMatch(). Referenced by parse(). |
|
Definition at line 910 of file jdbcontroller.cpp. References DBG_DISPLAY, INFOCMD, nameQueue, NOTRUNCMD, parsedThis, queueCmd(), JAVADebugger::s_parsingLocals, setStateOff(), stateIsOn(), and varUpdateDone(). Referenced by parse(). |
|
|
|
Definition at line 550 of file jdbcontroller.cpp. References analyzeDump(), currentCmd_, DBG_DISPLAY, kdDebug(), nameQueue, JAVADebugger::DbgCommand::typeMatch(), varLineCount, and varUpdateDone(). Referenced by parseInfo(). |
|
Definition at line 323 of file jdbcontroller.cpp. Referenced by reConfig(), and ~JDBController(). |
|
Definition at line 373 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 219 of file jdbcontroller.cpp. References cmdList_, executeCmd(), JAVADebugger::DbgCommand::isARunCmd(), and removeInfoRequests(). Referenced by actOnProgramPause(), parseLocals(), reConfig(), slotDebuggerStarted(), slotStepInto(), and slotStepOver(). |
|
Reimplemented from JAVADebugger::DbgController. |
|
Reimplemented from JAVADebugger::DbgController. |
|
Reimplemented from JAVADebugger::DbgController. |
|
Reimplemented from JAVADebugger::DbgController. |
|
Reimplemented from JAVADebugger::DbgController. |
|
Reimplemented from JAVADebugger::DbgController. |
|
Reimplemented from JAVADebugger::DbgController. |
|
Implements JAVADebugger::DbgController. Definition at line 186 of file jdbcontroller.cpp. References config_displayStaticMembers_, NOTINFOCMD, pauseApp(), queueCmd(), KConfigBase::readBoolEntry(), RUNCMD, KConfigBase::setGroup(), setStateOn(), and stateIsOn(). |
|
Definition at line 307 of file jdbcontroller.cpp. References cmdList_, JAVADebugger::DbgCommand::isAnInfoCmd(), and JAVADebugger::DbgCommand::isARunCmd(). Referenced by queueCmd(). |
|
Definition at line 1054 of file jdbcontroller.cpp. |
|
Definition at line 99 of file jdbcontroller.h. Referenced by actOnProgramPause(), executeCmd(), parse(), parseBacktrace(), parseLine(), parseLocals(), slotAbortTimedEvent(), slotDbgWroteStdin(), and varUpdateDone(). |
|
Definition at line 98 of file jdbcontroller.h. Referenced by actOnProgramPause(), executeCmd(), parseInfo(), reConfig(), slotDebuggerStarted(), slotStart(), and ~JDBController(). |
|
Referenced by JDBController(), and parseLine(). |
|
Definition at line 1432 of file jdbcontroller.cpp. References DBG_DISPLAY, and setStateOff(). Referenced by ~JDBController(). |
|
Implements JAVADebugger::DbgController. Definition at line 1154 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1241 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1234 of file jdbcontroller.cpp. |
|
Definition at line 1247 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1149 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1363 of file jdbcontroller.cpp. References dbgStatus(), destroyCmds(), JDB_DISPLAY, and state_. Referenced by slotStart(). |
|
Definition at line 1448 of file jdbcontroller.cpp. References JAVADebugger::data, DBG_DISPLAY, and s. Referenced by JDBController(). |
|
Reimplemented from JAVADebugger::DbgController. Definition at line 1343 of file jdbcontroller.cpp. References DBG_DISPLAY, and kdDebug(). Referenced by slotStart(). |
|
Implements JAVADebugger::DbgController. Definition at line 1310 of file jdbcontroller.cpp. References executeCmd(), jdbOutput_, jdbOutputLen_, jdbSizeofBuf_, kdDebug(), and parse(). Referenced by slotStart(). |
|
Implements JAVADebugger::DbgController. Definition at line 1354 of file jdbcontroller.cpp. References executeCmd(), kdDebug(), and setStateOff(). Referenced by slotStart(). |
|
Definition at line 1160 of file jdbcontroller.cpp. References kdDebug(), mainclass_, NOTINFOCMD, NOTRUNCMD, queueCmd(), RUNCMD, JAVADebugger::s_appStarting, setStateOn(), and stateIsOn(). Referenced by slotRun(). |
|
Implements JAVADebugger::DbgController. Definition at line 1253 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1285 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1294 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1271 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1259 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1265 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1178 of file jdbcontroller.cpp. References debuggerStarted(), slotDebuggerStarted(), and stateIsOn(). |
|
Implements JAVADebugger::DbgController. Definition at line 1192 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1277 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1303 of file jdbcontroller.cpp. |
|
Start a JDB debugging session.
Implements JAVADebugger::DbgController. Definition at line 1082 of file jdbcontroller.cpp. References classpath_, config_dbgTerminal_, config_jdbPath_, dbgStatus(), KMessageBox::error(), JDB_DISPLAY, mainclass_, setStateOn(), slotDbgProcessExited(), slotDbgStderr(), slotDbgStdout(), slotDbgWroteStdin(), KProcess::start(), state_, tty_, ttyStderr(), and ttyStdout(). |
|
Definition at line 1440 of file jdbcontroller.cpp. References JAVADebugger::data, and DBG_DISPLAY. Referenced by JDBController(). |
|
Implements JAVADebugger::DbgController. Definition at line 1198 of file jdbcontroller.cpp. References kdDebug(), NOTINFOCMD, queueCmd(), RUNCMD, JAVADebugger::s_parsingOutput, and stateIsOn(). |
|
Implements JAVADebugger::DbgController. Definition at line 1207 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1227 of file jdbcontroller.cpp. |
|
Implements JAVADebugger::DbgController. Definition at line 1213 of file jdbcontroller.cpp. References kdDebug(), NOTINFOCMD, queueCmd(), RUNCMD, JAVADebugger::s_appStarting, JAVADebugger::s_parsingOutput, and stateIsOn(). |
|
Implements JAVADebugger::DbgController. Definition at line 1221 of file jdbcontroller.cpp. |
|
Definition at line 100 of file jdbcontroller.h. Referenced by actOnProgramPause(), executeCmd(), parse(), parseLine(), parseLocals(), reConfig(), slotDebuggerStarted(), slotRun(), slotStepInto(), slotStepOver(), and ~JDBController(). |
|
Reimplemented from JAVADebugger::DbgController. Referenced by slotStart(). |
|
Reimplemented from JAVADebugger::DbgController. Referenced by slotStart(). |
|
|
|
Definition at line 1388 of file jdbcontroller.cpp. References currentFrame_, JAVADebugger::VariableTree::findFrame(), frameStack_, JAVADebugger::FramestackWidget::getFrameName(), kdDebug(), localData, locals, JAVADebugger::s_parsingOutput, JAVADebugger::FrameRoot::setFrameName(), JAVADebugger::FrameRoot::setLocals(), setStateOff(), JAVADebugger::VariableTree::trim(), and varTree_. Referenced by parseLocals(), and parseLocalVars(). |
Member Data Documentation
|
Definition at line 102 of file jdbcontroller.h. Referenced by parseLine(), and slotStart(). |
|
Definition at line 177 of file jdbcontroller.h. Referenced by destroyCmds(), executeCmd(), JDBController(), queueCmd(), and removeInfoRequests(). |
|
Definition at line 184 of file jdbcontroller.h. |
|
Definition at line 187 of file jdbcontroller.h. Referenced by JDBController(), and slotStart(). |
|
Definition at line 186 of file jdbcontroller.h. Referenced by JDBController(), and reConfig(). |
|
Definition at line 185 of file jdbcontroller.h. Referenced by JDBController(). |
|
Definition at line 188 of file jdbcontroller.h. Referenced by JDBController(), and slotStart(). |
|
Definition at line 105 of file jdbcontroller.h. Referenced by parse(), and parseLine(). |
|
Definition at line 106 of file jdbcontroller.h. Referenced by parseLine(). |
|
Definition at line 178 of file jdbcontroller.h. Referenced by destroyCmds(), executeCmd(), parseBacktrace(), parseDump(), parseInfo(), parseLine(), and parseLocalVars(). |
|
Definition at line 170 of file jdbcontroller.h. Referenced by actOnProgramPause(), and varUpdateDone(). |
|
Definition at line 168 of file jdbcontroller.h. Referenced by actOnProgramPause(), parseBacktrace(), and varUpdateDone(). |
|
Definition at line 175 of file jdbcontroller.h. Referenced by slotDbgStdout(). |
|
Definition at line 174 of file jdbcontroller.h. Referenced by slotDbgStdout(). |
|
Definition at line 173 of file jdbcontroller.h. Referenced by slotDbgStdout(). |
|
Definition at line 107 of file jdbcontroller.h. Referenced by actOnProgramPause(), analyzeDump(), and varUpdateDone(). |
|
Definition at line 106 of file jdbcontroller.h. Referenced by varUpdateDone(). |
|
Definition at line 103 of file jdbcontroller.h. Referenced by parseLine(), slotDebuggerStarted(), and slotStart(). |
|
Definition at line 108 of file jdbcontroller.h. Referenced by actOnProgramPause(), analyzeDump(), parseLocals(), and parseLocalVars(). |
|
Definition at line 111 of file jdbcontroller.h. Referenced by actOnProgramPause(), and parseLocals(). |
|
Definition at line 181 of file jdbcontroller.h. |
|
Definition at line 104 of file jdbcontroller.h. Referenced by getFile(). |
|
Definition at line 109 of file jdbcontroller.h. |
|
Definition at line 110 of file jdbcontroller.h. Referenced by actOnProgramPause(), and parseBacktrace(). |
|
Definition at line 172 of file jdbcontroller.h. Referenced by actOnProgramPause(), executeCmd(), slotDbgProcessExited(), slotStart(), and ~JDBController(). |
|
Definition at line 180 of file jdbcontroller.h. Referenced by slotStart(), and ~JDBController(). |
|
Definition at line 110 of file jdbcontroller.h. Referenced by actOnProgramPause(), and parseLocalVars(). |
|
Definition at line 169 of file jdbcontroller.h. Referenced by actOnProgramPause(), and varUpdateDone(). |
The documentation for this class was generated from the following files:
- languages/java/debugger/jdbcontroller.h
- languages/java/debugger/jdbcontroller.cpp