2004-07-23 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Fri, 23 Jul 2004 19:37:21 +0000 (19:37 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 23 Jul 2004 19:37:21 +0000 (19:37 +0000)
* infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.

gdb/ChangeLog
gdb/infrun.c

index 0cc9531995ca96c097a4863f5dde10ba13e78bce..3957056cb7ad86b4dcfe71822c239a72043352f7 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-23  Andrew Cagney  <cagney@gnu.org>
+
+       * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
+       DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
+
 2004-07-23  Martin Hunt  <hunt@redhat.com>
        Kevin Buettner <kevinb@redhat.com>
 
index 69cd954186d948c790ce4b67897240e518b2e6d3..47ab1064b5f38f8f5878d98ea156954997008772 100644 (file)
@@ -2344,8 +2344,7 @@ process_event_stop_test:
         DEPRECATED_IGNORE_HELPER_CALL, SKIP_TRAMPOLINE_CODE,
         skip_language_trampoline frame, et.al.) need to be replaced
         with generic attributes bound to the frame's function.  */
-      if (step_over_calls == STEP_OVER_ALL
-         || DEPRECATED_IGNORE_HELPER_CALL (stop_pc))
+      if (DEPRECATED_IGNORE_HELPER_CALL (stop_pc))
        {
          /* We're doing a "next", set a breakpoint at callee's return
             address (the address at which the caller will
@@ -2356,6 +2355,16 @@ process_event_stop_test:
          return;
        }
 #endif
+      if (step_over_calls == STEP_OVER_ALL)
+       {
+         /* We're doing a "next", set a breakpoint at callee's return
+            address (the address at which the caller will
+            resume).  */
+         insert_step_resume_breakpoint (get_prev_frame (get_current_frame ()),
+                                        ecs);
+         keep_going (ecs);
+         return;
+       }
 
       /* If we are in a function call trampoline (a stub between the
         calling routine and the real function), locate the real