Code::Blocks  SVN r11506
Classes | Functions
gdb_commands.h File Reference
#include <map>
#include <wx/string.h>
#include <wx/regex.h>
#include <wx/tipwin.h>
#include <wx/tokenzr.h>
#include <cbeditor.h>
#include <cbdebugger_interfaces.h>
#include <configmanager.h>
#include <globals.h>
#include <manager.h>
#include <editormanager.h>
#include <infowindow.h>
#include <logmanager.h>
#include <macrosmanager.h>
#include "debugger_defs.h"
#include "debuggergdb.h"
#include "gdb_driver.h"
#include "remotedebugging.h"
#include "parsewatchvalue.h"
Include dependency graph for gdb_commands.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GdbCmd_AddSourceDir
 Command to add a search directory for source files in debugger's paths. More...
 
class  GdbCmd_SetDebuggee
 Command to the set the file to be debugged. More...
 
class  GdbCmd_AddSymbolFile
 Command to the add symbol files. More...
 
class  GdbCmd_SetArguments
 Command to set the arguments to the debuggee. More...
 
class  GdbCmd_AttachToProcess
 Command to the attach to a process. More...
 
class  GdbCmd_Detach
 Command to the detach from the process. More...
 
class  GdbCmd_AddBreakpointCondition
 Utility command to set a breakpoint condition. More...
 
class  GdbCmd_AddBreakpoint
 Command to add a breakpoint. More...
 
class  GdbCmd_AddDataBreakpoint
 Command to add a data breakpoint. More...
 
class  GdbCmd_RemoveBreakpoint
 Command to remove a breakpoint. More...
 
class  GdbCmd_SetCatch
 Command to setup an exception breakpoint (for a throw or a catch). More...
 
class  GdbCmd_Continue
 Command that notifies the debugger plugin that the debuggee has been continued. More...
 
class  GdbCmd_Start
 
class  GdbCmd_InfoProgram
 Command to get info about current program and state. More...
 
class  GdbCmd_Threads
 Command to get info about running threads. More...
 
class  GdbCmd_Watch
 Command to get info about a watched variable. More...
 
class  GdbCmd_FindWatchType
 Command to get a watched variable's type. More...
 
class  GdbCmd_TooltipEvaluation
 Command to display a tooltip about a variables value. More...
 
class  GdbCmd_FindTooltipAddress
 Command to get a symbol's type and use it for tooltip evaluation. More...
 
class  GdbCmd_FindTooltipType
 Command to get a symbol's type and use it for tooltip evaluation. More...
 
class  GdbCmd_LocalsFuncArgs
 
class  GdbCmd_ChangeFrame
 Command to change the current frame. More...
 
class  GdbCmd_Backtrace
 Command to run a backtrace. More...
 
class  GdbCmd_InfoRegisters
 Command to obtain register info. More...
 
class  GdbCmd_Disassembly
 Command to run a disassembly. More...
 
class  GdbCmd_DisassemblyInit
 Command to initialize a disassembly. More...
 
class  GdbCmd_ExamineMemory
 Command to examine a memory region. More...
 
class  GdbCmd_RemoteBaud
 
class  GdbCmd_RemoteTarget
 
class  GdbCmd_StepOrNextInstruction
 
class  GdbCmd_StepInstruction
 
class  GdbCmd_StepIntoInstruction
 
class  GdbCmd_FindCursor
 Command which tries to find the current cursor position. More...
 
class  GdbCmd_DebugLanguage
 Command to determine the debugging (working) language. More...
 

Functions

static wxRegEx reBT0 (_T("#([0-9]+)[ \+(.+)[ \at[ \(.+):([0-9]+)"))
 
