KDevelop API Documentation

GDBDebugger::DebuggerPart Class Reference

#include <debuggerpart.h>

Inheritance diagram for GDBDebugger::DebuggerPart:

KDevPlugin DebuggerDCOPInterface QObject KXMLGUIClient DCOPObject List of all members.

DCOP Member Functions

virtual ASYNC slotDebugExternalProcess ()

Public Member Functions

 DebuggerPart (QObject *parent, const char *name, const QStringList &)
 ~DebuggerPart ()
virtual void restorePartialProjectSession (const QDomElement *el)
 To restore any settings which differs from project to project, you can override this base class method to read in from a certain subtree of the project session file.

virtual void savePartialProjectSession (QDomElement *el)

Private Slots

void guiClientAdded (KXMLGUIClient *)
void contextMenu (QPopupMenu *popup, const Context *context)
void toggleBreakpoint ()
void contextWatch ()
void projectClosed ()
void projectConfigWidget (KDialogBase *dlg)
void slotActivePartChanged (KParts::Part *)
void slotRun ()
void slotExamineCore ()
void slotAttachProcess ()
void slotStopDebugger ()
void slotStop (KDevPlugin *which=0)
void slotPause ()
void slotRunToCursor ()
void slotStepOver ()
void slotStepOverInstruction ()
void slotStepIntoInstruction ()
void slotStepInto ()
void slotStepOut ()
void slotMemoryView ()
void slotRefreshBPState (const Breakpoint &)
void slotStatus (const QString &msg, int state)
void slotShowStep (const QString &fileName, int lineNum)
void slotGotoSource (const QString &fileName, int lineNum)
void slotDCOPApplicationRegistered (const QCString &appId)
void slotCloseDrKonqi ()

Private Member Functions

bool attachProcess (int pid)
bool startDebugger ()
void setupController ()

Private Attributes

QGuardedPtr< VariableWidgetvariableWidget
QGuardedPtr< GDBBreakpointWidgetgdbBreakpointWidget
QGuardedPtr< FramestackWidgetframestackWidget
QGuardedPtr< DisassembleWidgetdisassembleWidget
QGuardedPtr< GDBOutputWidgetgdbOutputWidget
DbgControllercontroller
QGuardedPtr< QLabelstatusBarIndicator
QGuardedPtr< DbgToolBarfloatingToolBar
ProcessLineMakerprocLineMaker
ProcessLineMakergdbLineMaker
QString m_contextIdent
QCString m_drkonqi

Constructor & Destructor Documentation

GDBDebugger::DebuggerPart::DebuggerPart QObject parent,
const char *  name,
const QStringList
 

GDBDebugger::DebuggerPart::~DebuggerPart  ) 
 

Definition at line 391 of file debuggerpart.cpp.

References controller, disassembleWidget, floatingToolBar, framestackWidget, gdbBreakpointWidget, gdbOutputWidget, KDevPlugin::mainWindow(), procLineMaker, KDevMainWindow::removeView(), statusBarIndicator, and variableWidget.


Member Function Documentation

bool GDBDebugger::DebuggerPart::attachProcess int  pid  )  [private]
 

Definition at line 726 of file debuggerpart.cpp.

References controller, KDevPlugin::mainWindow(), GDBDebugger::DbgController::slotAttachTo(), startDebugger(), and KDevMainWindow::statusBar().

Referenced by slotAttachProcess().

void GDBDebugger::DebuggerPart::contextMenu QPopupMenu popup,
const Context context
[private, slot]
 

Definition at line 428 of file debuggerpart.cpp.

References contextWatch(), EditorContext::currentWord(), Context::hasType(), KURL::isLocalFile(), m_contextIdent, toggleBreakpoint(), and EditorContext::url().

void GDBDebugger::DebuggerPart::contextWatch  )  [private, slot]
 

Definition at line 467 of file debuggerpart.cpp.

References m_contextIdent, and variableWidget.

Referenced by contextMenu().

void GDBDebugger::DebuggerPart::guiClientAdded KXMLGUIClient  )  [private, slot]
 

Definition at line 420 of file debuggerpart.cpp.

void GDBDebugger::DebuggerPart::projectClosed  )  [private, slot]
 

Definition at line 676 of file debuggerpart.cpp.

