KDevelop API Documentation

GDBDebugger::GDBController Class Reference

A front end implementation to the gdb command line debugger. More...

#include <gdbcontroller.h>

Inheritance diagram for GDBDebugger::GDBController:

GDBDebugger::DbgController QObject List of all members.

Public Slots

void configure ()
void slotStart (const QString &shell, const DomUtil::PairList &run_envvars, const QString &run_directory, const QString &application, const QString &run_arguments)
 Start the debugger.

void slotCoreFile (const QString &coreFile)
void slotAttachTo (int pid)
void slotStopDebugger ()
void slotRun ()
void slotRunUntil (const QString &filename, int lineNum)
void slotStepInto ()
void slotStepOver ()
void slotStepIntoIns ()
void slotStepOverIns ()
void slotStepOutOff ()
void slotBreakInto ()
void slotBPState (const Breakpoint &)
void slotClearAllBreakpoints ()
void slotDisassemble (const QString &start, const QString &end)
void slotMemoryDump (const QString &start, const QString &amount)
void slotRegisters ()
void slotLibraries ()
void slotExpandItem (TrimmableItem *parent)
void slotExpandUserItem (VarItem *parent, const QCString &userRequest)
void slotSelectFrame (int frameNo, int threadNo, bool needFrames)
void slotSetLocalViewState (bool onOff)
void slotVarItemConstructed (VarItem *item)
void slotUserGDBCmd (const QString &)

Signals

void acceptPendingBPs ()
void unableToSetBPNow (int BPNo)

Public Member Functions

 GDBController (VariableTree *varTree, FramestackWidget *frameStack, QDomDocument &projectDom)
 ~GDBController ()

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)

Protected Member Functions

void queueCmd (DbgCommand *cmd, bool executeNext=false)

Private Member Functions

void parseProgramLocation (char *buf)
void parseBacktraceList (char *buf)
void parseThreadList (char *buf)
void parseBreakpointSet (char *buf)
void parseLocals (char type, char *buf)
void parseRequestedData (char *buf)
void parseWhatis (char *buf)
void parseLine (char *buf)
void parseFrameSelected (char *buf)
char * parse (char *buf)
char * parseOther (char *buf)
char * parseCmdBlock (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 (const Breakpoint &)
void setStateOn (int stateOn)
void setStateOff (int stateOff)
bool stateIsOn (int state)

Private Attributes

FramestackWidgetframeStack_
VariableTreevarTree_
int currentFrame_
int viewedThread_
int gdbSizeofBuf_
int gdbOutputLen_
char * gdbOutput_
QCString holdingZone_
QPtrList< DbgCommandcmdList_
DbgCommandcurrentCmd_
STTYtty_
QString badCore_
QString application_
int state_
bool programHasExited_
bool backtraceDueToProgramStop_
QDomDocumentdom
bool config_breakOnLoadingLibrary_
bool config_forceBPSet_
bool config_displayStaticMembers_
bool config_asmDemangle_
bool config_dbgTerminal_
QString config_gdbPath_
QString config_dbgShell_
QCString config_configGdbScript_
QCString config_runShellScript_
QCString config_runGdbScript_

Detailed Description

A front end implementation to the gdb command line debugger.

Author:
jbb

Definition at line 46 of file gdbcontroller.h.


Constructor & Destructor Documentation

GDBDebugger::GDBController::GDBController VariableTree varTree,
FramestackWidget frameStack,
QDomDocument projectDom
 

Definition at line 127 of file gdbcontroller.cpp.

References cmdList_, configure(), GDBDebugger::debug_controllerExists, gdbOutput_, gdbSizeofBuf_, GDBDebugger::s_appNotStarted, GDBDebugger::s_dbgNotStarted, and GDBDebugger::s_silent.

GDBDebugger::GDBController::~GDBController  ) 
 

Definition at line 166 of file gdbcontroller.cpp.

References GDBDebugger::debug_controllerExists, and gdbOutput_.


Member Function Documentation

void GDBDebugger::GDBController::acceptPendingBPs  )  [signal]
 

Referenced by actOnProgramPause(), parseLine(), and slotStart().

