Code::Blocks  SVN r11506
Public Types | Public Member Functions | Public Attributes | List of all members
DebuggerBreakpoint Struct Reference

Debugger breakpoint interface. More...

#include <debugger_defs.h>

Inheritance diagram for DebuggerBreakpoint:
Collaboration diagram for DebuggerBreakpoint:

Public Types

enum  BreakpointType { bptCode = 0, bptFunction, bptData }
 

Public Member Functions

 DebuggerBreakpoint ()
 Constructor. More...
 
virtual void SetEnabled (bool flag)
 
virtual wxString GetLocation () const
 
virtual int GetLine () const
 
virtual wxString GetLineString () const
 
virtual wxString GetType () const
 
virtual wxString GetInfo () const
 
virtual bool IsEnabled () const
 
virtual bool IsVisibleInEditor () const
 
virtual bool IsTemporary () const
 
- Public Member Functions inherited from cbBreakpoint
virtual ~cbBreakpoint ()
 

Public Attributes

BreakpointType type
 The type of this breakpoint. More...
 
wxString filename
 The filename for the breakpoint (kept as relative). More...
 
wxString filenameAsPassed
 The filename for the breakpoint as passed to the debugger (i.e. full filename). More...
 
int line
 The line for the breakpoint. More...
 
long int index
 The breakpoint number. Set automatically. Don't write to it. More...
 
bool temporary
 Is this a temporary (one-shot) breakpoint? More...
 
bool enabled
 Is the breakpoint enabled? More...
 
bool active
 Is the breakpoint active? (currently unused) More...
 
bool useIgnoreCount
 Should this breakpoint be ignored for the first X passes? (x == ignoreCount) More...
 
int ignoreCount
 The number of passes before this breakpoint should hit. useIgnoreCount must be true. More...
 
bool useCondition
 Should this breakpoint hit only if a specific condition is met? More...
 
bool wantsCondition
 Evaluate condition for pending breakpoints at first stop ! More...
 
wxString condition
 The condition that must be met for the breakpoint to hit. useCondition must be true. More...
 
wxString func
 The function to set the breakpoint. If this is set, it is preferred over the filename/line combination. More...
 
unsigned long int address
 The actual breakpoint address. This is read back from the debugger. Don't write to it. More...
 
bool alreadySet
 Is this already set? Used to mark temporary breakpoints for removal. More...
 
wxString lineText
 Optionally, the breakpoint line's text (used by GDB for setting breapoints on ctors/dtors). More...
 
wxString breakAddress
 Valid only for type==bptData: address to break when read/written. More...
 
bool breakOnRead
 Valid only for type==bptData: break when memory is read from. More...
 
bool breakOnWrite
 Valid only for type==bptData: break when memory is written to. More...
 
void * userData
 Custom user data. More...
 

Detailed Description

Debugger breakpoint interface.

This is the struct used for debugger breakpoints.

Definition at line 128 of file debugger_defs.h.

Member Enumeration Documentation

◆ BreakpointType

Enumerator
bptCode 

Normal file/line breakpoint.

bptFunction 

Function signature breakpoint.

bptData 

Data breakpoint.

Definition at line 130 of file debugger_defs.h.

Constructor & Destructor Documentation

◆ DebuggerBreakpoint()

DebuggerBreakpoint::DebuggerBreakpoint ( )
inline

Constructor.

Sets default values for members.

Definition at line 140 of file debugger_defs.h.

Member Function Documentation

◆ GetInfo()

wxString DebuggerBreakpoint::GetInfo ( ) const
virtual

Implements cbBreakpoint.

Definition at line 128 of file debugger_defs.cpp.

References _(), wxString::empty(), wxString::Format(), wxEmptyString, and wxT.

◆ GetLine()

int DebuggerBreakpoint::GetLine ( ) const
virtual

Implements cbBreakpoint.

Definition at line 103 of file debugger_defs.cpp.

◆ GetLineString()

wxString DebuggerBreakpoint::GetLineString ( ) const
virtual

Implements cbBreakpoint.

Definition at line 108 of file debugger_defs.cpp.

References wxString::Format(), wxEmptyString, and wxT.

◆ GetLocation()

wxString DebuggerBreakpoint::GetLocation ( ) const
virtual

Implements cbBreakpoint.

Definition at line 88 of file debugger_defs.cpp.

References _().

◆ GetType()

wxString DebuggerBreakpoint::GetType ( ) const
virtual

Implements cbBreakpoint.

Definition at line 113 of file debugger_defs.cpp.

References _().

◆ IsEnabled()

bool DebuggerBreakpoint::IsEnabled ( ) const
virtual

Implements cbBreakpoint.

Definition at line 167 of file debugger_defs.cpp.

◆ IsTemporary()

