From 367bc18bc5fdb3a3a84a3757da2e81fb50a2dfe4 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 2 Mar 2019 23:03:32 +0000 Subject: [PATCH] * cfa for x86-64 fixed git-svn-id: branches/debug_eh@41563 - --- compiler/x86/cgx86.pas | 2 +- compiler/x86_64/cgcpu.pas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/x86/cgx86.pas b/compiler/x86/cgx86.pas index adbbcfdcd9..6e66e1e64a 100644 --- a/compiler/x86/cgx86.pas +++ b/compiler/x86/cgx86.pas @@ -3722,7 +3722,7 @@ unit cgx86; end; current_asmdata.asmcfi.cfa_restore(list,NR_EBP); current_asmdata.asmcfi.cfa_def_cfa_register(list,NR_ESP); - current_asmdata.asmcfi.cfa_def_cfa_offset(list,4); + current_asmdata.asmcfi.cfa_def_cfa_offset(list,sizeof(pint)); end; diff --git a/compiler/x86_64/cgcpu.pas b/compiler/x86_64/cgcpu.pas index e6a59d4879..8919601623 100644 --- a/compiler/x86_64/cgcpu.pas +++ b/compiler/x86_64/cgcpu.pas @@ -185,7 +185,7 @@ unit cgcpu; else begin current_asmdata.asmcfi.cfa_offset(list,hreg,-(regsize+sizeof(pint)+localsize)); - current_asmdata.asmcfi.cfa_def_cfa_offset(list,regsize+localsize+sizeof(pint)); + current_asmdata.asmcfi.cfa_def_cfa_offset(list,regsize+sizeof(pint)+localsize); end; end; end;