KDevelop API Documentation

GDBDebugger::DebuggerPart Class Reference

#include <debuggerpart.h>

Inheritance diagram for GDBDebugger::DebuggerPart:

Inheritance graph
[legend]
Collaboration diagram for GDBDebugger::DebuggerPart:

Collaboration graph
[legend]
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 394 of file debuggerpart.cpp.

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


Member Function Documentation

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

Definition at line 739 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 431 of file debuggerpart.cpp.

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

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

Definition at line 471 of file debuggerpart.cpp.

References m_contextIdent, and variableWidget.

Referenced by contextMenu().

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

Definition at line 423 of file debuggerpart.cpp.

References KXMLGUIClient::stateChanged().

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

Definition at line 680 of file debuggerpart.cpp.

References slotStopDebugger().

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

Definition at line 477 of file debuggerpart.cpp.

References KDialogBase::addVBoxPage(), controller, and KDevPlugin::icon().

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 928 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 933 of file debuggerpart.cpp.

References gdbBreakpointWidget.

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

Definition at line 486 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 912 of file debuggerpart.cpp.

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

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

Definition at line 727 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 388 of file debuggerpart.cpp.

References m_drkonqi.

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

Definition at line 333 of file debuggerpart.cpp.

References DCOPObject::connectDCOPSignal(), KDevPlugin::d, KDevProject::mainProgram(), and KDevPlugin::project().

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

Implements DebuggerDCOPInterface.

Definition at line 360 of file debuggerpart.cpp.

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

Definition at line 711 of file debuggerpart.cpp.

References controller, KFileDialog::getOpenFileName(), 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 905 of file debuggerpart.cpp.

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

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

Definition at line 811 of file debuggerpart.cpp.

References controller.

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

Definition at line 759 of file debuggerpart.cpp.

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

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

Definition at line 839 of file debuggerpart.cpp.

References 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 685 of file debuggerpart.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), KDevPlugin::appFrontend(), KDevAppFrontend::clearView(), controller, gdbOutputWidget, KDevPlugin::mainWindow(), KDevMainWindow::raiseView(), GDBDebugger::s_dbgNotStarted, KAction::setStatusText(), KAction::setText(), KAction::setWhatsThis(), GDBDebugger::DbgController::slotRun(), startDebugger(), GDBDebugger::DbgController::stateIsOn(), and KDevMainWindow::statusBar().

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

Definition at line 765 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 895 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 853 of file debuggerpart.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), KDevDebugger::clearExecutionPoint(), KDevPlugin::debugger(), kdDebug(), KDevPlugin::mainWindow(), KAction::setStatusText(), KAction::setText(), KAction::setWhatsThis(), KXMLGUIClient::stateChanged(), KDevMainWindow::statusBar(), and statusBarIndicator.

Referenced by setupController().

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

Definition at line 799 of file debuggerpart.cpp.

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

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

Definition at line 793 of file debuggerpart.cpp.

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

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

Definition at line 805 of file debuggerpart.cpp.

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

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

Definition at line 781 of file debuggerpart.cpp.

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

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

Definition at line 787 of file debuggerpart.cpp.

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

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

Definition at line 749 of file debuggerpart.cpp.

References slotStopDebugger().

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

Definition at line 640 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::setStatusText(), KAction::setText(), KDevMainWindow::setViewAvailable(), KAction::setWhatsThis(), GDBDebugger::DbgController::slotStopDebugger(), KXMLGUIClient::stateChanged(), and variableWidget.

Referenced by projectClosed(), and slotStop().

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

Definition at line 568 of file debuggerpart.cpp.

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

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

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

Definition at line 454 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(), and startDebugger().

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(), and startDebugger().

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().

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

Definition at line 99 of file debuggerpart.h.

Referenced by slotStatus().

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.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:50:43 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003