瀏覽代碼

* 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 年之前
父節點
當前提交
1e692a2d2e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ide/gdbmicon.pas

+ 1 - 1
ide/gdbmicon.pas

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