Code::Blocks  SVN r11506
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DebuggerState Class Reference

#include <debuggerstate.h>

Collaboration diagram for DebuggerState:

Public Member Functions

 DebuggerState (DebuggerGDB *plugin)
 
 ~DebuggerState ()
 
BreakpointsList const & GetBreakpoints () const
 
bool StartDriver (ProjectBuildTarget *target)
 
void StopDriver ()
 
bool HasDriver () const
 Check so see if Driver exists before getting it. More...
 
DebuggerDriverGetDriver ()
 Will always return a driver, or throw a code assertion error. More...
 
const DebuggerDriverGetDriver () const
 
void CleanUp ()
 
int AddBreakpoint (cb::shared_ptr< DebuggerBreakpoint > bp)
 
cb::shared_ptr< DebuggerBreakpointAddBreakpoint (const wxString &file, int line, bool temp=false, const wxString &lineText=wxEmptyString)
 
cb::shared_ptr< DebuggerBreakpointAddBreakpoint (const wxString &dataAddr, bool onRead=false, bool onWrite=true)
 
void RemoveBreakpoint (int idx, bool removeFromDriver=true)
 
void RemoveBreakpoint (cb::shared_ptr< DebuggerBreakpoint > bp, bool removeFromDriver=true)
 
void RemoveAllBreakpoints ()
 
void RemoveAllProjectBreakpoints (cbProject *prj)
 
void ShiftBreakpoint (cb::shared_ptr< DebuggerBreakpoint > bp, int nroflines)
 
int HasBreakpoint (const wxString &file, int line, bool temp)
 
cb::shared_ptr< DebuggerBreakpointGetBreakpoint (int idx)
 
cb::shared_ptr< DebuggerBreakpointGetBreakpointByNumber (int num)
 
const cb::shared_ptr< DebuggerBreakpointGetBreakpointByNumber (int num) const
 
void ResetBreakpoint (cb::shared_ptr< DebuggerBreakpoint > bp)
 
void ApplyBreakpoints ()
 

Protected Member Functions

wxString ConvertToValidFilename (const wxString &filename)
 

Protected Attributes

DebuggerGDBm_pPlugin
 
DebuggerDriverm_pDriver
 
BreakpointsList m_Breakpoints
 

Detailed Description

Definition at line 16 of file debuggerstate.h.

Constructor & Destructor Documentation

◆ DebuggerState()

DebuggerState::DebuggerState ( DebuggerGDB plugin)

Definition at line 28 of file debuggerstate.cpp.

◆ ~DebuggerState()

DebuggerState::~DebuggerState ( )

Definition at line 34 of file debuggerstate.cpp.

Member Function Documentation

◆ AddBreakpoint() [1/3]

int DebuggerState::AddBreakpoint ( cb::shared_ptr< DebuggerBreakpoint bp)

◆ AddBreakpoint() [2/3]

cb::shared_ptr< DebuggerBreakpoint > DebuggerState::AddBreakpoint ( const wxString file,
int  line,
bool  temp = false,
const wxString lineText = wxEmptyString 
)

◆ AddBreakpoint() [3/3]

cb::shared_ptr< DebuggerBreakpoint > DebuggerState::AddBreakpoint ( const wxString dataAddr,
bool  onRead = false,
bool  onWrite = true 
)

Definition at line 129 of file debuggerstate.cpp.

References AddBreakpoint(), and DebuggerBreakpoint::bptData.

◆ ApplyBreakpoints()

void DebuggerState::ApplyBreakpoints ( )

◆ CleanUp()

void DebuggerState::CleanUp ( )

◆ ConvertToValidFilename()

wxString DebuggerState::ConvertToValidFilename ( const wxString filename)
protected

Definition at line 96 of file debuggerstate.cpp.

References _T, and wxString::Replace().

Referenced by AddBreakpoint(), GetBreakpoints(), and HasBreakpoint().

◆ GetBreakpoint()

cb::shared_ptr< DebuggerBreakpoint > DebuggerState::GetBreakpoint ( int  idx)

Definition at line 243 of file debuggerstate.cpp.

References m_Breakpoints.

Referenced by GetBreakpoints(), and GDB_driver::ParseOutput().

◆ GetBreakpointByNumber() [1/2]

cb::shared_ptr< DebuggerBreakpoint > DebuggerState::GetBreakpointByNumber ( int  num)

Definition at line 250 of file debuggerstate.cpp.

References m_Breakpoints.

Referenced by GetBreakpoints(), and GDB_driver::ParseOutput().

◆ GetBreakpointByNumber() [2/2]

const cb::shared_ptr< DebuggerBreakpoint > DebuggerState::GetBreakpointByNumber ( int  num) const

Definition at line 260 of file debuggerstate.cpp.

References m_Breakpoints.

◆ GetBreakpoints()

BreakpointsList const& DebuggerState::GetBreakpoints ( ) const
inline

◆ GetDriver() [1/2]

DebuggerDriver * DebuggerState::GetDriver ( )

◆ GetDriver() [2/2]

const DebuggerDriver * DebuggerState::GetDriver ( ) const

Definition at line 77 of file debuggerstate.cpp.

References cbAssert, m_pDriver, and NULL.

◆ HasBreakpoint()

int DebuggerState::HasBreakpoint ( const wxString file,
int  line,
bool  temp 
)

◆ HasDriver()

bool DebuggerState::HasDriver ( ) const

◆ RemoveAllBreakpoints()

void DebuggerState::RemoveAllBreakpoints ( )

◆ RemoveAllProjectBreakpoints()

void DebuggerState::RemoveAllProjectBreakpoints ( cbProject prj)

◆ RemoveBreakpoint() [1/2]

void DebuggerState::RemoveBreakpoint ( int  idx,
bool  removeFromDriver = true 
)

◆ RemoveBreakpoint() [2/2]

void DebuggerState::RemoveBreakpoint ( cb::shared_ptr< DebuggerBreakpoint bp,
bool  removeFromDriver = true 
)

Definition at line 156 of file debuggerstate.cpp.

References m_Breakpoints, and RemoveBreakpoint().

◆ ResetBreakpoint()

void DebuggerState::ResetBreakpoint ( cb::shared_ptr< DebuggerBreakpoint bp)

◆ ShiftBreakpoint()

void DebuggerState::ShiftBreakpoint ( cb::shared_ptr< DebuggerBreakpoint bp,
int  nroflines 
)

◆ StartDriver()

bool DebuggerState::StartDriver ( ProjectBuildTarget target)

◆ StopDriver()

void DebuggerState::StopDriver ( )

Definition at line 59 of file debuggerstate.cpp.

References m_Breakpoints, and m_pDriver.

Referenced by CleanUp(), GetBreakpoints(), and DebuggerGDB::OnGDBTerminated().

Member Data Documentation

◆ m_Breakpoints

BreakpointsList DebuggerState::m_Breakpoints
protected

◆ m_pDriver

DebuggerDriver* DebuggerState::m_pDriver
protected

◆ m_pPlugin

DebuggerGDB* DebuggerState::m_pPlugin
protected

Definition at line 59 of file debuggerstate.h.

Referenced by ApplyBreakpoints(), and StartDriver().


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