|
From: <sv...@va...> - 2012-10-07 21:58:15
|
florian 2012-10-07 22:58:07 +0100 (Sun, 07 Oct 2012)
New Revision: 2549
Log:
Pass VexArchInfo to the instrumentation functions.
Modified files:
trunk/priv/main_main.c
trunk/pub/libvex.h
Modified: trunk/pub/libvex.h (+2 -0)
===================================================================
--- trunk/pub/libvex.h 2012-10-07 20:44:40 +01:00 (rev 2548)
+++ trunk/pub/libvex.h 2012-10-07 22:58:07 +01:00 (rev 2549)
@@ -636,11 +636,13 @@
IRSB*,
VexGuestLayout*,
VexGuestExtents*,
+ VexArchInfo*,
IRType gWordTy, IRType hWordTy );
IRSB* (*instrument2) ( /*callback_opaque*/void*,
IRSB*,
VexGuestLayout*,
VexGuestExtents*,
+ VexArchInfo*,
IRType gWordTy, IRType hWordTy );
IRSB* (*finaltidy) ( IRSB* );
Modified: trunk/priv/main_main.c (+2 -0)
===================================================================
--- trunk/priv/main_main.c 2012-10-07 20:44:40 +01:00 (rev 2548)
+++ trunk/priv/main_main.c 2012-10-07 22:58:07 +01:00 (rev 2549)
@@ -679,6 +679,7 @@
irsb = vta->instrument1(vta->callback_opaque,
irsb, guest_layout,
vta->guest_extents,
+ &vta->archinfo_host,
guest_word_type, host_word_type);
vexAllocSanityCheck();
@@ -686,6 +687,7 @@
irsb = vta->instrument2(vta->callback_opaque,
irsb, guest_layout,
vta->guest_extents,
+ &vta->archinfo_host,
guest_word_type, host_word_type);
if (vex_traceflags & VEX_TRACE_INST) {
|