Browse Source

* use -data-evaluate-expression instead of -var-evaluate-expression in the
gdb/mi's TGDBController.PrintCommand() method, because
-var-evaluate-expressions produces no meaningful results at least with my gdb
(7.8.2) and according to the docs, requires variable objects to be created
with -var-create before using it

git-svn-id: trunk@30051 -

nickysn 10 years ago
parent
commit
1e692a2d2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ide/gdbmicon.pas

+ 1 - 1
ide/gdbmicon.pas

@@ -302,7 +302,7 @@ end;
 { print }
 { print }
 function TGDBController.PrintCommand(const expr : string): pchar;
 function TGDBController.PrintCommand(const expr : string): pchar;
 begin
 begin
-  Command('-var-evaluate-expression '+expr);
+  Command('-data-evaluate-expression '+expr);
   if GDB.ResultRecord.Success then
   if GDB.ResultRecord.Success then
     PrintCommand:=strnew(pchar(GDB.ResultRecord.Parameters['value'].AsString))
     PrintCommand:=strnew(pchar(GDB.ResultRecord.Parameters['value'].AsString))
   else
   else