References slotStopDebugger().

void GDBDebugger::DebuggerPart::projectConfigWidget KDialogBase dlg  )  [private, slot]
 

Definition at line 473 of file debuggerpart.cpp.

References KDialogBase::addVBoxPage(), and controller.

void GDBDebugger::DebuggerPart::restorePartialProjectSession const QDomElement el  )  [virtual]
 

To restore any settings which differs from project to project, you can override this base class method to read in from a certain subtree of the project session file.

During project loading, respectively project session (.kdevses) loading, this method will be called to give a chance to adapt the part to the newly loaded project. For instance, the debugger part might restore the set breakpoints from the previous debug session for the certain project.

Note:
Take attention to the difference to common not-project-related session stuff. They belong to the application rc file (kdeveloprc)

Reimplemented from KDevPlugin.

Definition at line 915 of file debuggerpart.cpp.

References gdbBreakpointWidget.

void GDBDebugger::DebuggerPart::savePartialProjectSession QDomElement el  )  [virtual]
 

See also:
restorePartialProjectSession - This is the other way round, the same just for saving.

Reimplemented from KDevPlugin.

Definition at line 920 of file debuggerpart.cpp.

References gdbBreakpointWidget.

void GDBDebugger::DebuggerPart::setupController  )  [private]
 

Definition at line 482 of file debuggerpart.cpp.

References controller, disassembleWidget, framestackWidget, gdbBreakpointWidget, gdbOutputWidget, procLineMaker, KDevPlugin::projectDom(), slotShowStep(), slotStatus(), and variableWidget.

void GDBDebugger::DebuggerPart::slotActivePartChanged KParts::Part  )  [private, slot]
 

Definition at line 899 of file debuggerpart.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), and KParts::Part::widget().

void GDBDebugger::DebuggerPart::slotAttachProcess  )  [private, slot]
 

Definition at line 714 of file debuggerpart.cpp.

References attachProcess(), KDevPlugin::mainWindow(), GDBDebugger::Dbg_PS_Dialog::pidSelected(), and KDevMainWindow::statusBar().

void GDBDebugger::DebuggerPart::slotCloseDrKonqi  )  [private, slot]
 

Definition at line 385 of file debuggerpart.cpp.

References m_drkonqi.

void GDBDebugger::DebuggerPart::slotDCOPApplicationRegistered const QCString appId  )  [private, slot]
 

Definition at line 330 of file debuggerpart.cpp.

References KDevProject::mainProgram(), and KDevPlugin::project().

ASYNC GDBDebugger::DebuggerPart::slotDebugExternalProcess  )  [virtual]
 

Implements DebuggerDCOPInterface.

Definition at line 357 of file debuggerpart.cpp.

void GDBDebugger::DebuggerPart::slotExamineCore  )  [private, slot]
 

Definition at line 698 of file debuggerpart.cpp.

References controller, KDevPlugin::mainWindow(), KDevPlugin::project(), KDevProject::projectDirectory(), GDBDebugger::DbgController::slotCoreFile(), startDebugger(), and KDevMainWindow::statusBar().

void GDBDebugger::DebuggerPart::slotGotoSource const QString fileName,
int  lineNum
[private, slot]
 

Definition at line 892 of file debuggerpart.cpp.

References KDevPartController::editDocument(), and KDevPlugin::partController().

void GDBDebugger::DebuggerPart::slotMemoryView  )  [private, slot]
 

Definition at line 798 of file debuggerpart.cpp.

References controller.

void GDBDebugger::DebuggerPart::slotPause  )  [private, slot]
 

Definition at line 746 of file debuggerpart.cpp.

References controller, and GDBDebugger::DbgController::slotBreakInto().

void GDBDebugger::DebuggerPart::slotRefreshBPState const Breakpoint  )  [private, slot]
 

Definition at line 826 of file debuggerpart.cpp.

References GDBDebugger::BP_TYPE_FilePos, KDevPlugin::debugger(), GDBDebugger::FilePosBreakpoint::fileName(), GDBDebugger::Breakpoint::isActionDie(), GDBDebugger::Breakpoint::isEnabled(), GDBDebugger::Breakpoint::isPending(), GDBDebugger::FilePosBreakpoint::lineNum(), KDevDebugger::setBreakpoint(), and GDBDebugger::Breakpoint::type().

