]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Arch-abstraction:
authorNicholas Nethercote <n.nethercote@gmail.com>
Wed, 20 Oct 2004 11:05:34 +0000 (11:05 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Wed, 20 Oct 2004 11:05:34 +0000 (11:05 +0000)
- Abstractify one remaining mention of the stack pointer.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2816

coregrind/vg_main.c

index cf61287d6809bd5fd95f2292c1f42bb2c1be1b2f..7076d625e216985f7e19ce2d0980aa73e979a0de 100644 (file)
@@ -339,7 +339,7 @@ void VG_(unimplemented) ( Char* msg )
 
 Addr VG_(get_stack_pointer) ( void )
 {
-   return VG_(baseBlock)[VGOFF_(m_esp)];
+   return VG_(baseBlock)[VGOFF_STACK_PTR];
 }
 
 /* Debugging thing .. can be called from assembly with OYNK macro. */