浏览代码

* fixed getting the FPC_BREAK_ERROR parameters on i386

git-svn-id: trunk@29803 -
nickysn 10 年之前
父节点
当前提交
3b55dd919d
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      ide/fpdebug.pas

+ 6 - 2
ide/fpdebug.pas

@@ -1311,8 +1311,12 @@ const
 begin
   // Procedure HandleErrorAddrFrame (Errno : longint;addr : CodePointer; frame : Pointer);
   //  [public,alias:'FPC_BREAK_ERROR']; {$ifdef cpui386} register; {$endif}
-  {TODO: handle archs with register calling conventions}
-{$if defined(x86_64)}
+{$if defined(i386)}
+  GetFPCBreakErrorParameters :=
+    GetIntRegister('eax', ExitCode) and
+    GetIntRegister('edx', ExitAddr) and
+    GetIntRegister('ecx', ExitFrame);
+{$elseif defined(x86_64)}
   {$ifdef Win64}
     GetFPCBreakErrorParameters :=
       GetIntRegister('rcx', ExitCode) and