Code::Blocks
SVN r11506
|
#include <debuggergdb.h>
Public Member Functions | |
DebuggerGDB () | |
~DebuggerGDB () | |
cbConfigurationPanel * | GetProjectConfigurationPanel (wxWindow *parent, cbProject *project) |
void | OnAttachReal () |
void | OnReleaseReal (bool appShutDown) |
bool | SupportsFeature (cbDebuggerFeature::Flags flag) |
cbDebuggerConfiguration * | LoadConfig (const ConfigManagerWrapper &config) |
DebuggerConfiguration & | GetActiveConfigEx () |
void | RunCommand (int cmd) |
cb::shared_ptr< cbBreakpoint > | AddBreakpoint (const wxString &filename, int line) |
Request to add a breakpoint. More... | |
cb::shared_ptr< cbBreakpoint > | AddDataBreakpoint (const wxString &dataExpression) |
Request to add a breakpoint based on a data expression. More... | |
int | GetBreakpointsCount () const |
cb::shared_ptr< cbBreakpoint > | GetBreakpoint (int index) |
cb::shared_ptr< const cbBreakpoint > | GetBreakpoint (int index) const |
void | UpdateBreakpoint (cb::shared_ptr< cbBreakpoint > breakpoint) |
void | DeleteBreakpoint (cb::shared_ptr< cbBreakpoint > breakpoint) |
void | DeleteAllBreakpoints () |
void | ShiftBreakpoint (int index, int lines_to_shift) |
void | EnableBreakpoint (cb::shared_ptr< cbBreakpoint > breakpoint, bool enable) |
int | GetStackFrameCount () const |
cb::shared_ptr< const cbStackFrame > | GetStackFrame (int index) const |
void | SwitchToFrame (int number) |
int | GetActiveStackFrame () const |
int | GetThreadsCount () const |
cb::shared_ptr< const cbThread > | GetThread (int index) const |
bool | SwitchToThread (int thread_number) |
bool | Debug (bool breakOnEntry) |
Start a new debugging process. More... | |
void | Continue () |
Continue running the debugged program. More... | |
void | Next () |
Execute the next instruction and return control to the debugger. More... | |
void | NextInstruction () |
Execute the next instruction and return control to the debugger. More... | |
void | StepIntoInstruction () |
Execute the next instruction and return control to the debugger, if the instruction is a function call step into it. More... | |
void | Step () |
Execute the next instruction, stepping into function calls if needed, and return control to the debugger. More... | |
void | StepOut () |
Execute the next instruction, stepping out of function calls if needed, and return control to the debugger. More... | |
bool | RunToCursor (const wxString &filename, int line, const wxString &line_text) |
Run the debugged program until it reaches the cursor at the current editor. More... | |
void | SetNextStatement (const wxString &filename, int line) |
Sets the position of the Program counter to the specified filename:line. More... | |
void | Break () |
Break the debugging process (stop the debuggee for debugging). More... | |
void | Stop () |
Stop the debugging process (exit debugging). More... | |
bool | Validate (const wxString &line, const char cb) |
bool | IsRunning () const |
Is the plugin currently debugging? More... | |
bool | IsStopped () const |
Is the plugin stopped on breakpoint? More... | |
bool | IsBusy () const |
Is the plugin processing something? More... | |
bool | IsTemporaryBreak () const |
int | GetExitCode () const |
Get the exit code of the last debug process. More... | |
cb::shared_ptr< cbWatch > | AddWatch (const wxString &symbol) |
void | DeleteWatch (cb::shared_ptr< cbWatch > watch) |
bool | HasWatch (cb::shared_ptr< cbWatch > watch) |
void | ShowWatchProperties (cb::shared_ptr< cbWatch > watch) |
bool | SetWatchValue (cb::shared_ptr< cbWatch > watch, const wxString &value) |
void | ExpandWatch (cb::shared_ptr< cbWatch > watch) |
void | CollapseWatch (cb::shared_ptr< cbWatch > watch) |
void | UpdateWatch (cb::shared_ptr< cbWatch > watch) |
void | AddWatchNoUpdate (const cb::shared_ptr< GDBWatch > &watch) |
void | OnWatchesContextMenu (wxMenu &menu, const cbWatch &watch, wxObject *property, int &disabledMenus) |
void | GetCurrentPosition (wxString &filename, int &line) |
void | RequestUpdate (DebugWindows window) |
void | AttachToProcess (const wxString &pid) |
void | DetachFromProcess () |
bool | IsAttachedToProcess () const |
void | SendCommand (const wxString &cmd, bool debugLog) |
void | DoSendCommand (const wxString &cmd) |
DebuggerState & | GetState () |
void | OnConfigurationChange (bool isActive) |
Called when the user clicks OK in Settings -> Debugger... More... | |
wxArrayString & | GetSearchDirs (cbProject *prj) |
RemoteDebuggingMap & | GetRemoteDebuggingMap (cbProject *project=0) |
void | OnProjectLoadingHook (cbProject *project, TiXmlElement *elem, bool loading) |
void | OnValueTooltip (const wxString &token, const wxRect &evalRect) |
bool | ShowValueTooltip (int style) |
void | DebuggeeContinued () |
void | DetermineLanguage () |
Public Member Functions inherited from cbDebuggerPlugin | |
cbDebuggerPlugin (const wxString &guiName, const wxString &settingsName) | |
void | OnAttach () override |
Any descendent plugin should override this virtual method and perform any necessary initialization. More... | |
void | OnRelease (bool appShutDown) override |
void | BuildMenu (wxMenuBar *menuBar) override |
void | BuildModuleMenu (const ModuleType type, wxMenu *menu, const FileTreeData *data=nullptr) override |
bool | BuildToolBar (wxToolBar *toolBar) override |
virtual void | EditorLinesAddedOrRemoved (cbEditor *editor, int startline, int lines) |
Notify the debugger that lines were added or removed in an editor. More... | |
virtual bool | ToolMenuEnabled () const |
cbDebuggerConfiguration & | GetActiveConfig () |
void | SetActiveConfig (int index) |
int | GetIndexOfActiveConfig () const |
virtual wxString | GetEditorWordAtCaret (const wxPoint *mousePosition=NULL) |
void | ClearActiveMarkFromAllEditors () |
SyncEditorResult | SyncEditor (const wxString &filename, int line, bool setMarker=true) |
void | BringCBToFront () |
void | ShowLog (bool clear) |
void | Log (const wxString &msg, Logger::level level=Logger::info) |
void | DebugLog (const wxString &msg, Logger::level level=Logger::info) |
bool | HasDebugLog () const |
void | ClearLog () |
void | SetupLog (int normalIndex) |
wxString | GetGUIName () const |
wxString | GetSettingsName () const |
Public Member Functions inherited from cbPlugin | |
cbPlugin () | |
In default cbPlugin's constructor the associated PluginInfo structure is filled with default values. More... | |
~cbPlugin () override | |
cbPlugin destructor. More... | |
virtual PluginType | GetType () const |
The plugin must return its type on request. More... | |
virtual int | GetConfigurationPriority () const |
Return the plugin's configuration priority. More... | |
virtual int | GetConfigurationGroup () const |
Return the configuration group for this plugin. More... | |
virtual cbConfigurationPanel * | GetConfigurationPanel (cb_optional wxWindow *parent) |
Return plugin's configuration panel. More... | |
virtual cbConfigurationPanel * | GetProjectConfigurationPanel (cb_optional wxWindow *parent, cb_optional cbProject *project) |
Return plugin's configuration panel for projects. More... | |
virtual void | BuildMenu (cb_optional wxMenuBar *menuBar) |
This method is called by Code::Blocks and is used by the plugin to add any menu items it needs on Code::Blocks's menu bar. More... | |
virtual void | BuildModuleMenu (cb_optional const ModuleType type, cb_optional wxMenu *menu, cb_optional const FileTreeData *data=nullptr) |
This method is called by Code::Blocks core modules (EditorManager, ProjectManager etc) and is used by the plugin to add any menu items it needs in the module's popup menu. More... | |
virtual bool | BuildToolBar (cb_optional wxToolBar *toolBar) |
This method is called by Code::Blocks and is used by the plugin to add any toolbar items it needs on Code::Blocks's toolbar. More... | |
virtual int | GetToolBarPriority () |
This method return the priority of the plugin's toolbar, the less value indicates a more preceding position when C::B starts with no configuration file. More... | |
virtual void | CreateStatusField (cbStatusBar *statusBar) |
This method is called by Code::Blocks and is used by the plugin to add a field on Code::Blocks's statusbar. More... | |
bool | IsAttached () const |
See whether this plugin is attached or not. More... | |
virtual bool | CanDetach () const |
See whether this plugin can be detached (unloaded) or not. More... | |
Static Public Member Functions | |
static void | ConvertToGDBFriendly (wxString &str) |
static void | ConvertToGDBFile (wxString &str) |
static void | ConvertToGDBDirectory (wxString &str, wxString base=_T(""), bool relative=true) |
static void | StripQuotes (wxString &str) |
Protected Member Functions | |
cbProject * | GetProject () |
void | ResetProject () |
void | ConvertDirectory (wxString &str, wxString base, bool relative) |
void | CleanupWhenProjectClosed (cbProject *project) |
bool | CompilerFinished (bool compilerFailed, StartType startType) |
Called when the compilation has finished. More... | |
void | AddSourceDir (const wxString &dir) |
Protected Member Functions inherited from cbDebuggerPlugin | |
void | SwitchToDebuggingLayout () |
void | SwitchToPreviousLayout () |
bool | GetDebuggee (wxString &pathToDebuggee, wxString &workingDirectory, ProjectBuildTarget *target) |
bool | EnsureBuildUpToDate (StartType startType) |
bool | WaitingCompilerToFinish () const |
int | RunNixConsole (wxString &consoleTty) |
void | MarkAsStopped () |
Protected Member Functions inherited from cbPlugin | |
virtual void | OnRelease (cb_optional bool appShutDown) |
Any descendent plugin should override this virtual method and perform any necessary de-initialization. More... | |
virtual void | NotImplemented (const wxString &log) const |
This method logs a "Not implemented" message and is provided for convenience only. More... | |
Private Types | |
typedef std::map< cbProject *, wxArrayString > | SearchDirsMap |
typedef std::map< cbProject *, RemoteDebuggingMap > | ProjectRemoteDebuggingMap |
Private Attributes | |
DebuggerState | m_State |
PipedProcess * | m_pProcess |
bool | m_LastExitCode |
int | m_Pid |
int | m_PidToAttach |
wxRect | m_EvalRect |
wxTimer | m_TimerPollDebugger |
bool | m_NoDebugInfo |
bool | m_StoppedOnSignal |
cbProject * | m_pProject |
wxString | m_ActiveBuildTarget |
SearchDirsMap | m_SearchDirs |
ProjectRemoteDebuggingMap | m_RemoteDebugging |
int | m_HookId |
bool | m_bIsConsole |
bool | m_stopDebuggerConsoleClosed |
int | m_nConsolePid |
bool | m_Canceled |
bool | m_TemporaryBreak |
WatchesContainer | m_watches |
cb::shared_ptr< GDBWatch > | m_localsWatch |
cb::shared_ptr< GDBWatch > | m_funcArgsWatch |
wxString | m_watchToDereferenceSymbol |
wxObject * | m_watchToDereferenceProperty |
int | m_printElements |
Friends | |
struct | TestIfBelongToProject |
Additional Inherited Members | |
Public Types inherited from cbDebuggerPlugin | |
enum | DebugWindows { Backtrace, CPURegisters, Disassembly, ExamineMemory, Threads, Watches } |
enum | SyncEditorResult { SyncOk = 0, SyncFileNotFound, SyncFileUnknown } |
Protected Types inherited from cbDebuggerPlugin | |
enum | StartType { StartTypeUnknown = 0, StartTypeRun, StartTypeStepInto } |
Protected Attributes inherited from cbPlugin | |
PluginType | m_Type |
Holds the plugin's type. More... | |
bool | m_IsAttached |
Holds the "attached" state. More... | |
Definition at line 32 of file debuggergdb.h.
|
private |
Definition at line 200 of file debuggergdb.h.
|
private |
Definition at line 197 of file debuggergdb.h.
DebuggerGDB::DebuggerGDB | ( | ) |
Definition at line 164 of file debuggergdb.cpp.
References _T, LibLoader::LoadLibrary(), Manager::LoadResource(), and NotifyMissingFile().
DebuggerGDB::~DebuggerGDB | ( | ) |
Definition at line 199 of file debuggergdb.cpp.
|
virtual |
Request to add a breakpoint.
file | The file to add the breakpoint based on a file/line pair. |
line | The line number to put the breakpoint in file . |
Implements cbDebuggerPlugin.
Definition at line 1371 of file debuggergdb.cpp.
References DebuggerState::AddBreakpoint(), Continue(), DoBreak(), IsStopped(), and m_State.
|
virtual |
Request to add a breakpoint based on a data expression.
dataExpression | The data expression to add the breakpoint. |
Implements cbDebuggerPlugin.
Definition at line 1385 of file debuggergdb.cpp.
References DebuggerState::AddBreakpoint(), Manager::Get(), DataBreakpointDlg::GetDataExpression(), DataBreakpointDlg::GetSelection(), m_State, PlaceWindow(), wxDialog::ShowModal(), and wxID_OK.
|
protected |
Definition at line 986 of file debuggergdb.cpp.
References _(), _T, DebuggerDriver::AddDirectory(), ConvertToGDBDirectory(), Manager::Get(), DebuggerState::GetDriver(), Manager::GetMacrosManager(), DebuggerState::HasDriver(), wxString::IsEmpty(), cbDebuggerPlugin::Log(), m_State, and MacrosManager::ReplaceEnvVars().
Referenced by DoDebug(), and ResetProject().
Implements cbDebuggerPlugin.
Definition at line 2105 of file debuggergdb.cpp.
References CleanStringValue(), DebuggerState::GetDriver(), m_pProcess, m_State, m_watches, and DebuggerDriver::UpdateWatch().
Referenced by GetExitCode().
void DebuggerGDB::AddWatchNoUpdate | ( | const cb::shared_ptr< GDBWatch > & | watch | ) |
Definition at line 2116 of file debuggergdb.cpp.
References m_watches.
Referenced by GetExitCode(), and GdbCmd_TooltipEvaluation::ParseOutput().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2281 of file debuggergdb.cpp.
References Debug(), wxString::IsEmpty(), m_PidToAttach, and wxString::ToLong().
Referenced by GetExitCode().
|
virtual |
Break the debugging process (stop the debuggee for debugging).
Implements cbDebuggerPlugin.
Definition at line 1610 of file debuggergdb.cpp.
References DoBreak().
Referenced by Stop().
|
private |
Definition at line 1948 of file debuggergdb.cpp.
References _(), m_nConsolePid, m_stopDebuggerConsoleClosed, AnnoyingDialog::rtNO, AnnoyingDialog::ShowModal(), Stop(), wxART_QUESTION, wxKill(), and wxSIGNONE.
Referenced by OnTimer(), and ResetProject().
|
protectedvirtual |
Implements cbDebuggerPlugin.
Definition at line 1993 of file debuggergdb.cpp.
References DeleteAllProjectBreakpoints(), Manager::Get(), DebuggerManager::GetBreakpointDialog(), Manager::GetDebuggerManager(), GetRemoteDebuggingMap(), GetSearchDirs(), and cbBreakpointsDlg::Reload().
Referenced by ResetProject().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2215 of file debuggergdb.cpp.
Referenced by GetExitCode().
|
protectedvirtual |
Called when the compilation has finished.
The compilation is started when EnsureBuildUpToDate is called.
compilerFailed | the compilation failed for some reason. |
startType | it is the same value given to the Debug method, when the debugger session was started. |
Reimplemented from cbDebuggerPlugin.
Definition at line 2302 of file debuggergdb.cpp.
References DoDebug(), cbDebuggerPlugin::StartTypeStepInto, and cbDebuggerPlugin::StartTypeUnknown.
Referenced by ResetProject().
|
virtual |
Continue running the debugged program.
Implements cbDebuggerPlugin.
Definition at line 1531 of file debuggergdb.cpp.
References CMD_CONTINUE, and RunCommand().
Referenced by AddBreakpoint(), DeleteAllBreakpoints(), DeleteBreakpoint(), EnableBreakpoint(), RunToCursor(), and UpdateBreakpoint().
|
protectedvirtual |
Implements cbDebuggerPlugin.
Definition at line 1028 of file debuggergdb.cpp.
References ConvertToGDBDirectory().
Referenced by ResetProject().
|
static |
Definition at line 1035 of file debuggergdb.cpp.
References _T, wxString::AfterFirst(), wxString::BeforeFirst(), wxString::Clear(), wxString::Contains(), ConvertToGDBFriendly(), wxString::Find(), wxString::GetChar(), wxFileName::GetShortPath(), wxString::IsEmpty(), wxString::Length(), wxString::Mid(), StripQuotes(), and wxNOT_FOUND.
Referenced by AddSourceDir(), ConvertDirectory(), ConvertToGDBFile(), DoDebug(), GetState(), and OnAddSymbolFile().
|
static |
Definition at line 1020 of file debuggergdb.cpp.
References ConvertToGDBDirectory(), wxFileName::GetFullName(), and wxFileName::GetPath().
Referenced by GetState().
|
static |
Definition at line 1005 of file debuggergdb.cpp.
References _T, wxString::Find(), wxString::GetChar(), wxString::IsEmpty(), wxString::Replace(), and UnixFilename().
Referenced by ConvertToGDBDirectory(), and GetState().
|
virtual |
Start a new debugging process.
Implements cbDebuggerPlugin.
Definition at line 667 of file debuggergdb.cpp.
References DoDebug(), cbDebuggerPlugin::EnsureBuildUpToDate(), Manager::Get(), cbProject::GetActiveBuildTarget(), ProjectManager::GetActiveProject(), Manager::GetProjectManager(), DebuggerState::HasDriver(), wxString::IsEmpty(), m_ActiveBuildTarget, m_Canceled, m_NoDebugInfo, m_PidToAttach, m_pProcess, m_pProject, m_State, cbDebuggerPlugin::StartTypeRun, cbDebuggerPlugin::StartTypeStepInto, and cbDebuggerPlugin::WaitingCompilerToFinish().
Referenced by AttachToProcess(), and RunToCursor().
void DebuggerGDB::DebuggeeContinued | ( | ) |
Definition at line 2033 of file debuggergdb.cpp.
References m_TemporaryBreak.
Referenced by GetState(), and DebuggerDriver::NotifyDebuggeeContinued().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1491 of file debuggergdb.cpp.
References Continue(), DoBreak(), IsStopped(), m_State, and DebuggerState::RemoveAllBreakpoints().
|
private |
Definition at line 1526 of file debuggergdb.cpp.
References m_State, and DebuggerState::RemoveAllProjectBreakpoints().
Referenced by CleanupWhenProjectClosed(), and ResetProject().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1479 of file debuggergdb.cpp.
References Continue(), DoBreak(), IsStopped(), m_State, and DebuggerState::RemoveBreakpoint().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2121 of file debuggergdb.cpp.
References m_watches.
Referenced by GetExitCode().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2290 of file debuggergdb.cpp.
References DebuggerDriver::Detach(), DebuggerState::GetDriver(), m_PidToAttach, m_State, and DebuggerDriver::Stop().
Referenced by GetExitCode().
void DebuggerGDB::DetermineLanguage | ( | ) |
Definition at line 2319 of file debuggergdb.cpp.
References DebuggerDriver::DetermineLanguage(), DebuggerState::GetDriver(), DebuggerState::HasDriver(), and m_State.
Referenced by GetState(), and GDB_driver::UpdateWatches().
|
private |
Definition at line 1615 of file debuggergdb.cpp.
References _(), cbEVT_DEBUGGER_PAUSED, cbMessageBox(), cbDebuggerPlugin::DebugLog(), Logger::error, wxProcess::Exists(), F(), wxString::Format(), Manager::Get(), DebuggerDriver::GetChildPID(), DebuggerState::GetDriver(), Manager::GetPluginManager(), IsStopped(), cbDebuggerPlugin::Log(), m_Pid, m_pProcess, m_State, m_TemporaryBreak, PluginManager::NotifyPlugins(), NULL, DebuggerDriver::UseDebugBreakProcess(), Logger::warning, wxICON_WARNING, wxKill(), wxOK, wxSIGINT, and wxT.
Referenced by AddBreakpoint(), Break(), DeleteAllBreakpoints(), DeleteBreakpoint(), EnableBreakpoint(), ResetProject(), and UpdateBreakpoint().
|
private |
Definition at line 707 of file debuggergdb.cpp.
References _(), _T, DebuggerConfiguration::AddOtherProjectDirs, AddSourceDir(), DebuggerState::ApplyBreakpoints(), DebuggerDriver::Attach(), cbProject::BuildTargetValid(), cbEVT_DEBUGGER_STARTED, cbMessageBox(), DebuggerDriver::ClearDirectories(), ConvertToGDBDirectory(), cbDebuggerPlugin::DebugLog(), wxString::empty(), Logger::error, wxString::Format(), Manager::Get(), GetActiveConfigEx(), CompileTargetBase::GetBasePath(), cbProject::GetBuildTarget(), DebuggerDriver::GetCommandLine(), cbProject::GetCommonTopLevelPath(), CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), cbDebuggerPlugin::GetDebuggee(), DebuggerConfiguration::GetDebuggerExecutable(), DebuggerDriver::GetDebuggersWorkingDirectory(), CompilerFactory::GetDefaultCompiler(), DebuggerState::GetDriver(), CompileTargetBase::GetExecutionParameters(), CompilerCommandGenerator::GetLinkerSearchDirs(), Manager::GetPluginManager(), Manager::GetProjectManager(), ProjectManager::GetProjects(), GetRemoteDebuggingMap(), GetSearchDirs(), GetStringFromArray(), CompileTargetBase::GetTargetType(), CompileTargetBase::GetTitle(), ProjectBuildTarget::GetUseConsoleRunner(), HandlerRoutine(), DebuggerState::HasDriver(), wxString::IsEmpty(), LaunchProcess(), wxString::Length(), cbDebuggerPlugin::Log(), m_ActiveBuildTarget, m_bIsConsole, m_Canceled, m_nConsolePid, m_PidToAttach, m_pProcess, m_pProject, m_printElements, m_State, m_stopDebuggerConsoleClosed, m_TimerPollDebugger, RemoteDebugging::MergeWith(), wxString::Mid(), PluginManager::NotifyPlugins(), DebuggerDriver::Prepare(), wxString::Printf(), DebuggerDriver::QueueCommand(), cbDebuggerPlugin::RunNixConsole(), cbProject::SelectTarget(), DebuggerDriver::SetArguments(), DebuggerDriver::SetWorkingDirectory(), RemoteDebugging::skipLDpath, wxTimer::Start(), DebuggerDriver::Start(), DebuggerState::StartDriver(), cbDebuggerPlugin::SwitchToDebuggingLayout(), wxString::Trim(), ttCommandsOnly, ttConsoleOnly, DebuggerDriver::UseDebugBreakProcess(), wxString::wx_str(), wxEmptyString, wxGetEnv(), wxICON_ERROR, wxICON_INFORMATION, wxMilliSleep(), wxSetEnv(), wxT, and Manager::Yield().
Referenced by CompilerFinished(), Debug(), and ResetProject().
void DebuggerGDB::DoSendCommand | ( | const wxString & | cmd | ) |
Definition at line 1135 of file debuggergdb.cpp.
References cbDebuggerPlugin::DebugLog(), cbDebuggerPlugin::HasDebugLog(), IsStopped(), m_pProcess, PipedProcess::SendString(), and wxT.
Referenced by GetExitCode(), DebuggerDriver::RunQueue(), and SendCommand().
|
private |
Definition at line 493 of file debuggergdb.cpp.
References cbWatchesDlg::AddSpecialWatch(), Manager::Get(), GetActiveConfigEx(), Manager::GetDebuggerManager(), DebuggerState::GetDriver(), DebuggerConfiguration::GetFlag(), DebuggerManager::GetWatchesDialog(), m_funcArgsWatch, m_localsWatch, m_pProcess, m_State, m_watches, DebuggerDriver::UpdateWatches(), DebuggerConfiguration::WatchFuncArgs, DebuggerConfiguration::WatchLocals, and wxT.
Referenced by OnCursorChanged(), RequestUpdate(), ResetProject(), SetWatchValue(), and ShowWatchProperties().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1511 of file debuggergdb.cpp.
References Continue(), cbDebuggerPlugin::DebugLog(), DoBreak(), DebuggerBreakpoint::enabled, wxString::Format(), IsStopped(), m_State, DebuggerState::ResetBreakpoint(), and wxT.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2211 of file debuggergdb.cpp.
Referenced by GetExitCode().
DebuggerConfiguration & DebuggerGDB::GetActiveConfigEx | ( | ) |
Definition at line 285 of file debuggergdb.cpp.
References cbDebuggerPlugin::GetActiveConfig().
Referenced by DoDebug(), DoWatches(), GDB_driver::GetCommandLine(), OnCatchThrow(), OnConfigurationChange(), OnUpdateCatchThrow(), GDB_driver::Prepare(), RunToCursor(), SetupToolsMenu(), ShowValueTooltip(), CDB_driver::Start(), GDB_driver::Start(), DebuggerState::StartDriver(), and SupportsFeature().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1334 of file debuggergdb.cpp.
References DebuggerDriver::GetCurrentFrame(), DebuggerState::GetDriver(), DebuggerState::HasDriver(), and m_State.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1405 of file debuggergdb.cpp.
References cbAssert, DebuggerState::GetBreakpoints(), and m_State.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1413 of file debuggergdb.cpp.
References cbAssert, DebuggerState::GetBreakpoints(), and m_State.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1400 of file debuggergdb.cpp.
References DebuggerState::GetBreakpoints(), and m_State.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1744 of file debuggergdb.cpp.
References Cursor::file, DebuggerDriver::GetCursor(), DebuggerState::GetDriver(), DebuggerState::HasDriver(), Cursor::line, m_State, and wxEmptyString.
Referenced by GetExitCode().
|
inlinevirtual |
Get the exit code of the last debug process.
Implements cbDebuggerPlugin.
Definition at line 89 of file debuggergdb.h.
References AddWatch(), AddWatchNoUpdate(), AttachToProcess(), CollapseWatch(), DeleteWatch(), DetachFromProcess(), DoSendCommand(), ExpandWatch(), GetCurrentPosition(), HasWatch(), IsAttachedToProcess(), m_LastExitCode, OnWatchesContextMenu(), RequestUpdate(), SendCommand(), SetWatchValue(), ShowWatchProperties(), and UpdateWatch().
|
inlineprotectedvirtual |
cbConfigurationPanel * DebuggerGDB::GetProjectConfigurationPanel | ( | wxWindow * | parent, |
cbProject * | project | ||
) |
Definition at line 290 of file debuggergdb.cpp.
RemoteDebuggingMap & DebuggerGDB::GetRemoteDebuggingMap | ( | cbProject * | project = 0 | ) |
Definition at line 340 of file debuggergdb.cpp.
References m_pProject, and m_RemoteDebugging.
Referenced by CleanupWhenProjectClosed(), DoDebug(), GDB_driver::GetRemoteDebuggingInfo(), GetState(), DebuggerOptionsProjectDlg::OnApply(), and OnProjectLoadingHook().
wxArrayString & DebuggerGDB::GetSearchDirs | ( | cbProject * | prj | ) |
Definition at line 331 of file debuggergdb.cpp.
References m_SearchDirs.
Referenced by CleanupWhenProjectClosed(), DoDebug(), GetState(), DebuggerOptionsProjectDlg::OnApply(), and OnProjectLoadingHook().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1317 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerDriver::GetStackFrames(), and m_State.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1312 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerDriver::GetStackFrames(), and m_State.
|
inline |
Definition at line 114 of file debuggergdb.h.
References _T, ConvertToGDBDirectory(), ConvertToGDBFile(), ConvertToGDBFriendly(), DebuggeeContinued(), DetermineLanguage(), GetRemoteDebuggingMap(), GetSearchDirs(), m_State, OnConfigurationChange(), OnProjectLoadingHook(), OnValueTooltip(), ShowValueTooltip(), and StripQuotes().
Referenced by GDB_driver::ParseOutput().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1347 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerDriver::GetThreads(), and m_State.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1339 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerDriver::GetThreads(), DebuggerState::HasDriver(), and m_State.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2128 of file debuggergdb.cpp.
References m_funcArgsWatch, m_localsWatch, and m_watches.
Referenced by GetExitCode(), SetWatchValue(), and UpdateWatch().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2297 of file debuggergdb.cpp.
References m_PidToAttach.
Referenced by GetExitCode(), and GDB_driver::Stop().
|
virtual |
Is the plugin processing something?
Implements cbDebuggerPlugin.
Definition at line 661 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), DebuggerDriver::IsQueueBusy(), and m_State.
Referenced by IsRunning().
|
inlinevirtual |
Is the plugin currently debugging?
Implements cbDebuggerPlugin.
Definition at line 85 of file debuggergdb.h.
References IsBusy(), IsStopped(), and m_pProcess.
Referenced by OnUpdateTools().
|
virtual |
Is the plugin stopped on breakpoint?
Implements cbDebuggerPlugin.
Definition at line 656 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), DebuggerDriver::IsProgramStopped(), and m_State.
Referenced by AddBreakpoint(), DeleteAllBreakpoints(), DeleteBreakpoint(), DoBreak(), DoSendCommand(), EnableBreakpoint(), IsRunning(), OnUpdateCatchThrow(), OnUpdateTools(), SetNextStatement(), ShowValueTooltip(), Stop(), and UpdateBreakpoint().
|
inline |
Definition at line 88 of file debuggergdb.h.
References m_TemporaryBreak.
Referenced by CDB_driver::ParseOutput().
|
private |
Definition at line 1927 of file debuggergdb.cpp.
References HandlerRoutine(), m_bIsConsole, m_nConsolePid, and wxKill().
Referenced by OnGDBTerminated(), OnReleaseReal(), and ResetProject().
Definition at line 573 of file debuggergdb.cpp.
References _(), wxString::BeforeFirst(), wxString::Contains(), cbDebuggerPlugin::DebugLog(), Logger::error, wxString::Format(), wxArrayString::GetCount(), wxProcess::GetErrorStream(), wxProcess::GetInputStream(), wxProcess::GetOutputStream(), wxArrayString::Item(), LaunchProcessWithShell(), wxString::Length(), cbDebuggerPlugin::Log(), m_Pid, m_pProcess, wxString::Mid(), wxString::StartsWith(), wxString::ToLong(), wxString::wx_str(), wxEXEC_SYNC, wxExecute(), and wxT.
Referenced by DoDebug(), and ResetProject().
|
private |
Definition at line 547 of file debuggergdb.cpp.
References wxExecuteEnv::cwd, wxString::empty(), wxExecuteEnv::env, wxString::Format(), GetShellString(), cbDebuggerPlugin::Log(), wxString::wx_str(), wxEXEC_ASYNC, wxExecute(), wxGetEnvMap(), wxSetEnv(), and wxT.
Referenced by LaunchProcess(), and ResetProject().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 280 of file debuggergdb.cpp.
|
private |
Definition at line 2235 of file debuggergdb.cpp.
References m_funcArgsWatch, m_localsWatch, and m_watches.
Referenced by OnCursorChanged(), and ResetProject().
|
virtual |
Execute the next instruction and return control to the debugger.
Implements cbDebuggerPlugin.
Definition at line 1536 of file debuggergdb.cpp.
References CMD_STEP, and RunCommand().
|
virtual |
Execute the next instruction and return control to the debugger.
Implements cbDebuggerPlugin.
Definition at line 1541 of file debuggergdb.cpp.
References CMD_STEP_INSTR, and RunCommand().
|
private |
Definition at line 1760 of file debuggergdb.cpp.
References _(), _T, ConvertToGDBDirectory(), wxString::IsEmpty(), wxFD_FILE_MUST_EXIST, wxFD_OPEN, and wxFileSelector().
Referenced by ResetProject().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 207 of file debuggergdb.cpp.
References cbEVT_BUILDTARGET_SELECTED, Manager::Get(), m_HookId, m_TimerPollDebugger, OnBuildTargetSelected(), OnProjectLoadingHook(), Manager::RegisterEventSink(), ProjectLoaderHooks::RegisterHook(), and wxTimer::SetOwner().
|
private |
Definition at line 2311 of file debuggergdb.cpp.
References CodeBlocksEvent::GetBuildTargetName(), CodeBlocksEvent::GetProject(), m_ActiveBuildTarget, and m_pProject.
Referenced by OnAttachReal(), and ResetProject().
|
private |
Definition at line 1836 of file debuggergdb.cpp.
References DebuggerConfiguration::CatchExceptions, DebuggerDriver::EnableCatchingThrow(), GetActiveConfigEx(), DebuggerState::GetDriver(), m_State, and DebuggerConfiguration::SetFlag().
Referenced by ResetProject().
|
virtual |
Called when the user clicks OK in Settings -> Debugger...
Reimplemented from cbDebuggerPlugin.
Definition at line 296 of file debuggergdb.cpp.
References Manager::Get(), GetActiveConfigEx(), Manager::GetDebuggerManager(), DebuggerConfiguration::GetFlag(), DebuggerManager::GetWatchesDialog(), m_funcArgsWatch, m_localsWatch, cbWatchesDlg::RemoveWatch(), RequestUpdate(), cbDebuggerPlugin::Watches, DebuggerConfiguration::WatchFuncArgs, and DebuggerConfiguration::WatchLocals.
Referenced by GetState().
|
private |
Definition at line 2038 of file debuggergdb.cpp.
References _(), Cursor::address, cbDebuggerCommonConfig::AutoSwitchFrame, cbDebuggerPlugin::BringCBToFront(), cbDebuggerStringToAddress(), Cursor::changed, CMD_BACKTRACE, CMD_DISASSEMBLE, CMD_MEMORYDUMP, CMD_REGISTERS, CMD_RUNNINGTHREADS, DoWatches(), Cursor::file, wxString::Format(), Cursor::function, Manager::Get(), DebuggerDriver::GetCursor(), Manager::GetDebuggerManager(), DebuggerManager::GetDisassemblyDialog(), DebuggerState::GetDriver(), cbDebuggerCommonConfig::GetFlag(), DebuggerManager::GetWatchesDialog(), cbWatchesDlg::GetWindow(), DebuggerState::HasDriver(), IsWindowReallyShown(), Cursor::line, cbDebuggerPlugin::Log(), m_State, m_TemporaryBreak, MarkAllWatchesAsUnchanged(), RunCommand(), cbDisassemblyDlg::SetActiveAddress(), cbDebuggerPlugin::SyncEditor(), DebuggerManager::UpdateBacktrace(), DebuggerManager::UpdateCPURegisters(), DebuggerManager::UpdateDisassembly(), DebuggerManager::UpdateExamineMemory(), DebuggerManager::UpdateThreads(), and wxString::wx_str().
Referenced by ResetProject().
|
private |
Definition at line 1882 of file debuggergdb.cpp.
References wxString::IsEmpty(), and ParseOutput().
Referenced by ResetProject().
|
private |
Definition at line 1875 of file debuggergdb.cpp.
References wxString::IsEmpty(), and ParseOutput().
Referenced by ResetProject().
|
private |
killerbot : run there the post shell commands ?
Definition at line 1889 of file debuggergdb.cpp.
References _(), cbEVT_DEBUGGER_FINISHED, cbMessageBox(), cbDebuggerPlugin::ClearActiveMarkFromAllEditors(), wxString::Format(), Manager::Get(), DebuggerManager::GetBreakpointDialog(), Manager::GetDebuggerManager(), Manager::GetPluginManager(), Manager::IsAppShuttingDown(), KillConsole(), cbDebuggerPlugin::Log(), m_LastExitCode, m_NoDebugInfo, m_PidToAttach, m_State, m_TimerPollDebugger, cbDebuggerPlugin::MarkAsStopped(), PluginManager::NotifyPlugins(), cbBreakpointsDlg::Reload(), wxTimer::Stop(), DebuggerState::StopDriver(), cbDebuggerPlugin::SwitchToPreviousLayout(), and wxICON_STOP.
Referenced by ResetProject().
|
private |
Definition at line 2010 of file debuggergdb.cpp.
References m_pProcess.
Referenced by ResetProject().
|
private |
Definition at line 1849 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), DebuggerDriver::InfoDLL(), and m_State.
Referenced by ResetProject().
|
private |
Definition at line 1857 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), DebuggerDriver::InfoFiles(), and m_State.
Referenced by ResetProject().
|
private |
Definition at line 1863 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), DebuggerDriver::InfoFPU(), and m_State.
Referenced by ResetProject().
|
private |
Definition at line 1843 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), DebuggerDriver::InfoFrame(), and m_State.
Referenced by ResetProject().
|
private |
Definition at line 1869 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), DebuggerDriver::InfoSignals(), and m_State.
Referenced by ResetProject().
|
private |
Definition at line 2270 of file debuggergdb.cpp.
References Manager::Get(), Manager::GetDebuggerManager(), DebuggerManager::GetWatchesDialog(), m_watchToDereferenceProperty, m_watchToDereferenceSymbol, NULL, cbWatchesDlg::RenameWatch(), wxEmptyString, and wxT.
Referenced by ResetProject().
|
private |
Definition at line 1809 of file debuggergdb.cpp.
References wxString::Format(), DebuggerState::GetDriver(), m_printElements, m_State, DebuggerDriver::QueueCommand(), RequestUpdate(), cbDebuggerPlugin::Watches, and wxT.
Referenced by ResetProject().
void DebuggerGDB::OnProjectLoadingHook | ( | cbProject * | project, |
TiXmlElement * | elem, | ||
bool | loading | ||
) |
Definition at line 353 of file debuggergdb.cpp.
References _T, wxArrayString::Add(), RemoteDebugging::additionalCmds, RemoteDebugging::additionalCmdsBefore, RemoteDebugging::additionalShellCmdsAfter, RemoteDebugging::additionalShellCmdsBefore, cbC2U(), cbU2C(), wxString::Clear(), RemoteDebugging::connType, RemoteDebugging::extendedRemote, cbProject::GetBuildTarget(), wxArrayString::GetCount(), GetRemoteDebuggingMap(), GetSearchDirs(), wxArrayString::Index(), wxString::insert(), RemoteDebugging::ip, RemoteDebugging::ipPort, wxString::IsEmpty(), RemoteDebugging::serialBaud, RemoteDebugging::serialPort, RemoteDebugging::skipLDpath, and wxNOT_FOUND.
Referenced by GetState(), and OnAttachReal().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 219 of file debuggergdb.cpp.
References DebuggerState::CleanUp(), DebuggerState::HasDriver(), KillConsole(), m_HookId, m_State, Stop(), and ProjectLoaderHooks::UnregisterHook().
|
private |
Definition at line 2028 of file debuggergdb.cpp.
References cbDebuggerPlugin::SyncEditor().
Referenced by ResetProject().
|
private |
Definition at line 2018 of file debuggergdb.cpp.
References CheckIfConsoleIsClosed(), ParseOutput(), wxEmptyString, and wxWakeUpIdle().
Referenced by ResetProject().
|
private |
Definition at line 1829 of file debuggergdb.cpp.
References DebuggerConfiguration::CatchExceptions, GetActiveConfigEx(), DebuggerConfiguration::GetFlag(), DebuggerConfiguration::IsGDB(), and IsStopped().
Referenced by ResetProject().
|
private |
Definition at line 1798 of file debuggergdb.cpp.
References IsRunning(), IsStopped(), and m_printElements.
Referenced by ResetProject().
Reimplemented from cbDebuggerPlugin.
Definition at line 1988 of file debuggergdb.cpp.
References DebuggerDriver::EvaluateSymbol(), DebuggerState::GetDriver(), and m_State.
Referenced by GetState().
|
virtual |
[out] | disabledMenus | A combination of WatchesDisabledMenuItems, which controls which of the default menu items are disabled |
Reimplemented from cbDebuggerPlugin.
Definition at line 2246 of file debuggergdb.cpp.
References _(), cbDebuggerPlugin::WatchesDisabledMenuItems::AddDataBreak, cbDebuggerPlugin::WatchesDisabledMenuItems::Delete, cbDebuggerPlugin::WatchesDisabledMenuItems::ExamineMemory, cbWatch::GetParent(), cbWatch::GetSymbol(), cbWatch::GetType(), wxMenu::Insert(), wxMenu::InsertSeparator(), IsPointerType(), m_watchToDereferenceProperty, m_watchToDereferenceSymbol, cbDebuggerPlugin::WatchesDisabledMenuItems::Properties, and cbDebuggerPlugin::WatchesDisabledMenuItems::Rename.
Referenced by GetExitCode().
|
private |
Definition at line 1736 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), wxString::IsEmpty(), m_State, and DebuggerDriver::ParseOutput().
Referenced by OnGDBError(), OnGDBOutput(), OnTimer(), and ResetProject().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1146 of file debuggergdb.cpp.
References cbDebuggerPlugin::Backtrace, CMD_BACKTRACE, CMD_DISASSEMBLE, CMD_MEMORYDUMP, CMD_REGISTERS, CMD_RUNNINGTHREADS, cbDebuggerPlugin::CPURegisters, cbDebuggerPlugin::Disassembly, DoWatches(), cbDebuggerPlugin::ExamineMemory, Manager::Get(), IsWindowReallyShown(), RunCommand(), cbDebuggerPlugin::Threads, and cbDebuggerPlugin::Watches.
Referenced by GetExitCode(), OnConfigurationChange(), and OnPrintElements().
|
inlineprotectedvirtual |
Implements cbDebuggerPlugin.
Definition at line 137 of file debuggergdb.h.
References AddSourceDir(), CheckIfConsoleIsClosed(), CleanupWhenProjectClosed(), CompilerFinished(), ConvertDirectory(), DeleteAllProjectBreakpoints(), DoBreak(), DoDebug(), DoWatches(), KillConsole(), LaunchProcess(), LaunchProcessWithShell(), m_pProcess, MarkAllWatchesAsUnchanged(), NULL, OnAddSymbolFile(), OnBuildTargetSelected(), OnCatchThrow(), OnCursorChanged(), OnGDBError(), OnGDBOutput(), OnGDBTerminated(), OnIdle(), OnInfoDLL(), OnInfoFiles(), OnInfoFPU(), OnInfoFrame(), OnInfoSignals(), OnMenuWatchDereference(), OnPrintElements(), OnShowFile(), OnTimer(), OnUpdateCatchThrow(), OnUpdateTools(), ParseOutput(), and SetupToolsMenu().
void DebuggerGDB::RunCommand | ( | int | cmd | ) |
Definition at line 1174 of file debuggergdb.cpp.
References _(), DebuggerDriver::Backtrace(), cbDebuggerPlugin::ClearActiveMarkFromAllEditors(), CMD_BACKTRACE, CMD_CONTINUE, CMD_DISASSEMBLE, CMD_MEMORYDUMP, CMD_REGISTERS, CMD_RUNNINGTHREADS, CMD_STEP, CMD_STEP_INSTR, CMD_STEP_INTO_INSTR, CMD_STEPIN, CMD_STEPOUT, CMD_STOP, DebuggerDriver::Continue(), DebuggerDriver::CPURegisters(), DebuggerDriver::Disassemble(), Manager::Get(), DebuggerState::GetDriver(), DebuggerState::HasDriver(), cbDebuggerPlugin::Log(), m_pProcess, m_State, cbDebuggerPlugin::MarkAsStopped(), DebuggerDriver::MemoryDump(), DebuggerDriver::NotifyCursorChanged(), DebuggerDriver::ResetCurrentFrame(), DebuggerDriver::RunningThreads(), DebuggerDriver::Step(), DebuggerDriver::StepIn(), DebuggerDriver::StepInstruction(), DebuggerDriver::StepIntoInstruction(), DebuggerDriver::StepOut(), and DebuggerDriver::Stop().
Referenced by Continue(), Next(), NextInstruction(), OnCursorChanged(), RequestUpdate(), Step(), StepIntoInstruction(), StepOut(), and Stop().
|
virtual |
Run the debugged program until it reaches the cursor at the current editor.
Implements cbDebuggerPlugin.
Definition at line 1582 of file debuggergdb.cpp.
References DebuggerState::AddBreakpoint(), Continue(), Debug(), DebuggerConfiguration::DoNotRun, Manager::Get(), GetActiveConfigEx(), DebuggerManager::GetBreakpointDialog(), Manager::GetDebuggerManager(), m_pProcess, m_State, and cbBreakpointsDlg::Reload().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1123 of file debuggergdb.cpp.
References _T, CleanStringValue(), DoSendCommand(), DebuggerState::GetDriver(), DebuggerState::HasDriver(), cbDebuggerPlugin::Log(), m_State, and DebuggerDriver::QueueCommand().
Referenced by GetExitCode().
|
virtual |
Sets the position of the Program counter to the specified filename:line.
Implements cbDebuggerPlugin.
Definition at line 1602 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), IsStopped(), m_State, and DebuggerDriver::SetNextStatement().
|
privatevirtual |
Implements cbDebuggerPlugin.
Definition at line 1775 of file debuggergdb.cpp.
References _(), wxMenu::Append(), wxMenu::AppendCheckItem(), wxMenu::AppendRadioItem(), wxMenu::AppendSeparator(), wxMenu::AppendSubMenu(), and GetActiveConfigEx().
Referenced by ResetProject().
Implements cbDebuggerPlugin.
Definition at line 2149 of file debuggergdb.cpp.
References wxString::at(), cbGetRootWatch(), dl_Cpp, DoWatches(), wxString::empty(), wxString::find(), g_DebugLanguage, DebuggerState::GetDriver(), DebuggerState::HasDriver(), HasWatch(), m_State, wxString::npos, DebuggerDriver::SetVarValue(), wxString::size(), wxString::substr(), and wxT.
Referenced by GetExitCode().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1502 of file debuggergdb.cpp.
References DebuggerState::GetBreakpoints(), m_State, and DebuggerState::ShiftBreakpoint().
|
virtual |
Reimplemented from cbDebuggerPlugin.
Definition at line 1969 of file debuggergdb.cpp.
References DebuggerConfiguration::EvalExpression, GetActiveConfigEx(), DebuggerState::GetDriver(), DebuggerConfiguration::GetFlag(), DebuggerState::HasDriver(), DebuggerDriver::IsDebuggingStarted(), IsStopped(), m_pProcess, m_State, wxSCI_C_DEFAULT, wxSCI_C_GLOBALCLASS, wxSCI_C_IDENTIFIER, wxSCI_C_OPERATOR, wxSCI_C_WORD2, and wxSCI_F_IDENTIFIER.
Referenced by GetState().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2137 of file debuggergdb.cpp.
References DoWatches(), and wxID_OK.
Referenced by GetExitCode().
|
virtual |
Execute the next instruction, stepping into function calls if needed, and return control to the debugger.
Implements cbDebuggerPlugin.
Definition at line 1551 of file debuggergdb.cpp.
References CMD_STEPIN, and RunCommand().
|
virtual |
Execute the next instruction and return control to the debugger, if the instruction is a function call step into it.
Implements cbDebuggerPlugin.
Definition at line 1546 of file debuggergdb.cpp.
References CMD_STEP_INTO_INSTR, and RunCommand().
|
virtual |
Execute the next instruction, stepping out of function calls if needed, and return control to the debugger.
Implements cbDebuggerPlugin.
Definition at line 1577 of file debuggergdb.cpp.
References CMD_STEPOUT, and RunCommand().
|
virtual |
Stop the debugging process (exit debugging).
Implements cbDebuggerPlugin.
Definition at line 1713 of file debuggergdb.cpp.
References _(), Break(), CMD_STOP, cbDebuggerPlugin::DebugLog(), DebuggerDriver::GetChildPID(), DebuggerState::GetDriver(), IsStopped(), m_Pid, m_pProcess, m_State, RunCommand(), wxKill(), and wxSIGTERM.
Referenced by CheckIfConsoleIsClosed(), and OnReleaseReal().
|
static |
Definition at line 998 of file debuggergdb.cpp.
References _T, wxString::GetChar(), wxString::Length(), and wxString::Mid().
Referenced by ConvertToGDBDirectory(), and GetState().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 234 of file debuggergdb.cpp.
References cbDebuggerFeature::Breakpoints, cbDebuggerFeature::Callstack, cbDebuggerFeature::CPURegisters, cbDebuggerFeature::Disassembly, cbDebuggerFeature::ExamineMemory, GetActiveConfigEx(), DebuggerConfiguration::IsGDB(), cbDebuggerFeature::RunToCursor, cbDebuggerFeature::SetNextStatement, cbDebuggerFeature::Threads, cbDebuggerFeature::ValueTooltips, and cbDebuggerFeature::Watches.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1322 of file debuggergdb.cpp.
References Manager::Get(), DebuggerManager::GetBacktraceDialog(), Manager::GetDebuggerManager(), DebuggerState::GetDriver(), DebuggerState::HasDriver(), m_State, cbBacktraceDlg::Reload(), DebuggerDriver::SetCurrentFrame(), and DebuggerDriver::SwitchToFrame().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1352 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerDriver::GetThreads(), DebuggerState::HasDriver(), m_State, and DebuggerDriver::SwitchThread().
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 1421 of file debuggergdb.cpp.
References DebuggerBreakpoint::bptCode, DebuggerBreakpoint::bptData, DebuggerBreakpoint::bptFunction, Continue(), DoBreak(), Manager::Get(), EditBreakpointDlg::GetBreakpoint(), DebuggerState::GetBreakpoints(), DataBreakpointDlg::GetDataExpression(), DataBreakpointDlg::GetSelection(), IsStopped(), m_State, PlaceWindow(), DebuggerState::ResetBreakpoint(), wxDialog::ShowModal(), and wxID_OK.
|
virtual |
Implements cbDebuggerPlugin.
Definition at line 2219 of file debuggergdb.cpp.
References DebuggerState::GetDriver(), DebuggerState::HasDriver(), HasWatch(), m_funcArgsWatch, m_localsWatch, m_State, DebuggerDriver::UpdateWatch(), and DebuggerDriver::UpdateWatchLocalsArgs().
Referenced by GetExitCode().
bool DebuggerGDB::Validate | ( | const wxString & | line, |
const char | cb | ||
) |
Definition at line 1556 of file debuggergdb.cpp.
References _T, and wxString::Find().
|
friend |
Definition at line 219 of file debuggergdb.h.
|
private |
Definition at line 194 of file debuggergdb.h.
Referenced by Debug(), DoDebug(), and OnBuildTargetSelected().
|
private |
Definition at line 206 of file debuggergdb.h.
Referenced by DoDebug(), and KillConsole().
|
private |
Definition at line 210 of file debuggergdb.h.
|
private |
Definition at line 186 of file debuggergdb.h.
|
private |
Definition at line 215 of file debuggergdb.h.
Referenced by DoWatches(), HasWatch(), MarkAllWatchesAsUnchanged(), OnConfigurationChange(), and UpdateWatch().
|
private |
Definition at line 203 of file debuggergdb.h.
Referenced by OnAttachReal(), and OnReleaseReal().
|
private |
Definition at line 183 of file debuggergdb.h.
Referenced by GetExitCode(), and OnGDBTerminated().
|
private |
Definition at line 215 of file debuggergdb.h.
Referenced by DoWatches(), HasWatch(), MarkAllWatchesAsUnchanged(), OnConfigurationChange(), and UpdateWatch().
|
private |
Definition at line 208 of file debuggergdb.h.
Referenced by CheckIfConsoleIsClosed(), DoDebug(), and KillConsole().
|
private |
Definition at line 188 of file debuggergdb.h.
Referenced by Debug(), and OnGDBTerminated().
|
private |
Definition at line 184 of file debuggergdb.h.
Referenced by DoBreak(), LaunchProcess(), and Stop().
|
private |
Definition at line 185 of file debuggergdb.h.
Referenced by AttachToProcess(), Debug(), DetachFromProcess(), DoDebug(), IsAttachedToProcess(), and OnGDBTerminated().
|
private |
Definition at line 182 of file debuggergdb.h.
Referenced by AddWatch(), Debug(), DoBreak(), DoDebug(), DoSendCommand(), DoWatches(), IsRunning(), LaunchProcess(), OnIdle(), ResetProject(), RunCommand(), RunToCursor(), ShowValueTooltip(), and Stop().
|
private |
Definition at line 193 of file debuggergdb.h.
Referenced by Debug(), DoDebug(), GetProject(), GetRemoteDebuggingMap(), and OnBuildTargetSelected().
|
private |
Definition at line 221 of file debuggergdb.h.
Referenced by DoDebug(), OnPrintElements(), and OnUpdateTools().
|
private |
Definition at line 201 of file debuggergdb.h.
Referenced by GetRemoteDebuggingMap().
|
private |
Definition at line 198 of file debuggergdb.h.
Referenced by GetSearchDirs().
|
private |
Definition at line 34 of file debuggergdb.h.
Referenced by AddBreakpoint(), AddDataBreakpoint(), AddSourceDir(), AddWatch(), Debug(), DeleteAllBreakpoints(), DeleteAllProjectBreakpoints(), DeleteBreakpoint(), DetachFromProcess(), DetermineLanguage(), DoBreak(), DoDebug(), DoWatches(), EnableBreakpoint(), GetActiveStackFrame(), GetBreakpoint(), GetBreakpointsCount(), GetCurrentPosition(), GetStackFrame(), GetStackFrameCount(), GetState(), GetThread(), GetThreadsCount(), IsBusy(), IsStopped(), OnCatchThrow(), OnCursorChanged(), OnGDBTerminated(), OnInfoDLL(), OnInfoFiles(), OnInfoFPU(), OnInfoFrame(), OnInfoSignals(), OnPrintElements(), OnReleaseReal(), OnValueTooltip(), ParseOutput(), RunCommand(), RunToCursor(), SendCommand(), SetNextStatement(), SetWatchValue(), ShiftBreakpoint(), ShowValueTooltip(), Stop(), SwitchToFrame(), SwitchToThread(), UpdateBreakpoint(), and UpdateWatch().
|
private |
Definition at line 207 of file debuggergdb.h.
Referenced by CheckIfConsoleIsClosed(), and DoDebug().
|
private |
Definition at line 190 of file debuggergdb.h.
|
private |
Definition at line 212 of file debuggergdb.h.
Referenced by DebuggeeContinued(), DoBreak(), IsTemporaryBreak(), and OnCursorChanged().
|
private |
Definition at line 187 of file debuggergdb.h.
Referenced by DoDebug(), OnAttachReal(), and OnGDBTerminated().
|
private |
Definition at line 214 of file debuggergdb.h.
Referenced by AddWatch(), AddWatchNoUpdate(), DeleteWatch(), DoWatches(), HasWatch(), and MarkAllWatchesAsUnchanged().
|
private |
Definition at line 217 of file debuggergdb.h.
Referenced by OnMenuWatchDereference(), and OnWatchesContextMenu().
|
private |
Definition at line 216 of file debuggergdb.h.
Referenced by OnMenuWatchDereference(), and OnWatchesContextMenu().