mirror of https://gitlab.com/basile.b/dexed.git
gdb, prepared some struct related to gdbmi format
This commit is contained in:
parent
236cd0fac8
commit
bd09d77972
|
@ -11,7 +11,63 @@ uses
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
{$IFDEF CPU64}
|
||||||
|
TCpuRegs = (rax);
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
{$IFDEF CPU32}
|
||||||
TCpuRegs = (eax);
|
TCpuRegs = (eax);
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
//TODO-cDebugging: write a parser for the DBG/MI output messages
|
||||||
|
|
||||||
|
|
||||||
|
TGDBMI_Frame = record
|
||||||
|
level: integer;
|
||||||
|
func: string;
|
||||||
|
adrress: ptruint;
|
||||||
|
fname: string; // named "file"
|
||||||
|
line: integer;
|
||||||
|
from: string;
|
||||||
|
end;
|
||||||
|
|
||||||
|
TGDBMI_Breakpoint = record
|
||||||
|
number: integer;
|
||||||
|
tpe: string; // named "type"
|
||||||
|
catchtype: string; // named "catch-type"
|
||||||
|
disp: string; // "del" | "keep"
|
||||||
|
enabled: boolean; // "y" | "n"
|
||||||
|
addr: ptrUint; // hex | <PENDING> | <MULTIPLE>
|
||||||
|
func: string;
|
||||||
|
filename: string;
|
||||||
|
fullname: string;
|
||||||
|
line: integer;
|
||||||
|
at: string;
|
||||||
|
pending: string; // value is the command passed to set the BP
|
||||||
|
evaluateby: string; // named "evaluate-by" , host | target
|
||||||
|
thread: ptrUint;
|
||||||
|
task: string;
|
||||||
|
cond: string;
|
||||||
|
ignore: integer;
|
||||||
|
enable: integer;
|
||||||
|
traceframeusage: string;// named "traceframe-usage"
|
||||||
|
statictraceid: string; // named "static-tracepoint-marker-string-id"
|
||||||
|
mask: string;
|
||||||
|
pass: integer;
|
||||||
|
originloc: string; // named "original-location"
|
||||||
|
times: integer;
|
||||||
|
installed: boolean; // "y" | "n" , only for trace points
|
||||||
|
what: string;
|
||||||
|
end;
|
||||||
|
|
||||||
|
TGDBMI_Thread = record
|
||||||
|
id: ptrUint;
|
||||||
|
targetid: string; // named "target-id"
|
||||||
|
details: string;
|
||||||
|
state: string; // running | stopped
|
||||||
|
core: integer;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TCEGdbWidget }
|
{ TCEGdbWidget }
|
||||||
TCEGdbWidget = class(TCEWidget, ICEProjectObserver, ICEMultiDocObserver)
|
TCEGdbWidget = class(TCEWidget, ICEProjectObserver, ICEMultiDocObserver)
|
||||||
|
@ -37,7 +93,7 @@ type
|
||||||
fDocHandler: ICEMultiDocHandler;
|
fDocHandler: ICEMultiDocHandler;
|
||||||
fMsg: ICEMessagesDisplay;
|
fMsg: ICEMessagesDisplay;
|
||||||
fGdb: TCEProcess;
|
fGdb: TCEProcess;
|
||||||
fRegs: array[TCpuRegs] of UInt64;
|
fRegs: array[TCpuRegs] of ptrUint;
|
||||||
//
|
//
|
||||||
procedure startDebugging;
|
procedure startDebugging;
|
||||||
procedure killGdb;
|
procedure killGdb;
|
||||||
|
|
Loading…
Reference in New Issue