2
0
Эх сурвалжийг харах

* create proper cfi, when registers are pushed

git-svn-id: branches/debug_eh@41382 -
florian 6 жил өмнө
parent
commit
a8c8cc1890

+ 4 - 1
compiler/x86/cgx86.pas

@@ -3408,7 +3408,10 @@ unit cgx86;
                 if current_procinfo.framepointer<>NR_STACK_POINTER_REG then
                   current_asmdata.asmcfi.cfa_offset(list,hreg,-(regsize+sizeof(pint)*2+localsize))
                 else
-                  current_asmdata.asmcfi.cfa_offset(list,hreg,-(regsize+sizeof(pint)+localsize));
+                  begin
+                    current_asmdata.asmcfi.cfa_offset(list,hreg,-(regsize+sizeof(pint)+localsize));
+                    current_asmdata.asmcfi.cfa_def_cfa_offset(list,regsize+localsize+sizeof(pint));
+                  end;
               end;
         end;