瀏覽代碼

* fixed gdb/mi crash when program exits with exit code >= $80000000

git-svn-id: trunk@30176 -
nickysn 10 年之前
父節點
當前提交
39dbfcc3d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ide/gdbmiint.pas

+ 1 - 1
ide/gdbmiint.pas

@@ -434,7 +434,7 @@ Ignore:
       end;
     'exited':
       begin
-        ExitCode := GDB.ExecAsyncOutput.Parameters['exit-code'].AsLongInt;
+        ExitCode := LongInt(GDB.ExecAsyncOutput.Parameters['exit-code'].AsLongWord);
         DebuggerScreen;
         current_pc := 0;
         Debuggee_started := False;