void GDBDebugger::GDBController::actOnProgramPause const QString msg  )  [private]
 

Definition at line 378 of file gdbcontroller.cpp.

References acceptPendingBPs(), GDBDebugger::ARGS, GDBDebugger::BACKTRACE, backtraceDueToProgramStop_, currentFrame_, endl(), GDBDebugger::VariableTree::findWatch(), INFOCMD, GDBDebugger::INFOTHREAD, kdDebug(), GDBDebugger::LOCALS, NOTRUNCMD, queueCmd(), GDBDebugger::WatchRoot::requestWatchVars(), GDBDebugger::s_appBusy, GDBDebugger::s_silent, GDBDebugger::s_viewLocals, GDBDebugger::s_viewThreads, GDBDebugger::TrimmableItem::setActive(), GDBDebugger::VariableTree::setActiveFlag(), setStateOff(), state_, stateIsOn(), varTree_, and viewedThread_.

Referenced by parseLine(), and parseProgramLocation().

void GDBDebugger::GDBController::clearBreakpoint const QCString BPClearCmd  )  [private]
 

Definition at line 1140 of file gdbcontroller.cpp.

References GDBDebugger::BPLIST, NOTINFOCMD, NOTRUNCMD, and queueCmd().

Referenced by slotBPState().

void GDBDebugger::GDBController::configure  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 174 of file gdbcontroller.cpp.

References config_asmDemangle_, config_breakOnLoadingLibrary_, config_configGdbScript_, config_dbgTerminal_, config_displayStaticMembers_, config_forceBPSet_, config_gdbPath_, config_runGdbScript_, config_runShellScript_, dom, NOTINFOCMD, NOTRUNCMD, pauseApp(), queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_silent, setStateOn(), and stateIsOn().

Referenced by GDBController().

void GDBDebugger::GDBController::destroyCmds  )  [private]
 

Definition at line 328 of file gdbcontroller.cpp.

References cmdList_, and currentCmd_.

Referenced by programNoApp(), slotDbgProcessExited(), and slotStopDebugger().

void GDBDebugger::GDBController::executeCmd  )  [private]
 

Definition at line 276 of file gdbcontroller.cpp.

References GDBDebugger::DbgCommand::cmdLength(), cmdList_, GDBDebugger::DbgCommand::cmdToSend(), currentCmd_, endl(), GDBDebugger::DbgCommand::expectReply(), GDBDebugger::DbgCommand::isARunCmd(), kdDebug(), GDBDebugger::DbgCommand::moreToSend(), GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_programExited, GDBDebugger::s_shuttingDown, GDBDebugger::s_silent, GDBDebugger::s_waitForWrite, setStateOff(), setStateOn(), state_, stateIsOn(), and KProcess::writeStdin().

Referenced by queueCmd(), slotDbgStdout(), and slotDbgWroteStdin().

void GDBDebugger::GDBController::modifyBreakpoint const Breakpoint  )  [private]
 

Definition at line 1151 of file gdbcontroller.cpp.

References GDBDebugger::BPLIST, GDBDebugger::Breakpoint::changedCondition(), GDBDebugger::Breakpoint::changedEnable(), GDBDebugger::Breakpoint::changedIgnoreCount(), GDBDebugger::Breakpoint::conditional(), GDBDebugger::Breakpoint::dbgId(), GDBDebugger::Breakpoint::ignoreCount(), GDBDebugger::Breakpoint::isActionModify(), GDBDebugger::Breakpoint::isEnabled(), NOTINFOCMD, NOTRUNCMD, and queueCmd().

Referenced by slotBPState().

char * GDBDebugger::GDBController::parse char *  buf  )  [private, virtual]
 

Implements GDBDebugger::DbgController.

Definition at line 1110 of file gdbcontroller.cpp.

References GDBDebugger::BLOCK_START, parseCmdBlock(), and parseOther().

Referenced by slotDbgStdout().

void GDBDebugger::GDBController::parseBacktraceList char *  buf  )  [private]
 

Definition at line 796 of file gdbcontroller.cpp.

