소스 검색

* 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