Move VG_(get_EIP)() out of vg_execontext.c, where it doesn't belong, into
vg_main.c, where it doesn't also really belong but at least it's now next to
VG_(get_stack_pointer)() which is very similar.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3395 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index 41f5c0f..dccdc57 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -329,6 +329,11 @@
return STACK_PTR( VG_(threads)[tid].arch );
}
+Addr VG_(get_EIP) ( ThreadId tid )
+{
+ return INSTR_PTR( VG_(threads)[tid].arch );
+}
+
/*====================================================================*/
/*=== Check we were launched by stage 1 ===*/