References backtraceDueToProgramStop_, currentFrame_, GDBDebugger::VariableTree::findFrame(), frameStack_, GDBDebugger::FramestackWidget::getFrameName(), GDBDebugger::FramestackWidget::parseGDBBacktraceList(), GDBDebugger::VarFrameRoot::setFrameName(), GDBDebugger::VariableTree::trimExcessFrames(), varTree_, and viewedThread_.

Referenced by parseCmdBlock().

void GDBDebugger::GDBController::parseBreakpointSet char *  buf  )  [private]
 

Definition at line 823 of file gdbcontroller.cpp.

References currentCmd_, and GDBDebugger::GDBSetBreakpointCommand::getKey().

Referenced by parseCmdBlock().

char * GDBDebugger::GDBController::parseCmdBlock char *  buf  )  [private]
 

Definition at line 955 of file gdbcontroller.cpp.

References GDBDebugger::ARGS, GDBDebugger::BACKTRACE, GDBDebugger::BLOCK_START, GDBDebugger::BPLIST, currentCmd_, GDBDebugger::DATAREQUEST, GDBDebugger::DISASSEMBLE, GDBDebugger::FRAME, GDBDebugger::IDLE, GDBDebugger::INFOTHREAD, GDBDebugger::LIBRARIES, GDBDebugger::LOCALS, GDBDebugger::MEMDUMP, parseBacktraceList(), parseBreakpointSet(), parseFrameSelected(), parseLocals(), parseProgramLocation(), parseRequestedData(), parseThreadList(), parseWhatis(), GDBDebugger::REGISTERS, GDBDebugger::SET_BREAKPT, GDBDebugger::SRC_POSITION, GDBDebugger::DbgCommand::typeMatch(), and GDBDebugger::WHATIS.

Referenced by parse().

void GDBDebugger::GDBController::parseFrameSelected char *  buf  )  [private]
 

Definition at line 888 of file gdbcontroller.cpp.

References GDBDebugger::BLOCK_START, parseProgramLocation(), GDBDebugger::s_silent, GDBDebugger::SRC_POSITION, state_, and stateIsOn().

Referenced by parseCmdBlock().

void GDBDebugger::GDBController::parseLine char *  buf  )  [private]
 

Fixme:
  • a nasty switch

- a nasty switch

- a nasty switch

- a nasty switch

Todo:
programHasExited_ isn't always set correctly, but it (almost) doesn't matter.

- Only do this at start up

Definition at line 448 of file gdbcontroller.cpp.

References acceptPendingBPs(), actOnProgramPause(), badCore_, GDBDebugger::BLOCK_START, GDBDebugger::BPLIST, currentCmd_, endl(), INFOCMD, GDBDebugger::INFOTHREAD, kdDebug(), NOTINFOCMD, NOTRUNCMD, parseProgramLocation(), programHasExited_, programNoApp(), queueCmd(), GDBDebugger::DbgCommand::rawDbgCommand(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_core, GDBDebugger::s_silent, GDBDebugger::s_viewThreads, setStateOff(), setStateOn(), stateIsOn(), and unableToSetBPNow().

Referenced by parseOther().

void GDBDebugger::GDBController::parseLocals char  type,
char *  buf
[private]
 

Definition at line 912 of file gdbcontroller.cpp.

References GDBDebugger::ARGS, currentFrame_, GDBDebugger::VariableTree::findFrame(), frameStack_, GDBDebugger::FramestackWidget::getFrameName(), GDBDebugger::VarFrameRoot::setFrameName(), GDBDebugger::VarFrameRoot::setLocals(), GDBDebugger::VarFrameRoot::setParams(), GDBDebugger::TrimmableItem::trim(), GDBDebugger::VariableTree::trim(), varTree_, and viewedThread_.

Referenced by parseCmdBlock().

char * GDBDebugger::GDBController::parseOther char *  buf  )  [private]
 

Definition at line 1060 of file gdbcontroller.cpp.

References GDBDebugger::BLOCK_START, and parseLine().

Referenced by parse().

void GDBDebugger::GDBController::parseProgramLocation char *  buf  )  [private]
 

Definition at line 752 of file gdbcontroller.cpp.

References actOnProgramPause(), endl(), kdDebug(), GDBDebugger::s_appBusy, GDBDebugger::s_silent, setStateOff(), state_, and stateIsOn().

