Generate offsets needed for V on amd64.
git-svn-id: svn://svn.valgrind.org/vex/trunk@1067 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/auxprogs/genoffsets.c b/auxprogs/genoffsets.c
index 7c80ec1..88ff8e2 100644
--- a/auxprogs/genoffsets.c
+++ b/auxprogs/genoffsets.c
@@ -5,6 +5,7 @@
#include "../pub/libvex_basictypes.h"
#include "../pub/libvex_guest_x86.h"
+#include "../pub/libvex_guest_amd64.h"
Int main ( void )
{
@@ -32,5 +33,28 @@
printf("#define OFFSET_x86_ESP %d\n",
offsetof(VexGuestX86State,guest_ESP));
+
+
+ printf("#define OFFSET_amd64_RAX %d\n",
+ offsetof(VexGuestAMD64State,guest_RAX));
+
+ printf("#define OFFSET_amd64_RDI %d\n",
+ offsetof(VexGuestAMD64State,guest_RDI));
+
+ printf("#define OFFSET_amd64_RSI %d\n",
+ offsetof(VexGuestAMD64State,guest_RSI));
+
+ printf("#define OFFSET_amd64_RDX %d\n",
+ offsetof(VexGuestAMD64State,guest_RDX));
+
+ printf("#define OFFSET_amd64_R8 %d\n",
+ offsetof(VexGuestAMD64State,guest_R8));
+
+ printf("#define OFFSET_amd64_R9 %d\n",
+ offsetof(VexGuestAMD64State,guest_R9));
+
+ printf("#define OFFSET_amd64_R10 %d\n",
+ offsetof(VexGuestAMD64State,guest_R10));
+
return 0;
}