bool DebuggerBreakpoint::IsTemporary ( ) const
virtual

Implements cbBreakpoint.

Definition at line 177 of file debugger_defs.cpp.

◆ IsVisibleInEditor()

bool DebuggerBreakpoint::IsVisibleInEditor ( ) const
virtual

Implements cbBreakpoint.

Definition at line 172 of file debugger_defs.cpp.

◆ SetEnabled()

void DebuggerBreakpoint::SetEnabled ( bool  flag)
virtual

Implements cbBreakpoint.

Definition at line 83 of file debugger_defs.cpp.

Member Data Documentation

◆ active

bool DebuggerBreakpoint::active

Is the breakpoint active? (currently unused)

Definition at line 176 of file debugger_defs.h.

◆ address

unsigned long int DebuggerBreakpoint::address

The actual breakpoint address. This is read back from the debugger. Don't write to it.

Definition at line 183 of file debugger_defs.h.

◆ alreadySet

bool DebuggerBreakpoint::alreadySet

Is this already set? Used to mark temporary breakpoints for removal.

Definition at line 184 of file debugger_defs.h.

◆ breakAddress

wxString DebuggerBreakpoint::breakAddress

Valid only for type==bptData: address to break when read/written.

Definition at line 186 of file debugger_defs.h.

◆ breakOnRead

bool DebuggerBreakpoint::breakOnRead

Valid only for type==bptData: break when memory is read from.

Definition at line 187 of file debugger_defs.h.

◆ breakOnWrite

bool DebuggerBreakpoint::breakOnWrite

Valid only for type==bptData: break when memory is written to.

Definition at line 188 of file debugger_defs.h.

◆ condition

wxString DebuggerBreakpoint::condition

The condition that must be met for the breakpoint to hit. useCondition must be true.

Definition at line 181 of file debugger_defs.h.

Referenced by EditBreakpointDlg::EndModal().

◆ enabled

bool DebuggerBreakpoint::enabled

Is the breakpoint enabled?

Definition at line 175 of file debugger_defs.h.

Referenced by DebuggerGDB::EnableBreakpoint(), and EditBreakpointDlg::EndModal().

◆ filename

wxString DebuggerBreakpoint::filename

The filename for the breakpoint (kept as relative).

Definition at line 170 of file debugger_defs.h.

Referenced by DebuggerState::HasBreakpoint().

◆ filenameAsPassed

wxString DebuggerBreakpoint::filenameAsPassed

The filename for the breakpoint as passed to the debugger (i.e. full filename).

Definition at line 171 of file debugger_defs.h.

Referenced by DebuggerState::HasBreakpoint().

◆ func

wxString DebuggerBreakpoint::func

The function to set the breakpoint. If this is set, it is preferred over the filename/line combination.

Definition at line 182 of file debugger_defs.h.

◆ ignoreCount

int DebuggerBreakpoint::ignoreCount

The number of passes before this breakpoint should hit. useIgnoreCount must be true.

Definition at line 178 of file debugger_defs.h.

Referenced by EditBreakpointDlg::EndModal().

◆ index

long int DebuggerBreakpoint::index

The breakpoint number. Set automatically. Don't write to it.

Definition at line 173 of file debugger_defs.h.

◆ line

int DebuggerBreakpoint::line

The line for the breakpoint.

Definition at line 172 of file debugger_defs.h.

Referenced by DebuggerState::HasBreakpoint().

◆ lineText

wxString DebuggerBreakpoint::lineText

Optionally, the breakpoint line's text (used by GDB for setting breapoints on ctors/dtors).

Definition at line 185 of file debugger_defs.h.

◆ temporary

bool DebuggerBreakpoint::temporary

Is this a temporary (one-shot) breakpoint?

Definition at line 174 of file debugger_defs.h.

Referenced by DebuggerState::HasBreakpoint().

◆ type

BreakpointType DebuggerBreakpoint::type

The type of this breakpoint.

Definition at line 169 of file debugger_defs.h.

◆ useCondition

bool DebuggerBreakpoint::useCondition

Should this breakpoint hit only if a specific condition is met?

Definition at line 179 of file debugger_defs.h.

Referenced by EditBreakpointDlg::EndModal().

◆ useIgnoreCount

bool DebuggerBreakpoint::useIgnoreCount

Should this breakpoint be ignored for the first X passes? (x == ignoreCount)

Definition at line 177 of file debugger_defs.h.

Referenced by EditBreakpointDlg::EndModal().

◆ userData

void* DebuggerBreakpoint::userData

Custom user data.

Definition at line 189 of file debugger_defs.h.

◆ wantsCondition

bool DebuggerBreakpoint::wantsCondition

Evaluate condition for pending breakpoints at first stop !

Definition at line 180 of file debugger_defs.h.


The documentation for this struct was generated from the following files: