KDevelop API Documentation

GDBDebugger::Breakpoint Class Reference

#include <breakpoint.h>

Inheritance diagram for GDBDebugger::Breakpoint:

GDBDebugger::AddressBreakpoint GDBDebugger::FilePosBreakpoint GDBDebugger::FunctionBreakpoint GDBDebugger::Watchpoint List of all members.

Public Member Functions

 Breakpoint (bool temporary=false, bool enabled=true)
virtual ~Breakpoint ()
virtual QString dbgSetCommand () const =0
virtual QString dbgRemoveCommand () const
virtual bool match (const Breakpoint *brkpt) const =0
virtual void reset ()
void setActive (int active, int id)
bool isActive (int active) const
void setEnabled (bool enabled)
bool isEnabled () const
void setTemporary (bool temporary)
bool isTemporary () const
void setHardwareBP (bool hardwareBP)
bool isHardwareBP () const
void setIgnoreCount (int ignoreCount)
int ignoreCount () const
void setAddress (const QString &address)
QString address () const
void setConditional (const QString &condition)
QString conditional () const
bool changedCondition () const
bool changedIgnoreCount () const
bool changedEnable () const
void setPending (bool pending)
bool isPending () const
void setActionAdd (bool actionAdd)
bool isActionAdd () const
void setActionClear (bool actionClear)
bool isActionClear () const
void setActionModify (bool actionModify)
bool isActionModify () const
void setDbgProcessing (bool dbgProcessing)
bool isDbgProcessing () const
void setActionDie ()
bool isActionDie () const
int key () const
void setDbgId (int dbgId)
int dbgId () const
void setHits (int hits)
int hits () const
virtual QString statusDisplay (int activeFlag) const
virtual BP_TYPES type () const
virtual QString displayType () const
virtual QString location (bool compact=true)=0
virtual void setLocation (const QString &)=0
virtual bool isValid () const =0

Private Attributes

bool s_pending_:1
bool s_actionAdd_:1
bool s_actionClear_:1
bool s_actionModify_:1
bool s_actionDie_:1
bool s_dbgProcessing_:1
bool s_enabled_:1
bool s_temporary_:1
bool s_changedCondition_:1
bool s_changedIgnoreCount_:1
bool s_changedEnable_:1
bool s_hardwareBP_:1
int dbgId_
int hits_
int key_
int active_
int ignoreCount_
QString address_
QString condition_

Constructor & Destructor Documentation

GDBDebugger::Breakpoint::Breakpoint bool  temporary = false,
bool  enabled = true
 

Definition at line 41 of file breakpoint.cpp.

References GDBDebugger::BPKey_.

GDBDebugger::Breakpoint::~Breakpoint  )  [virtual]
 

Definition at line 65 of file breakpoint.cpp.


Member Function Documentation

QString GDBDebugger::Breakpoint::address  )  const [inline]
 

Definition at line 65 of file breakpoint.h.

References address_.

bool GDBDebugger::Breakpoint::changedCondition  )  const [inline]
 

Definition at line 71 of file breakpoint.h.

References s_changedCondition_.

Referenced by GDBDebugger::GDBController::modifyBreakpoint().

bool GDBDebugger::Breakpoint::changedEnable  )  const [inline]
 

Definition at line 73 of file breakpoint.h.

References s_changedEnable_.

Referenced by GDBDebugger::GDBController::modifyBreakpoint().

bool GDBDebugger::Breakpoint::changedIgnoreCount  )  const [inline]
 

Definition at line 72 of file breakpoint.h.

References s_changedIgnoreCount_.

Referenced by GDBDebugger::GDBController::modifyBreakpoint().

QString GDBDebugger::Breakpoint::conditional  )  const [inline]
 

Definition at line 69 of file breakpoint.h.

References condition_.

Referenced by GDBDebugger::GDBController::modifyBreakpoint(), GDBDebugger::GDBBreakpointWidget::savePartialProjectSession(), GDBDebugger::BreakpointTableRow::setRow(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

int GDBDebugger::Breakpoint::dbgId  )  const [inline]
 

Definition at line 93 of file breakpoint.h.

References dbgId_.

Referenced by GDBDebugger::GDBBreakpointWidget::findId(), and GDBDebugger::GDBController::modifyBreakpoint().

QString GDBDebugger::Breakpoint::dbgRemoveCommand  )  const [virtual]
 

Definition at line 71 of file breakpoint.cpp.

References dbgId_.

Referenced by GDBDebugger::GDBController::slotBPState().

virtual QString GDBDebugger::Breakpoint::dbgSetCommand  )  const [pure virtual]
 

Implemented in GDBDebugger::FilePosBreakpoint, GDBDebugger::Watchpoint, GDBDebugger::AddressBreakpoint, and GDBDebugger::FunctionBreakpoint.

Referenced by GDBDebugger::GDBController::slotBPState().

virtual QString GDBDebugger::Breakpoint::displayType  )  const [inline, virtual]
 

Reimplemented in GDBDebugger::FilePosBreakpoint, GDBDebugger::Watchpoint, GDBDebugger::AddressBreakpoint, and GDBDebugger::FunctionBreakpoint.

Definition at line 99 of file breakpoint.h.

Referenced by GDBDebugger::BreakpointTableRow::setRow().

int GDBDebugger::Breakpoint::hits  )  const [inline]
 

Definition at line 95 of file breakpoint.h.

References hits_.

Referenced by GDBDebugger::BreakpointTableRow::setRow().

int GDBDebugger::Breakpoint::ignoreCount  )  const [inline]
 

Definition at line 63 of file breakpoint.h.

References ignoreCount_.

Referenced by GDBDebugger::GDBController::modifyBreakpoint(), GDBDebugger::BreakpointTableRow::setRow(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

bool GDBDebugger::Breakpoint::isActionAdd  )  const [inline]
 

Definition at line 79 of file breakpoint.h.

References s_actionAdd_.

Referenced by GDBDebugger::GDBController::slotBPState().

bool GDBDebugger::Breakpoint::isActionClear  )  const [inline]
 

Definition at line 81 of file breakpoint.h.

References s_actionClear_.

Referenced by GDBDebugger::GDBController::slotBPState().

bool GDBDebugger::Breakpoint::isActionDie  )  const [inline]
 

Definition at line 89 of file breakpoint.h.

References s_actionDie_.

Referenced by GDBDebugger::GDBController::slotBPState(), and GDBDebugger::DebuggerPart::slotRefreshBPState().

bool GDBDebugger::Breakpoint::isActionModify  )  const [inline]
 

Definition at line 84 of file breakpoint.h.

References s_actionModify_.

Referenced by GDBDebugger::GDBController::modifyBreakpoint(), and GDBDebugger::GDBController::slotBPState().

bool GDBDebugger::Breakpoint::isActive int  active  )  const [inline]
 

Definition at line 51 of file breakpoint.h.

References active_, isActive(), s_actionClear_, and s_pending_.

Referenced by isActive(), GDBDebugger::GDBBreakpointWidget::slotParseGDBBrkptList(), and statusDisplay().

bool GDBDebugger::Breakpoint::isDbgProcessing  )  const [inline]
 

Definition at line 86 of file breakpoint.h.

References s_dbgProcessing_.

Referenced by GDBDebugger::GDBBreakpointWidget::removeBreakpoint(), and GDBDebugger::GDBBreakpointWidget::slotSetPendingBPs().

bool GDBDebugger::Breakpoint::isEnabled  )  const [inline]
 

Definition at line 55 of file breakpoint.h.

References s_enabled_.

Referenced by GDBDebugger::GDBController::modifyBreakpoint(), GDBDebugger::GDBBreakpointWidget::savePartialProjectSession(), GDBDebugger::BreakpointTableRow::setRow(), GDBDebugger::GDBBreakpointWidget::slotNewValue(), and GDBDebugger::DebuggerPart::slotRefreshBPState().

bool GDBDebugger::Breakpoint::isHardwareBP  )  const [inline]
 

Definition at line 59 of file breakpoint.h.

References s_hardwareBP_.

Referenced by GDBDebugger::BreakpointTableRow::setRow().

bool GDBDebugger::Breakpoint::isPending  )  const [inline]
 

Definition at line 76 of file breakpoint.h.

References s_pending_.