Referenced by parseCmdBlock(), parseFrameSelected(), and parseLine().

void GDBDebugger::GDBController::parseRequestedData char *  buf  )  [private]
 

Definition at line 838 of file gdbcontroller.cpp.

References currentCmd_, GDBDebugger::GDBItemCommand::getItem(), GDBDebugger::TrimmableItem::trim(), GDBDebugger::VarItem::updateValue(), and varTree_.

Referenced by parseCmdBlock().

void GDBDebugger::GDBController::parseThreadList char *  buf  )  [private]
 

Definition at line 812 of file gdbcontroller.cpp.

References frameStack_, GDBDebugger::FramestackWidget::parseGDBThreadList(), GDBDebugger::VariableTree::setCurrentThread(), varTree_, GDBDebugger::FramestackWidget::viewedThread(), and viewedThread_.

Referenced by parseCmdBlock().

void GDBDebugger::GDBController::parseWhatis char *  buf  )  [private]
 

Definition at line 855 of file gdbcontroller.cpp.

References currentCmd_, GDBDebugger::GDBItemCommand::getItem(), GDBDebugger::VarItem::updateType(), and varTree_.

Referenced by parseCmdBlock().

void GDBDebugger::GDBController::pauseApp  )  [private]
 

Definition at line 359 of file gdbcontroller.cpp.

References cmdList_, GDBDebugger::DbgCommand::isAnInfoCmd(), GDBDebugger::DbgCommand::isARunCmd(), KProcess::kill(), GDBDebugger::s_appBusy, GDBDebugger::s_silent, and stateIsOn().

Referenced by configure(), slotBPState(), slotBreakInto(), and slotClearAllBreakpoints().

void GDBDebugger::GDBController::programNoApp const QString msg,
bool  msgBox
[private]
 

Definition at line 420 of file gdbcontroller.cpp.

References GDBDebugger::FramestackWidget::clear(), currentFrame_, destroyCmds(), frameStack_, GDBDebugger::s_appNotStarted, GDBDebugger::s_programExited, GDBDebugger::s_shuttingDown, GDBDebugger::s_viewLocals, GDBDebugger::VariableTree::setActiveFlag(), state_, GDBDebugger::VariableTree::trim(), varTree_, and viewedThread_.

Referenced by parseLine().

void GDBDebugger::GDBController::queueCmd DbgCommand cmd,
bool  executeNext = false
[protected, virtual]
 

Implements GDBDebugger::DbgController.

Definition at line 254 of file gdbcontroller.cpp.

References cmdList_, executeCmd(), GDBDebugger::DbgCommand::isARunCmd(), and removeInfoRequests().

Referenced by actOnProgramPause(), clearBreakpoint(), configure(), modifyBreakpoint(), parseLine(), setBreakpoint(), slotAttachTo(), slotBPState(), slotClearAllBreakpoints(), slotCoreFile(), slotDisassemble(), slotExpandItem(), slotExpandUserItem(), slotLibraries(), slotMemoryDump(), slotRegisters(), slotRun(), slotRunUntil(), slotSelectFrame(), slotStart(), slotStepInto(), slotStepIntoIns(), slotStepOutOff(), slotStepOver(), slotStepOverIns(), slotUserGDBCmd(), and slotVarItemConstructed().

void GDBDebugger::GDBController::removeInfoRequests  )  [private]
 

Definition at line 342 of file gdbcontroller.cpp.

References cmdList_, GDBDebugger::DbgCommand::isAnInfoCmd(), and GDBDebugger::DbgCommand::isARunCmd().

Referenced by queueCmd().

void GDBDebugger::GDBController::setBreakpoint const QCString BPSetCmd,
int  key
[private]
 

Definition at line 1133 of file gdbcontroller.cpp.

References queueCmd().

Referenced by slotBPState().

void GDBDebugger::GDBController::setStateOff int  stateOff  )  [inline, private]
 

Definition at line 85 of file gdbcontroller.h.

References setStateOff(), and state_.

