* stack.c (return_command): Pop dummy frame if we just returned from
authorPeter Schauer <Peter.Schauer@mytum.de>
Mon, 6 Nov 2000 20:25:36 +0000 (20:25 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Mon, 6 Nov 2000 20:25:36 +0000 (20:25 +0000)
a stop in a call dummy.

gdb/ChangeLog
gdb/stack.c

index 6bf3f03fa81d5ae6074b6e1f4b49990caabae956..264e74410865716dd4b9f73b3adefa85a14b6e5d 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-06  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
+
+       * stack.c (return_command):  Pop dummy frame if we just returned from
+       a stop in a call dummy.
+
 2000-11-05  Kevin Buettner  <kevinb@redhat.com>
 
        * v850-tdep.c (handle_prepare, handle_pushm): Remove extraneous
index 859627671e1ae74f4903353d74b17fbcf777e46c..e0f38e27cf9d6399710a05a066a73a54292bdb67 100644 (file)
@@ -1892,6 +1892,12 @@ return_command (char *retval_exp, int from_tty)
   if (retval_exp)
     set_return_value (return_value);
 
+  /* If we are at the end of a call dummy now, pop the dummy frame too.  */
+
+  if (CALL_DUMMY_HAS_COMPLETED (read_pc(), read_sp (),
+                               FRAME_FP (get_current_frame ())))
+    POP_FRAME;
+
   /* If interactive, print the frame that is now current.  */
 
   if (from_tty)