Referenced by GDBDebugger::GDBBreakpointWidget::removeBreakpoint(), GDBDebugger::GDBController::slotBPState(), GDBDebugger::DebuggerPart::slotRefreshBPState(), and GDBDebugger::GDBBreakpointWidget::slotSetPendingBPs().

bool GDBDebugger::Breakpoint::isTemporary  )  const [inline]
 

Definition at line 57 of file breakpoint.h.

References s_temporary_.

Referenced by GDBDebugger::FilePosBreakpoint::dbgSetCommand(), and GDBDebugger::BreakpointTableRow::setRow().

virtual bool GDBDebugger::Breakpoint::isValid  )  const [pure virtual]
 

Implemented in GDBDebugger::FilePosBreakpoint, GDBDebugger::Watchpoint, GDBDebugger::AddressBreakpoint, and GDBDebugger::FunctionBreakpoint.

Referenced by GDBDebugger::GDBBreakpointWidget::slotSetPendingBPs().

int GDBDebugger::Breakpoint::key  )  const [inline]
 

Definition at line 91 of file breakpoint.h.

References key_.

Referenced by GDBDebugger::GDBBreakpointWidget::findKey(), and GDBDebugger::GDBController::slotBPState().

virtual QString GDBDebugger::Breakpoint::location bool  compact = true  )  [pure virtual]
 

Implemented in GDBDebugger::FilePosBreakpoint, GDBDebugger::Watchpoint, GDBDebugger::AddressBreakpoint, and GDBDebugger::FunctionBreakpoint.

Referenced by GDBDebugger::GDBBreakpointWidget::savePartialProjectSession(), GDBDebugger::BreakpointTableRow::setRow(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

virtual bool GDBDebugger::Breakpoint::match const Breakpoint brkpt  )  const [pure virtual]
 

Implemented in GDBDebugger::FilePosBreakpoint, GDBDebugger::Watchpoint, GDBDebugger::AddressBreakpoint, and GDBDebugger::FunctionBreakpoint.

Referenced by GDBDebugger::BreakpointTableRow::match().

void GDBDebugger::Breakpoint::reset  )  [virtual]
 

Definition at line 82 of file breakpoint.cpp.

References active_, condition_, dbgId_, hits_, ignoreCount_, s_actionAdd_, s_actionClear_, s_actionModify_, s_changedCondition_, s_changedEnable_, s_changedIgnoreCount_, s_dbgProcessing_, s_enabled_, s_hardwareBP_, and s_pending_.

Referenced by GDBDebugger::BreakpointTableRow::reset().

void GDBDebugger::Breakpoint::setActionAdd bool  actionAdd  )  [inline]
 

Definition at line 77 of file breakpoint.h.

References s_actionAdd_, s_actionDie_, and setActionAdd().

Referenced by setActionAdd(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

void GDBDebugger::Breakpoint::setActionClear bool  actionClear  )  [inline]
 

Definition at line 80 of file breakpoint.h.

References s_actionClear_, and setActionClear().

Referenced by GDBDebugger::GDBBreakpointWidget::removeBreakpoint(), and setActionClear().

void GDBDebugger::Breakpoint::setActionDie  )  [inline]
 

Definition at line 87 of file breakpoint.h.

References s_actionClear_, and s_actionDie_.

Referenced by GDBDebugger::GDBBreakpointWidget::removeBreakpoint(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

void GDBDebugger::Breakpoint::setActionModify bool  actionModify  )  [inline]
 

Definition at line 82 of file breakpoint.h.

References s_actionDie_, s_actionModify_, and setActionModify().

Referenced by setActionModify(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

void GDBDebugger::Breakpoint::setActive int  active,
int  id
 

Definition at line 100 of file breakpoint.cpp.

References active_, dbgId_, s_actionAdd_, s_actionClear_, s_actionDie_, s_actionModify_, s_changedCondition_, s_changedEnable_, s_changedIgnoreCount_, s_dbgProcessing_, and s_pending_.

Referenced by GDBDebugger::GDBBreakpointWidget::slotParseGDBBreakpointSet(), and GDBDebugger::GDBBreakpointWidget::slotParseGDBBrkptList().

void GDBDebugger::Breakpoint::setAddress const QString address  )  [inline]
 

