From: Nicholas Nethercote Date: Mon, 21 Mar 2005 00:01:36 +0000 (+0000) Subject: Move VG_(get_EIP)() out of vg_execontext.c, where it doesn't belong, into X-Git-Tag: svn/VALGRIND_3_0_0~923 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91f14c659bfb59a85147d056158a1ac3a05d05f3;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/coregrind/vg_execontext.c b/coregrind/vg_execontext.c index 24f9959310..8683055e04 100644 --- a/coregrind/vg_execontext.c +++ b/coregrind/vg_execontext.c @@ -406,13 +406,6 @@ UInt VG_(stack_snapshot) ( ThreadId tid, Addr* ips, UInt n_ips ) return stack_snapshot2(ips, n_ips, ip, fp, sp, stack_highest_word); } - -Addr VG_(get_EIP) ( ThreadId tid ) -{ - return INSTR_PTR(VG_(threads)[ tid ].arch); -} - - /*--------------------------------------------------------------------*/ /*--- end ---*/ /*--------------------------------------------------------------------*/ diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index 41f5c0f437..dccdc57751 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -329,6 +329,11 @@ Addr VG_(get_stack_pointer) ( ThreadId tid ) 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 ===*/