Referenced by actOnProgramPause(), executeCmd(), parseLine(), parseProgramLocation(), setStateOff(), slotAttachTo(), slotCoreFile(), slotDbgWroteStdin(), slotSetLocalViewState(), and slotStart().

void GDBDebugger::GDBController::setStateOn int  stateOn  )  [inline, private]
 

Definition at line 84 of file gdbcontroller.h.

References setStateOn(), and state_.

Referenced by configure(), executeCmd(), parseLine(), setStateOn(), slotAttachTo(), slotBPState(), slotClearAllBreakpoints(), slotCoreFile(), slotSetLocalViewState(), and slotStopDebugger().

void GDBDebugger::GDBController::slotAttachTo int  pid  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1432 of file gdbcontroller.cpp.

References GDBDebugger::ARGS, GDBDebugger::BACKTRACE, INFOCMD, GDBDebugger::LOCALS, NOTINFOCMD, NOTRUNCMD, queueCmd(), GDBDebugger::s_appNotStarted, GDBDebugger::s_attached, GDBDebugger::s_programExited, GDBDebugger::s_silent, GDBDebugger::s_viewLocals, setStateOff(), setStateOn(), and stateIsOn().

void GDBDebugger::GDBController::slotBPState const Breakpoint  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1573 of file gdbcontroller.cpp.

References clearBreakpoint(), config_forceBPSet_, GDBDebugger::Breakpoint::dbgRemoveCommand(), GDBDebugger::Breakpoint::dbgSetCommand(), GDBDebugger::Breakpoint::isActionAdd(), GDBDebugger::Breakpoint::isActionClear(), GDBDebugger::Breakpoint::isActionDie(), GDBDebugger::Breakpoint::isActionModify(), GDBDebugger::Breakpoint::isPending(), GDBDebugger::Breakpoint::key(), modifyBreakpoint(), NOTINFOCMD, pauseApp(), queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, GDBDebugger::s_silent, setBreakpoint(), setStateOn(), and stateIsOn().

void GDBDebugger::GDBController::slotBreakInto  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1565 of file gdbcontroller.cpp.

References pauseApp().

void GDBDebugger::GDBController::slotClearAllBreakpoints  )  [slot]
 

Definition at line 1623 of file gdbcontroller.cpp.

References GDBDebugger::BPLIST, config_forceBPSet_, NOTINFOCMD, NOTRUNCMD, pauseApp(), queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, GDBDebugger::s_silent, setStateOn(), and stateIsOn().

void GDBDebugger::GDBController::slotCoreFile const QString coreFile  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1409 of file gdbcontroller.cpp.

References GDBDebugger::ARGS, GDBDebugger::BACKTRACE, INFOCMD, GDBDebugger::LOCALS, NOTINFOCMD, NOTRUNCMD, queueCmd(), GDBDebugger::s_core, GDBDebugger::s_silent, GDBDebugger::s_viewLocals, setStateOff(), setStateOn(), and stateIsOn().

