]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* infrun.c (handle_inferior_event): Always clear stop_stack_dummy.
authorDaniel Jacobowitz <drow@false.org>
Thu, 21 Sep 2006 20:43:50 +0000 (20:43 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 21 Sep 2006 20:43:50 +0000 (20:43 +0000)
        Don't check it for load events.

ChangeLog.csl
gdb/infrun.c

index 116b6bcd954c59bcce3b62bba4bc3a718b62ce53..c51db412d37dd50a47674550a672f74b4511dd4d 100644 (file)
@@ -1,3 +1,9 @@
+2006-09-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       gdb/
+       * infrun.c (handle_inferior_event): Always clear stop_stack_dummy.
+       Don't check it for load events.
+
 2006-09-15  Daniel Jacobowitz  <dan@codesourcery.com>
 
        gdb/testsuite/
index ae0d2cdffc3945ec10cba74ffb93a9ea07244a32..59324ae4a3c9b6f05558485d54ca0c56087b7b8e 100644 (file)
@@ -1256,6 +1256,9 @@ handle_inferior_event (struct execution_control_state *ecs)
   target_last_wait_ptid = ecs->ptid;
   target_last_waitstatus = *ecs->wp;
 
+  /* Always clear state belonging to the previous time we stopped.  */
+  stop_stack_dummy = 0;
+
   adjust_pc_after_break (ecs);
 
   switch (ecs->infwait_state)
@@ -1362,7 +1365,7 @@ handle_inferior_event (struct execution_control_state *ecs)
             gdb of events.  This allows the user to get control
             and place breakpoints in initializer routines for
             dynamically loaded objects (among other things).  */
-         if (stop_on_solib_events || stop_stack_dummy)
+         if (stop_on_solib_events)
            {
              stop_stepping (ecs);
              return;
@@ -1799,7 +1802,6 @@ handle_inferior_event (struct execution_control_state *ecs)
   ecs->another_trap = 0;
   bpstat_clear (&stop_bpstat);
   stop_step = 0;
-  stop_stack_dummy = 0;
   stop_print_frame = 1;
   ecs->random_signal = 0;
   stopped_by_random_signal = 0;