|
@@ -133,6 +133,9 @@ begin
|
|
CommandBegin(s);
|
|
CommandBegin(s);
|
|
GDBOutputBuf.Reset;
|
|
GDBOutputBuf.Reset;
|
|
GDBErrorBuf.Reset;
|
|
GDBErrorBuf.Reset;
|
|
|
|
+{$ifdef GDB_RAW_OUTPUT}
|
|
|
|
+ GDBRawBuf.reset;
|
|
|
|
+{$endif GDB_RAW_OUTPUT}
|
|
i_gdb_command(s);
|
|
i_gdb_command(s);
|
|
CommandEnd(s);
|
|
CommandEnd(s);
|
|
Dec(in_command);
|
|
Dec(in_command);
|
|
@@ -464,6 +467,9 @@ begin
|
|
Command('-environment-cd ' + cmd);
|
|
Command('-environment-cd ' + cmd);
|
|
GDBOutputBuf.Reset;
|
|
GDBOutputBuf.Reset;
|
|
GDBErrorBuf.Reset;
|
|
GDBErrorBuf.Reset;
|
|
|
|
+{$ifdef GDB_RAW_OUTPUT}
|
|
|
|
+ GDBRawBuf.reset;
|
|
|
|
+{$endif GDB_RAW_OUTPUT}
|
|
UnixDir(fn);
|
|
UnixDir(fn);
|
|
Command('-file-exec-and-symbols ' + fn);
|
|
Command('-file-exec-and-symbols ' + fn);
|
|
if not GDB.ResultRecord.Success then
|
|
if not GDB.ResultRecord.Success then
|
|
@@ -483,7 +489,9 @@ var
|
|
begin
|
|
begin
|
|
hs:=s;
|
|
hs:=s;
|
|
UnixDir(hs);
|
|
UnixDir(hs);
|
|
- Command('-environment-cd ' + hs);
|
|
|
|
|
|
+ { Avoid error message if s is empty }
|
|
|
|
+ if hs<>'' then
|
|
|
|
+ Command('-environment-cd ' + hs);
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TGDBController.SetArgs(const s: string);
|
|
procedure TGDBController.SetArgs(const s: string);
|