From: Daniel Jacobowitz Date: Thu, 21 Sep 2006 20:43:50 +0000 (+0000) Subject: * infrun.c (handle_inferior_event): Always clear stop_stack_dummy. X-Git-Tag: gdb-csl-symbian-6_4_50_20060226-12~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75e047010efaf697b312396459d89485d66e3d7e;p=thirdparty%2Fbinutils-gdb.git * infrun.c (handle_inferior_event): Always clear stop_stack_dummy. Don't check it for load events. --- diff --git a/ChangeLog.csl b/ChangeLog.csl index 116b6bcd954..c51db412d37 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,9 @@ +2006-09-21 Daniel Jacobowitz + + gdb/ + * infrun.c (handle_inferior_event): Always clear stop_stack_dummy. + Don't check it for load events. + 2006-09-15 Daniel Jacobowitz gdb/testsuite/ diff --git a/gdb/infrun.c b/gdb/infrun.c index ae0d2cdffc3..59324ae4a3c 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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;