* inferior.h (read_sp): Remove prototype.
[deliverable/binutils-gdb.git] / gdb / infcall.c
index c4435e5822949c4091a9054bcfa040a27de11443..5eb9ca3f942e10ad52e6ee8725229f65320bad3d 100644 (file)
@@ -368,7 +368,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
 
   /* Ensure that the initial SP is correctly aligned.  */
   {
-    CORE_ADDR old_sp = read_sp ();
+    CORE_ADDR old_sp = get_frame_sp (get_current_frame ());
     if (gdbarch_frame_align_p (current_gdbarch))
       {
        sp = gdbarch_frame_align (current_gdbarch, old_sp);
This page took 0.028603 seconds and 4 git commands to generate.