static wxRegEx reBT1 (_T("#([0-9]+)[ \+0x([A-Fa-f0-9]+)[ \+in[ \+(.+)[ \+(\[^)]*\)[ \"))
 
static wxRegEx reBTX (_T("#([0-9]+)[ \+0x([A-Fa-f0-9]+)[ \+in[ \+([^(]+)[ \*(\[^)]*\[ \*\[^)]*\)"))
 
static wxRegEx reBT2 (_T("\[ \+[atfrom]+[ \+(.*):([0-9]+)"))
 
static wxRegEx reBT3 (_T("\[ \+[atfrom]+[ \+(.*)"))
 
static wxRegEx reBT4 (_T("#([0-9]+)[ \]+(.+)[ \]in[ \](.+)"))
 
static wxRegEx reBreakpoint (_T("Breakpoint ([0-9]+) at (0x[0-9A-Fa-f]+)"))
 
static wxRegEx rePendingBreakpoint (_T("Breakpoint ([0-9]+)[ \\\.+):([0-9]+)(\)\[ \pending\"))
 
static wxRegEx reHWBreakpoint (_T("Hardware assisted breakpoint ([0-9]+) at (0x[0-9A-Fa-f]+)"))
 
static wxRegEx reDataBreakpoint (_T("Hardware watchpoint ([0-9]+):.*"))
 
static wxRegEx reTemporaryBreakpoint (wxT("^[Tt]emporary[ \breakpoint[ \([0-9]+)[ \at.*"))
 
static wxRegEx reRegisters (_T("([A-z0-9]+)[ \+(0x[0-9A-Fa-f]+)[ \+(.*)"))
 
static wxRegEx reDisassembly (_T("(0x[0-9A-Za-z]+)[ \+<.*>:[ \+(.*)"))
 
static wxRegEx reDisassemblySource (_T("([0-9]+)[ \(.*)"))
 
static wxRegEx reDisassemblyInit (_T("^[ \*Stack level [0-9]+, frame at (0x[A-Fa-f0-9]+):"))
 
static wxRegEx reDisassemblyInitSymbol (_T("[ \*[er]ip[ \+=[ \+0x[0-9a-f]+[ \+in[ \+(.+)\(.+):([0-9]+)\;"))
 
static wxRegEx reDisassemblyInitFunc (_T("eip = (0x[A-Fa-f0-9]+) in ([^;]*)"))
 
static wxRegEx reDisassemblyInitFuncOR32 (_T("PC = (0x[A-Fa-f0-9]+) in ([^;]*)"))
 
static wxRegEx reDisassemblyCurPC (_T("=>[ \+(0x[A-Fa-f0-9]+)"))
 
static wxRegEx reInfoProgramThread (_T("\LWP[ \([0-9]+)\"))
 
static wxRegEx reInfoProgramProcess (_T("child process ([0-9]+)"))
 
static wxRegEx reInfoThreads (_T("(\*)[ \*([0-9]+)[ \(.*)"))
 
static wxRegEx reGenericHexAddress (_T("(0x[A-Fa-f0-9]+)"))
 
static wxRegEx reExamineMemoryLine (wxT("[ \*(0x[0-9a-f]+)[ <.+>:[ \+(.+)"))
 
static wxRegEx reStepI (wxT("(((.*)[a-zA-Z]:)?.*)?:(\+):(middle|beg):(.*)"), wxRE_ADVANCED)
 
static wxRegEx reStepI2 (_T("\(0x[A-Fa-f0-9]+)\+(\+)\+in (.*)"), wxRE_ADVANCED)
 
static wxRegEx reStepI3 (_T("^(0x[A-Fa-f0-9]+) in (.*)? from (.*)"))
 
static wxRegEx reStepI4 (_T("^(0x[A-Fa-f0-9]+) in (.*)? at (.*)"))
 
static wxRegEx reNextI (_T("\a\a(([a-zA-Z]:)?.*?):([0-9]*):([0-9]*):(middle|beg):(.*)"), wxRE_ADVANCED)
 

Function Documentation

◆ reBreakpoint()

static wxRegEx reBreakpoint ( _T("Breakpoint ([0-9]+) at (0x[0-9A-Fa-f]+)")  )
static

◆ reBT0()

static wxRegEx reBT0 ( _T("#([0-9]+)[ \(.+)[ \t[ \.+):([0-9]+)")  )
static

◆ reBT1()

static wxRegEx reBT1 ( _T("#([0-9]+)[ \x([A-Fa-f0-9]+)[ \n[ \.+)[ \\)]*\ \  )
static

◆ reBT2()

static wxRegEx reBT2 ( _T("\ \[atfrom]+[ \(.*):([0-9]+)")  )
static

◆ reBT3()

static wxRegEx reBT3 ( _T("\ \[atfrom]+[ \(.*)")  )
static

◆ reBT4()

static wxRegEx reBT4 ( _T("#([0-9]+)[ \+(.+)[ \in[ \(.+)")  )
static

◆ reBTX()

static wxRegEx reBTX ( _T("#([0-9]+)[ \x([A-Fa-f0-9]+)[ \n[ \[^(]+)[ \\)]*\\^)]*\  )
static

◆ reDataBreakpoint()

static wxRegEx reDataBreakpoint ( _T("Hardware watchpoint ([0-9]+):.*")  )
static

◆ reDisassembly()

static wxRegEx reDisassembly ( _T("(0x[0-9A-Za-z]+)[ <.*>:[ \(.*)")  )
static

◆ reDisassemblyCurPC()

static wxRegEx reDisassemblyCurPC ( _T("=>[ \(0x[A-Fa-f0-9]+)")  )
static

◆ reDisassemblyInit()

static wxRegEx reDisassemblyInit ( _T("^[ \Stack level [0-9]+, frame at (0x[A-Fa-f0-9]+):")  )
static

◆ reDisassemblyInitFunc()

static wxRegEx reDisassemblyInitFunc ( _T("eip = (0x[A-Fa-f0-9]+) in ([^;]*)")  )
static

◆ reDisassemblyInitFuncOR32()

static wxRegEx reDisassemblyInitFuncOR32 ( _T("PC = (0x[A-Fa-f0-9]+) in ([^;]*)")  )
static

◆ reDisassemblyInitSymbol()

static wxRegEx reDisassemblyInitSymbol ( _T("[ \[er]ip[ \=[ \0x[0-9a-f]+[ \in[ \(.+)\.+):([0-9]+)\")  )
static

◆ reDisassemblySource()

static wxRegEx reDisassemblySource ( _T("([0-9]+)[ \.*)")  )
static

◆ reExamineMemoryLine()

static wxRegEx reExamineMemoryLine ( wxT("[ \(0x[0-9a-f]+)[ \.+>:[ \(.+)")  )
static

◆ reGenericHexAddress()

static wxRegEx reGenericHexAddress ( _T("(0x[A-Fa-f0-9]+)")  )
static

◆ reHWBreakpoint()

static wxRegEx reHWBreakpoint ( _T("Hardware assisted breakpoint ([0-9]+) at (0x[0-9A-Fa-f]+)")  )
static

◆ reInfoProgramProcess()

static wxRegEx reInfoProgramProcess ( _T("child process ([0-9]+)")  )
static

◆ reInfoProgramThread()

static wxRegEx reInfoProgramThread ( _T("\WP[ \[0-9]+)\)  )
static

◆ reInfoThreads()

static wxRegEx reInfoThreads ( _T("(\)[ \([0-9]+)[ \.*)")  )
static

◆ reNextI()

static wxRegEx reNextI ( _T("\\(([a-zA-Z]:)?.*?):([0-9]*):([0-9]*):(middle|beg):(.*)")  ,
wxRE_ADVANCED   
)
static

◆ rePendingBreakpoint()

static wxRegEx rePendingBreakpoint ( _T("Breakpoint ([0-9]+)[ \+):([0-9]+)(\ \nding\  )
static

◆ reRegisters()

static wxRegEx reRegisters ( _T("([A-z0-9]+)[ \(0x[0-9A-Fa-f]+)[ \(.*)")  )
static

◆ reStepI()

static wxRegEx reStepI ( wxT("(((.*)[a-zA-Z]:)?.*)?:(\):(middle|beg):(.*)")  ,
wxRE_ADVANCED   
)
static

◆ reStepI2()

static wxRegEx reStepI2 ( _T("\0x[A-Fa-f0-9]+)\(\)\in (.*)")  ,
wxRE_ADVANCED   
)
static

◆ reStepI3()

static wxRegEx reStepI3 ( _T("^(0x[A-Fa-f0-9]+) in (.*)? from (.*)")  )
static

◆ reStepI4()

static wxRegEx reStepI4 ( _T("^(0x[A-Fa-f0-9]+) in (.*)? at (.*)")  )
static

◆ reTemporaryBreakpoint()

static wxRegEx reTemporaryBreakpoint ( wxT("^[Tt]emporary[ \reakpoint[ \[0-9]+)[ \t.*")  )
static