void GDBDebugger::GDBController::slotDbgProcessExited KProcess proc  )  [protected, virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1986 of file gdbcontroller.cpp.

References destroyCmds(), GDBDebugger::s_appNotStarted, GDBDebugger::s_programExited, GDBDebugger::s_shuttingDown, GDBDebugger::s_viewLocals, and state_.

Referenced by slotStart().

void GDBDebugger::GDBController::slotDbgStderr KProcess proc,
char *  buf,
int  buflen
[protected, virtual, slot]
 

Reimplemented from GDBDebugger::DbgController.

Definition at line 1938 of file gdbcontroller.cpp.

References endl(), kdDebug(), and slotDbgStdout().

Referenced by slotStart().

void GDBDebugger::GDBController::slotDbgStdout KProcess proc,
char *  buf,
int  buflen
[protected, virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1862 of file gdbcontroller.cpp.

References endl(), executeCmd(), gdbOutput_, gdbOutputLen_, gdbSizeofBuf_, holdingZone_, kdDebug(), and parse().

Referenced by slotDbgStderr(), and slotStart().

void GDBDebugger::GDBController::slotDbgWroteStdin KProcess proc  )  [protected, virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1976 of file gdbcontroller.cpp.

References executeCmd(), GDBDebugger::s_waitForWrite, and setStateOff().

Referenced by slotStart().

void GDBDebugger::GDBController::slotDisassemble const QString start,
const QString end
[virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1654 of file gdbcontroller.cpp.

References GDBDebugger::DISASSEMBLE, INFOCMD, NOTRUNCMD, queueCmd(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotExpandItem TrimmableItem parent  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1774 of file gdbcontroller.cpp.

References GDBDebugger::VarItem::getDataType(), queueCmd(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, stateIsOn(), and GDBDebugger::typePointer.

void GDBDebugger::GDBController::slotExpandUserItem VarItem parent,
const QCString userRequest
[virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1830 of file gdbcontroller.cpp.

References GDBDebugger::DATAREQUEST, queueCmd(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotLibraries  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1687 of file gdbcontroller.cpp.

References INFOCMD, GDBDebugger::LIBRARIES, NOTRUNCMD, queueCmd(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotMemoryDump const QString start,
const QString amount
[virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1665 of file gdbcontroller.cpp.

References INFOCMD, GDBDebugger::MEMDUMP, NOTRUNCMD, queueCmd(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotRegisters  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1677 of file gdbcontroller.cpp.

References INFOCMD, NOTRUNCMD, queueCmd(), GDBDebugger::REGISTERS, GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotRun  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1454 of file gdbcontroller.cpp.

References application_, config_runGdbScript_, config_runShellScript_, GDBDebugger::STTY::getSlave(), NOTINFOCMD, queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, KProcess::start(), stateIsOn(), and tty_.

void GDBDebugger::GDBController::slotRunUntil const QString filename,
int  lineNum
[virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1498 of file gdbcontroller.cpp.

References NOTINFOCMD, queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotSelectFrame int  frameNo,
int  threadNo,
bool  needFrames
[virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1697 of file gdbcontroller.cpp.

References GDBDebugger::ARGS, GDBDebugger::BACKTRACE, currentFrame_, GDBDebugger::VariableTree::findFrame(), GDBDebugger::FRAME, frameStack_, GDBDebugger::FramestackWidget::getFrameName(), INFOCMD, GDBDebugger::LOCALS, GDBDebugger::VarFrameRoot::needLocals(), NOTRUNCMD, queueCmd(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, GDBDebugger::s_viewLocals, GDBDebugger::VarFrameRoot::setFrameName(), stateIsOn(), GDBDebugger::SWITCHTHREAD, varTree_, and viewedThread_.

Referenced by slotUserGDBCmd().

void GDBDebugger::GDBController::slotSetLocalViewState bool  onOff  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1849 of file gdbcontroller.cpp.

References endl(), kdDebug(), GDBDebugger::s_viewLocals, setStateOff(), and setStateOn().

void GDBDebugger::GDBController::slotStart const QString shell,
const DomUtil::PairList run_envvars,
const QString run_directory,
const QString application,
const QString run_arguments
[virtual, slot]
 

Start the debugger.

Parameters:
shell shell
run_envvars List with the environment variables
run_directory Directory from where the program should be run
application Absolute path to application
run_arguments Command line arguments to be passed to the application

Implements GDBDebugger::DbgController.

Definition at line 1188 of file gdbcontroller.cpp.

References acceptPendingBPs(), application_, badCore_, config_asmDemangle_, config_breakOnLoadingLibrary_, config_dbgTerminal_, config_displayStaticMembers_, config_gdbPath_, NOTINFOCMD, NOTRUNCMD, DomUtil::PairList, queueCmd(), GDBDebugger::s_dbgNotStarted, setStateOff(), slotDbgProcessExited(), slotDbgStderr(), slotDbgStdout(), slotDbgWroteStdin(), KProcess::start(), state_, and tty_.

void GDBDebugger::GDBController::slotStepInto  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1514 of file gdbcontroller.cpp.

References NOTINFOCMD, queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotStepIntoIns  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1524 of file gdbcontroller.cpp.

References NOTINFOCMD, queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotStepOutOff  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1554 of file gdbcontroller.cpp.

References NOTINFOCMD, queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotStepOver  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1534 of file gdbcontroller.cpp.

References NOTINFOCMD, queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotStepOverIns  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1544 of file gdbcontroller.cpp.

References NOTINFOCMD, queueCmd(), RUNCMD, GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_shuttingDown, and stateIsOn().

void GDBDebugger::GDBController::slotStopDebugger  )  [virtual, slot]
 

Implements GDBDebugger::DbgController.

Definition at line 1327 of file gdbcontroller.cpp.

References destroyCmds(), endl(), kdDebug(), KProcess::kill(), GDBDebugger::s_appBusy, GDBDebugger::s_appNotStarted, GDBDebugger::s_attached, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_programExited, GDBDebugger::s_shuttingDown, GDBDebugger::s_silent, setStateOn(), state_, stateIsOn(), tty_, and KProcess::writeStdin().

Referenced by slotUserGDBCmd().

void GDBDebugger::GDBController::slotUserGDBCmd const QString  )  [slot]
 

Definition at line 1997 of file gdbcontroller.cpp.

References GDBDebugger::ARGS, GDBDebugger::BACKTRACE, currentFrame_, endl(), INFOCMD, GDBDebugger::INFOTHREAD, kdDebug(), GDBDebugger::LOCALS, NOTINFOCMD, NOTRUNCMD, queueCmd(), RUNCMD, slotSelectFrame(), slotStopDebugger(), GDBDebugger::USERCMD, and viewedThread_.

void GDBDebugger::GDBController::slotVarItemConstructed VarItem item  )  [virtual, slot]
 

Reimplemented from GDBDebugger::DbgController.

Definition at line 1759 of file gdbcontroller.cpp.

References GDBDebugger::VarItem::fullName(), queueCmd(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_shuttingDown, stateIsOn(), and GDBDebugger::WHATIS.

bool GDBDebugger::GDBController::stateIsOn int  state  )  [inline, private, virtual]
 

Implements GDBDebugger::DbgController.

Definition at line 86 of file gdbcontroller.h.

References state_, and stateIsOn().

Referenced by actOnProgramPause(), configure(), executeCmd(), parseFrameSelected(), parseLine(), parseProgramLocation(), pauseApp(), slotAttachTo(), slotBPState(), slotClearAllBreakpoints(), slotCoreFile(), slotDisassemble(), slotExpandItem(), slotExpandUserItem(), slotLibraries(), slotMemoryDump(), slotRegisters(), slotRun(), slotRunUntil(), slotSelectFrame(), slotStepInto(), slotStepIntoIns(), slotStepOutOff(), slotStepOver(), slotStepOverIns(), slotStopDebugger(), slotVarItemConstructed(), and stateIsOn().

void GDBDebugger::GDBController::unableToSetBPNow int  BPNo  )  [signal]
 

Referenced by parseLine().


Member Data Documentation

QString GDBDebugger::GDBController::application_ [private]
 

Definition at line 151 of file gdbcontroller.h.

Referenced by slotRun(), and slotStart().

bool GDBDebugger::GDBController::backtraceDueToProgramStop_ [private]
 

Definition at line 156 of file gdbcontroller.h.

Referenced by actOnProgramPause(), and parseBacktraceList().

QString GDBDebugger::GDBController::badCore_ [private]
 

Definition at line 150 of file gdbcontroller.h.

Referenced by parseLine(), and slotStart().

QPtrList<DbgCommand> GDBDebugger::GDBController::cmdList_ [private]
 

Definition at line 146 of file gdbcontroller.h.

Referenced by destroyCmds(), executeCmd(), GDBController(), pauseApp(), queueCmd(), and removeInfoRequests().

bool GDBDebugger::GDBController::config_asmDemangle_ [private]
 

Definition at line 163 of file gdbcontroller.h.

Referenced by configure(), and slotStart().

bool GDBDebugger::GDBController::config_breakOnLoadingLibrary_ [private]
 

Definition at line 160 of file gdbcontroller.h.

Referenced by configure(), and slotStart().

QCString GDBDebugger::GDBController::config_configGdbScript_ [private]
 

Definition at line 167 of file gdbcontroller.h.

Referenced by configure().

QString GDBDebugger::GDBController::config_dbgShell_ [private]
 

Definition at line 166 of file gdbcontroller.h.

bool GDBDebugger::GDBController::config_dbgTerminal_ [private]
 

Definition at line 164 of file gdbcontroller.h.

Referenced by configure(), and slotStart().

bool GDBDebugger::GDBController::config_displayStaticMembers_ [private]
 

Definition at line 162 of file gdbcontroller.h.

Referenced by configure(), and slotStart().

bool GDBDebugger::GDBController::config_forceBPSet_ [private]
 

Definition at line 161 of file gdbcontroller.h.

Referenced by configure(), slotBPState(), and slotClearAllBreakpoints().

QString GDBDebugger::GDBController::config_gdbPath_ [private]
 

Definition at line 165 of file gdbcontroller.h.

Referenced by configure(), and slotStart().

QCString GDBDebugger::GDBController::config_runGdbScript_ [private]
 

Definition at line 169 of file gdbcontroller.h.

Referenced by configure(), and slotRun().

QCString GDBDebugger::GDBController::config_runShellScript_ [private]
 

Definition at line 168 of file gdbcontroller.h.

Referenced by configure(), and slotRun().

DbgCommand* GDBDebugger::GDBController::currentCmd_ [private]
 

Definition at line 147 of file gdbcontroller.h.

Referenced by destroyCmds(), executeCmd(), parseBreakpointSet(), parseCmdBlock(), parseLine(), parseRequestedData(), and parseWhatis().

int GDBDebugger::GDBController::currentFrame_ [private]
 

Definition at line 138 of file gdbcontroller.h.

Referenced by actOnProgramPause(), parseBacktraceList(), parseLocals(), programNoApp(), slotSelectFrame(), and slotUserGDBCmd().

QDomDocument& GDBDebugger::GDBController::dom [private]
 

Definition at line 159 of file gdbcontroller.h.

Referenced by configure().

FramestackWidget* GDBDebugger::GDBController::frameStack_ [private]
 

Definition at line 136 of file gdbcontroller.h.

Referenced by parseBacktraceList(), parseLocals(), parseThreadList(), programNoApp(), and slotSelectFrame().

char* GDBDebugger::GDBController::gdbOutput_ [private]
 

Definition at line 143 of file gdbcontroller.h.

Referenced by GDBController(), slotDbgStdout(), and ~GDBController().

int GDBDebugger::GDBController::gdbOutputLen_ [private]
 

Definition at line 142 of file gdbcontroller.h.

Referenced by slotDbgStdout().

int GDBDebugger::GDBController::gdbSizeofBuf_ [private]
 

Definition at line 141 of file gdbcontroller.h.

Referenced by GDBController(), and slotDbgStdout().

QCString GDBDebugger::GDBController::holdingZone_ [private]
 

Definition at line 144 of file gdbcontroller.h.

Referenced by slotDbgStdout().

bool GDBDebugger::GDBController::programHasExited_ [private]
 

Definition at line 155 of file gdbcontroller.h.

Referenced by parseLine().

int GDBDebugger::GDBController::state_ [private]
 

Definition at line 154 of file gdbcontroller.h.

Referenced by actOnProgramPause(), executeCmd(), parseFrameSelected(), parseProgramLocation(), programNoApp(), setStateOff(), setStateOn(), slotDbgProcessExited(), slotStart(), slotStopDebugger(), and stateIsOn().

STTY* GDBDebugger::GDBController::tty_ [private]
 

Definition at line 149 of file gdbcontroller.h.

Referenced by slotRun(), slotStart(), and slotStopDebugger().

VariableTree* GDBDebugger::GDBController::varTree_ [private]
 

Definition at line 137 of file gdbcontroller.h.

Referenced by actOnProgramPause(), parseBacktraceList(), parseLocals(), parseRequestedData(), parseThreadList(), parseWhatis(), programNoApp(), and slotSelectFrame().

int GDBDebugger::GDBController::viewedThread_ [private]
 

Definition at line 139 of file gdbcontroller.h.

Referenced by actOnProgramPause(), parseBacktraceList(), parseLocals(), parseThreadList(), programNoApp(), slotSelectFrame(), and slotUserGDBCmd().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:09 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003