Definition at line 64 of file breakpoint.h.

References address_, and setAddress().

Referenced by setAddress().

void GDBDebugger::Breakpoint::setConditional const QString condition  )  [inline]
 

Definition at line 66 of file breakpoint.h.

References condition_, s_changedCondition_, and setConditional().

Referenced by GDBDebugger::GDBBreakpointWidget::restorePartialProjectSession(), setConditional(), GDBDebugger::GDBBreakpointWidget::slotNewValue(), and GDBDebugger::GDBBreakpointWidget::slotParseGDBBrkptList().

void GDBDebugger::Breakpoint::setDbgId int  dbgId  )  [inline]
 

Definition at line 92 of file breakpoint.h.

References dbgId_, and setDbgId().

Referenced by setDbgId().

void GDBDebugger::Breakpoint::setDbgProcessing bool  dbgProcessing  )  [inline]
 

Definition at line 85 of file breakpoint.h.

References s_dbgProcessing_, and setDbgProcessing().

Referenced by setDbgProcessing(), and GDBDebugger::GDBBreakpointWidget::slotParseGDBBreakpointSet().

void GDBDebugger::Breakpoint::setEnabled bool  enabled  )  [inline]
 

Definition at line 53 of file breakpoint.h.

References s_changedEnable_, s_enabled_, and setEnabled().

Referenced by GDBDebugger::GDBBreakpointWidget::restorePartialProjectSession(), setEnabled(), GDBDebugger::GDBBreakpointWidget::slotNewValue(), and GDBDebugger::GDBBreakpointWidget::slotToggleBreakpointEnabled().

void GDBDebugger::Breakpoint::setHardwareBP bool  hardwareBP  )  [inline]
 

Definition at line 58 of file breakpoint.h.

References s_hardwareBP_, and setHardwareBP().

Referenced by setHardwareBP(), and GDBDebugger::GDBBreakpointWidget::slotParseGDBBreakpointSet().

void GDBDebugger::Breakpoint::setHits int  hits  )  [inline]
 

Definition at line 94 of file breakpoint.h.

References hits_, and setHits().

Referenced by setHits(), and GDBDebugger::GDBBreakpointWidget::slotParseGDBBrkptList().

void GDBDebugger::Breakpoint::setIgnoreCount int  ignoreCount  )  [inline]
 

Definition at line 60 of file breakpoint.h.

References ignoreCount_, s_changedIgnoreCount_, and setIgnoreCount().

Referenced by setIgnoreCount(), GDBDebugger::GDBBreakpointWidget::slotNewValue(), and GDBDebugger::GDBBreakpointWidget::slotParseGDBBrkptList().

virtual void GDBDebugger::Breakpoint::setLocation const QString  )  [pure virtual]
 

Implemented in GDBDebugger::FilePosBreakpoint, GDBDebugger::Watchpoint, GDBDebugger::AddressBreakpoint, and GDBDebugger::FunctionBreakpoint.

Referenced by GDBDebugger::GDBBreakpointWidget::restorePartialProjectSession(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

void GDBDebugger::Breakpoint::setPending bool  pending  )  [inline]
 

Definition at line 75 of file breakpoint.h.

References s_pending_, and setPending().

Referenced by GDBDebugger::GDBBreakpointWidget::removeBreakpoint(), setPending(), and GDBDebugger::GDBBreakpointWidget::slotNewValue().

void GDBDebugger::Breakpoint::setTemporary bool  temporary  )  [inline]
 

Definition at line 56 of file breakpoint.h.

References s_temporary_, and setTemporary().

Referenced by setTemporary().

QString GDBDebugger::Breakpoint::statusDisplay int  activeFlag  )  const [virtual]
 

Definition at line 124 of file breakpoint.cpp.

References isActive(), s_actionAdd_, s_actionClear_, s_actionModify_, s_enabled_, and s_pending_.

Referenced by GDBDebugger::BreakpointTableRow::setRow().

virtual BP_TYPES GDBDebugger::Breakpoint::type  )  const [inline, virtual]
 

Reimplemented in GDBDebugger::FilePosBreakpoint, GDBDebugger::Watchpoint, GDBDebugger::AddressBreakpoint, and GDBDebugger::FunctionBreakpoint.

