]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a description of the FP offset/size to type VexGuestLayout.
authorJulian Seward <jseward@acm.org>
Tue, 19 Aug 2008 11:15:10 +0000 (11:15 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 19 Aug 2008 11:15:10 +0000 (11:15 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1864

VEX/priv/guest-amd64/ghelpers.c
VEX/priv/guest-ppc/ghelpers.c
VEX/priv/guest-x86/ghelpers.c
VEX/pub/libvex.h

index d3140f9c4ba1b3cbae3119caf13d1adef357c413..89dddef1377a78c24a44af292920ca1714efeb5a 100644 (file)
@@ -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,
index cc5a9f2111d7c12be891a041cc1cc39fe90c536e..781cc85673d6e047aa7739f19770b56741e1e0d4 100644 (file)
@@ -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,
index 1cf5a594f717c17f4d4e60011d63bcd3da5089b5..a44e5e6b159e8e91fee108b6a3d196be35cbe40d 100644 (file)
@@ -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,
index 5cf21ea15f2a0c12ae48bb2a0addbf337c34d4bd..57468d6f9dffaaf28fa5fdc38c0e9316a825dfc8 100644 (file)
@@ -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 */