123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- {
- Fake GDBCon unit (including base from GDBInt)
- **********************************************************************}
- unit GDBCon;
- interface
- uses
- GdbInt;
- type
- PGDBController=^TGDBController;
- TGDBController=object(TGDBInterface)
- progname : pchar;
- progargs : pchar;
- in_command,
- init_count : longint;
- constructor Init;
- destructor Done;
- procedure CommandBegin(const s:string);virtual;
- procedure Command(const s:string);
- procedure CommandEnd(const s:string);virtual;
- procedure Reset;virtual;
- procedure StartTrace;
- procedure Run;virtual;
- procedure TraceStep;virtual;
- procedure TraceNext;virtual;
- procedure TraceStepI;virtual;
- procedure TraceNextI;virtual;
- procedure Continue;virtual;
- { needed for dos because newlines are only #10 (PM) }
- procedure WriteErrorBuf;
- procedure WriteOutputBuf;
- function GetOutput : Pchar;
- function GetError : Pchar;
- function LoadFile(const fn:string):boolean;
- procedure SetDir(const s : string);
- procedure SetArgs(const s : string);
- procedure ClearSymbols;
- end;
- { gdb does not allow \ in dir or filenames }
- procedure UnixDir(var s : string);
- implementation
- procedure UnixDir(var s : string);
- var i : longint;
- begin
- for i:=1 to length(s) do
- if s[i]='\' then s[i]:='/';
- end;
- constructor TGDBController.Init;
- begin
- inherited Init;
- end;
- destructor TGDBController.Done;
- begin
- inherited Done;
- end;
- procedure TGDBController.Command(const s:string);
- begin
- end;
- procedure TGDBController.CommandBegin(const s:string);
- begin
- end;
- procedure TGDBController.CommandEnd(const s:string);
- begin
- end;
- procedure TGDBController.Reset;
- begin
- end;
- function TGDBController.LoadFile(const fn:string):boolean;
- begin
- LoadFile:=true;
- end;
- procedure TGDBController.SetArgs(const s : string);
- begin
- end;
- procedure TGDBController.SetDir(const s : string);
- begin
- end;
- procedure TGDBController.StartTrace;
- begin
- Run;
- end;
- procedure TGDBController.Run;
- begin
- end;
- procedure TGDBController.TraceStep;
- begin
- end;
- procedure TGDBController.TraceNext;
- begin
- end;
- procedure TGDBController.TraceStepI;
- begin
- end;
- procedure TGDBController.TraceNextI;
- begin
- end;
- procedure TGDBController.Continue;
- begin
- end;
- procedure TGDBController.ClearSymbols;
- begin
- end;
- procedure TGDBController.WriteErrorBuf;
- begin
- end;
- procedure TGDBController.WriteOutputBuf;
- begin
- end;
- function TGDBController.GetOutput : Pchar;
- begin
- GetOutput:=nil;
- end;
- function TGDBController.GetError : Pchar;
- begin
- GetError:=nil;
- end;
- end.
|