Definition at line 98 of file breakpoint.h.

References GDBDebugger::BP_TYPE_Invalid, and GDBDebugger::BP_TYPES.

Referenced by GDBDebugger::GDBBreakpointWidget::savePartialProjectSession(), and GDBDebugger::DebuggerPart::slotRefreshBPState().


Member Data Documentation

int GDBDebugger::Breakpoint::active_ [private]
 

Definition at line 123 of file breakpoint.h.

Referenced by isActive(), reset(), and setActive().

QString GDBDebugger::Breakpoint::address_ [private]
 

Definition at line 126 of file breakpoint.h.

Referenced by address(), and setAddress().

QString GDBDebugger::Breakpoint::condition_ [private]
 

Definition at line 127 of file breakpoint.h.

Referenced by conditional(), reset(), and setConditional().

int GDBDebugger::Breakpoint::dbgId_ [private]
 

Definition at line 119 of file breakpoint.h.

Referenced by dbgId(), dbgRemoveCommand(), reset(), setActive(), and setDbgId().

int GDBDebugger::Breakpoint::hits_ [private]
 

Definition at line 120 of file breakpoint.h.

Referenced by hits(), reset(), and setHits().

int GDBDebugger::Breakpoint::ignoreCount_ [private]
 

Definition at line 125 of file breakpoint.h.

Referenced by ignoreCount(), reset(), and setIgnoreCount().

int GDBDebugger::Breakpoint::key_ [private]
 

Definition at line 122 of file breakpoint.h.

Referenced by key().

bool GDBDebugger::Breakpoint::s_actionAdd_ [private]
 

Definition at line 107 of file breakpoint.h.

Referenced by isActionAdd(), reset(), setActionAdd(), setActive(), and statusDisplay().

bool GDBDebugger::Breakpoint::s_actionClear_ [private]
 

Definition at line 108 of file breakpoint.h.

Referenced by isActionClear(), isActive(), reset(), setActionClear(), setActionDie(), setActive(), and statusDisplay().

bool GDBDebugger::Breakpoint::s_actionDie_ [private]
 

Definition at line 110 of file breakpoint.h.

Referenced by isActionDie(), setActionAdd(), setActionDie(), setActionModify(), and setActive().

bool GDBDebugger::Breakpoint::s_actionModify_ [private]
 

Definition at line 109 of file breakpoint.h.

Referenced by isActionModify(), reset(), setActionModify(), setActive(), and statusDisplay().

bool GDBDebugger::Breakpoint::s_changedCondition_ [private]
 

Definition at line 114 of file breakpoint.h.

Referenced by changedCondition(), reset(), setActive(), and setConditional().

bool GDBDebugger::Breakpoint::s_changedEnable_ [private]
 

Definition at line 116 of file breakpoint.h.

Referenced by changedEnable(), reset(), setActive(), and setEnabled().

bool GDBDebugger::Breakpoint::s_changedIgnoreCount_ [private]
 

Definition at line 115 of file breakpoint.h.

Referenced by changedIgnoreCount(), reset(), setActive(), and setIgnoreCount().

bool GDBDebugger::Breakpoint::s_dbgProcessing_ [private]
 

Definition at line 111 of file breakpoint.h.

Referenced by isDbgProcessing(), reset(), setActive(), and setDbgProcessing().

bool GDBDebugger::Breakpoint::s_enabled_ [private]
 

Definition at line 112 of file breakpoint.h.

Referenced by isEnabled(), reset(), setEnabled(), and statusDisplay().

bool GDBDebugger::Breakpoint::s_hardwareBP_ [private]
 

Definition at line 117 of file breakpoint.h.

Referenced by isHardwareBP(), reset(), and setHardwareBP().

bool GDBDebugger::Breakpoint::s_pending_ [private]
 

Definition at line 106 of file breakpoint.h.

Referenced by isActive(), isPending(), reset(), setActive(), setPending(), and statusDisplay().

bool GDBDebugger::Breakpoint::s_temporary_ [private]
 

Definition at line 113 of file breakpoint.h.

Referenced by isTemporary(), and setTemporary().


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:08 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003