void GDBDebugger::DebuggerPart::slotRun  )  [private, slot]
 

Definition at line 681 of file debuggerpart.cpp.

References KDevPlugin::appFrontend(), KDevAppFrontend::clearView(), controller, gdbOutputWidget, KDevPlugin::mainWindow(), KDevMainWindow::raiseView(), GDBDebugger::s_dbgNotStarted, GDBDebugger::DbgController::slotRun(), startDebugger(), GDBDebugger::DbgController::stateIsOn(), and KDevMainWindow::statusBar().

void GDBDebugger::DebuggerPart::slotRunToCursor  )  [private, slot]
 

Definition at line 752 of file debuggerpart.cpp.

References KParts::PartManager::activePart(), KParts::PartManager::activeWidget(), controller, KTextEditor::ViewCursorInterface::cursorPosition(), KURL::isLocalFile(), KDevPlugin::partController(), KURL::path(), GDBDebugger::DbgController::slotRunUntil(), and KParts::ReadOnlyPart::url().

void GDBDebugger::DebuggerPart::slotShowStep const QString fileName,
int  lineNum
[private, slot]
 

Definition at line 882 of file debuggerpart.cpp.

References KDevPlugin::debugger(), and KDevDebugger::gotoExecutionPoint().

Referenced by setupController().

void GDBDebugger::DebuggerPart::slotStatus const QString msg,
int  state
[private, slot]
 

Definition at line 840 of file debuggerpart.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), KDevDebugger::clearExecutionPoint(), KDevPlugin::debugger(), endl(), kdDebug(), KDevPlugin::mainWindow(), GDBDebugger::s_appBusy, GDBDebugger::s_dbgNotStarted, GDBDebugger::s_programExited, KAction::setIcon(), KAction::setStatusText(), KAction::setText(), KAction::setWhatsThis(), KDevMainWindow::statusBar(), and statusBarIndicator.

Referenced by setupController().

void GDBDebugger::DebuggerPart::slotStepInto  )  [private, slot]
 

Definition at line 786 of file debuggerpart.cpp.

References controller, and GDBDebugger::DbgController::slotStepInto().

void GDBDebugger::DebuggerPart::slotStepIntoInstruction  )  [private, slot]
 

Definition at line 780 of file debuggerpart.cpp.

References controller, and GDBDebugger::DbgController::slotStepIntoIns().

void GDBDebugger::DebuggerPart::slotStepOut  )  [private, slot]
 

Definition at line 792 of file debuggerpart.cpp.

References controller, and GDBDebugger::DbgController::slotStepOutOff().

void GDBDebugger::DebuggerPart::slotStepOver  )  [private, slot]
 

Definition at line 768 of file debuggerpart.cpp.

References controller, and GDBDebugger::DbgController::slotStepOver().

void GDBDebugger::DebuggerPart::slotStepOverInstruction  )  [private, slot]
 

Definition at line 774 of file debuggerpart.cpp.

References controller, and GDBDebugger::DbgController::slotStepOver().

void GDBDebugger::DebuggerPart::slotStop KDevPlugin which = 0  )  [private, slot]
 

Definition at line 736 of file debuggerpart.cpp.

References slotStopDebugger().

void GDBDebugger::DebuggerPart::slotStopDebugger  )  [private, slot]
 

Definition at line 636 of file debuggerpart.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), KDevDebugger::clearExecutionPoint(), controller, KDevPlugin::core(), KDevPlugin::debugger(), disassembleWidget, floatingToolBar, framestackWidget, gdbBreakpointWidget, gdbOutputWidget, KDevPlugin::mainWindow(), KDevCore::running(), KAction::setIcon(), KAction::setStatusText(), KAction::setText(), KDevMainWindow::setViewAvailable(), KAction::setWhatsThis(), GDBDebugger::DbgController::slotStopDebugger(), and variableWidget.

Referenced by projectClosed(), and slotStop().

bool GDBDebugger::DebuggerPart::startDebugger  )  [private]
 

