From: Julian Seward Date: Tue, 19 Aug 2008 11:15:10 +0000 (+0000) Subject: Add a description of the FP offset/size to type VexGuestLayout. X-Git-Tag: svn/VALGRIND_3_4_1^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4abdaf33fd4016bdbfa06fdd0731dff53f8ff884;p=thirdparty%2Fvalgrind.git Add a description of the FP offset/size to type VexGuestLayout. git-svn-id: svn://svn.valgrind.org/vex/trunk@1864 --- diff --git a/VEX/priv/guest-amd64/ghelpers.c b/VEX/priv/guest-amd64/ghelpers.c index d3140f9c4b..89dddef137 100644 --- a/VEX/priv/guest-amd64/ghelpers.c +++ b/VEX/priv/guest-amd64/ghelpers.c @@ -2349,6 +2349,10 @@ VexGuestLayout .offset_SP = offsetof(VexGuestAMD64State,guest_RSP), .sizeof_SP = 8, + /* Describe the frame pointer. */ + .offset_FP = offsetof(VexGuestAMD64State,guest_RBP), + .sizeof_FP = 8, + /* Describe the instruction pointer. */ .offset_IP = offsetof(VexGuestAMD64State,guest_RIP), .sizeof_IP = 8, diff --git a/VEX/priv/guest-ppc/ghelpers.c b/VEX/priv/guest-ppc/ghelpers.c index cc5a9f2111..781cc85673 100644 --- a/VEX/priv/guest-ppc/ghelpers.c +++ b/VEX/priv/guest-ppc/ghelpers.c @@ -757,6 +757,10 @@ VexGuestLayout .offset_SP = offsetof(VexGuestPPC32State,guest_GPR1), .sizeof_SP = 4, + /* Describe the frame pointer. */ + .offset_FP = offsetof(VexGuestPPC32State,guest_GPR1), + .sizeof_FP = 4, + /* Describe the instruction pointer. */ .offset_IP = offsetof(VexGuestPPC32State,guest_CIA), .sizeof_IP = 4, @@ -795,6 +799,10 @@ VexGuestLayout .offset_SP = offsetof(VexGuestPPC64State,guest_GPR1), .sizeof_SP = 8, + /* Describe the frame pointer. */ + .offset_FP = offsetof(VexGuestPPC64State,guest_GPR1), + .sizeof_FP = 8, + /* Describe the instruction pointer. */ .offset_IP = offsetof(VexGuestPPC64State,guest_CIA), .sizeof_IP = 8, diff --git a/VEX/priv/guest-x86/ghelpers.c b/VEX/priv/guest-x86/ghelpers.c index 1cf5a594f7..a44e5e6b15 100644 --- a/VEX/priv/guest-x86/ghelpers.c +++ b/VEX/priv/guest-x86/ghelpers.c @@ -2691,6 +2691,10 @@ VexGuestLayout .offset_SP = offsetof(VexGuestX86State,guest_ESP), .sizeof_SP = 4, + /* Describe the frame pointer. */ + .offset_FP = offsetof(VexGuestX86State,guest_EBP), + .sizeof_FP = 4, + /* Describe the instruction pointer. */ .offset_IP = offsetof(VexGuestX86State,guest_EIP), .sizeof_IP = 4, diff --git a/VEX/pub/libvex.h b/VEX/pub/libvex.h index 5cf21ea15f..57468d6f9d 100644 --- a/VEX/pub/libvex.h +++ b/VEX/pub/libvex.h @@ -319,6 +319,9 @@ typedef /* Whereabouts is the stack pointer? */ Int offset_SP; Int sizeof_SP; /* 4 or 8 */ + /* Whereabouts is the frame pointer? */ + Int offset_FP; + Int sizeof_FP; /* 4 or 8 */ /* Whereabouts is the instruction pointer? */ Int offset_IP; Int sizeof_IP; /* 4 or 8 */