]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Move VG_(get_EIP)() out of vg_execontext.c, where it doesn't belong, into
authorNicholas Nethercote <njn@valgrind.org>
Mon, 21 Mar 2005 00:01:36 +0000 (00:01 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 21 Mar 2005 00:01:36 +0000 (00:01 +0000)
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

coregrind/vg_execontext.c
coregrind/vg_main.c

index 24f99593105a2c928e3623600c869f5559c6b457..8683055e0487acf8571e987143f73cedc88be401 100644 (file)
@@ -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                                                          ---*/
 /*--------------------------------------------------------------------*/
index 41f5c0f437bdb4fbd5b3fd65e81f28f60445db51..dccdc5775189261696ff9307d7bf9b8878c46f48 100644 (file)
@@ -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                            ===*/