Definition at line 564 of file debuggerpart.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), KDevProject::buildDirectory(), controller, KDevPlugin::core(), disassembleWidget, floatingToolBar, framestackWidget, gdbOutputWidget, main(), KDevProject::mainProgram(), KDevPlugin::mainWindow(), DomUtil::PairList, KDevPlugin::project(), KDevPlugin::projectDom(), KDevProject::runArguments(), KDevProject::runDirectory(), KDevProject::runEnvironmentVars(), KDevCore::running(), KAction::setIcon(), KAction::setStatusText(), KAction::setText(), KDevMainWindow::setViewAvailable(), KAction::setWhatsThis(), GDBDebugger::DbgController::slotStart(), and variableWidget.

Referenced by attachProcess(), slotExamineCore(), and slotRun().

void GDBDebugger::DebuggerPart::toggleBreakpoint  )  [private, slot]
 

Definition at line 450 of file debuggerpart.cpp.

References KParts::PartManager::activePart(), KParts::PartManager::activeWidget(), KTextEditor::ViewCursorInterface::cursorPositionReal(), gdbBreakpointWidget, KDevPlugin::partController(), KURL::path(), and KParts::ReadOnlyPart::url().

Referenced by contextMenu().


Member Data Documentation

DbgController* GDBDebugger::DebuggerPart::controller [private]
 

Definition at line 98 of file debuggerpart.h.

Referenced by attachProcess(), projectConfigWidget(), setupController(), slotExamineCore(), slotMemoryView(), slotPause(), slotRun(), slotRunToCursor(), slotStepInto(), slotStepIntoInstruction(), slotStepOut(), slotStepOver(), slotStepOverInstruction(), slotStopDebugger(), startDebugger(), and ~DebuggerPart().

QGuardedPtr<DisassembleWidget> GDBDebugger::DebuggerPart::disassembleWidget [private]
 

Definition at line 96 of file debuggerpart.h.

Referenced by setupController(), slotStopDebugger(), startDebugger(), and ~DebuggerPart().

QGuardedPtr<DbgToolBar> GDBDebugger::DebuggerPart::floatingToolBar [private]
 

Definition at line 100 of file debuggerpart.h.

Referenced by slotStopDebugger(), startDebugger(), and ~DebuggerPart().

QGuardedPtr<FramestackWidget> GDBDebugger::DebuggerPart::framestackWidget [private]
 

Definition at line 95 of file debuggerpart.h.

Referenced by setupController(), slotStopDebugger(), startDebugger(), and ~DebuggerPart().

QGuardedPtr<GDBBreakpointWidget> GDBDebugger::DebuggerPart::gdbBreakpointWidget [private]
 

Definition at line 94 of file debuggerpart.h.

Referenced by restorePartialProjectSession(), savePartialProjectSession(), setupController(), slotStopDebugger(), toggleBreakpoint(), and ~DebuggerPart().

ProcessLineMaker* GDBDebugger::DebuggerPart::gdbLineMaker [private]
 

Definition at line 102 of file debuggerpart.h.

QGuardedPtr<GDBOutputWidget> GDBDebugger::DebuggerPart::gdbOutputWidget [private]
 

Definition at line 97 of file debuggerpart.h.

Referenced by setupController(), slotRun(), slotStopDebugger(), startDebugger(), and ~DebuggerPart().

QString GDBDebugger::DebuggerPart::m_contextIdent [private]
 

Definition at line 104 of file debuggerpart.h.

Referenced by contextMenu(), and contextWatch().

QCString GDBDebugger::DebuggerPart::m_drkonqi [private]
 

Definition at line 105 of file debuggerpart.h.

Referenced by slotCloseDrKonqi().

ProcessLineMaker* GDBDebugger::DebuggerPart::procLineMaker [private]
 

Definition at line 101 of file debuggerpart.h.

Referenced by setupController(), and ~DebuggerPart().

QGuardedPtr<QLabel> GDBDebugger::DebuggerPart::statusBarIndicator [private]
 

Definition at line 99 of file debuggerpart.h.

Referenced by slotStatus(), and ~DebuggerPart().

QGuardedPtr<VariableWidget> GDBDebugger::DebuggerPart::variableWidget [private]
 

Definition at line 93 of file debuggerpart.h.

Referenced by contextWatch(), setupController(), slotStopDebugger(), startDebugger(), and ~DebuggerPart().


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