diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-09-21 20:43:50 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-09-21 20:43:50 +0000 |
commit | 75e047010efaf697b312396459d89485d66e3d7e (patch) | |
tree | 2800585089b6f985486ab5eb79c59923e35a8a44 | |
parent | 2514098ed897ccaa00845f97c1111a72d84efed1 (diff) | |
download | gdb-75e047010efaf697b312396459d89485d66e3d7e.zip gdb-75e047010efaf697b312396459d89485d66e3d7e.tar.gz gdb-75e047010efaf697b312396459d89485d66e3d7e.tar.bz2 |
* infrun.c (handle_inferior_event): Always clear stop_stack_dummy.
Don't check it for load events.
-rw-r--r-- | ChangeLog.csl | 6 | ||||
-rw-r--r-- | gdb/infrun.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index 116b6bc..c51db41 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -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/ diff --git a/gdb/infrun.c b/gdb/infrun.c index ae0d2cd..59324ae 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; |