diff options
author | Michael Snyder <msnyder@specifix.com> | 2001-06-13 22:56:16 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2001-06-13 22:56:16 +0000 |
commit | e8b35f4e5586ff02bc736d4e521fd69c05efddae (patch) | |
tree | 54572040e731786dc2931f5af3adecc766d6f670 /gdb/infrun.c | |
parent | e625a1f43dcd86d605599570a71186ba204134d9 (diff) | |
download | gdb-e8b35f4e5586ff02bc736d4e521fd69c05efddae.tar.gz |
2001-06-13 Michael Snyder <msnyder@redhat.com>
* gdbthread.h (struct thread_info): Add new fields:
current_line, current_symtab, step_sp, for saved infrun state.
* thread.c (save_infrun_state, load_infrun_state): Save and
restore current_line, current_symtab, and step_sp.
(add_thread): Rather than adding assignments to initialize
the new fields, just use memset (tp, 0, sizeof (*tp).
This way future new fields will not be overlooked.
* infrun.c (handle_inferior_event): Save and restore save_sp,
current_line, and current_symtab when switching threads.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 09cf494142d..5a0c5b4de10 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2001,7 +2001,9 @@ handle_inferior_event (struct execution_control_state *ecs) ecs->another_trap, ecs->stepping_through_solib_after_catch, ecs->stepping_through_solib_catchpoints, - ecs->stepping_through_sigtramp); + ecs->stepping_through_sigtramp, + ecs->current_line, ecs->current_symtab, + step_sp); /* Load infrun state for the new thread. */ load_infrun_state (ecs->ptid, &prev_pc, @@ -2013,7 +2015,9 @@ handle_inferior_event (struct execution_control_state *ecs) &ecs->another_trap, &ecs->stepping_through_solib_after_catch, &ecs->stepping_through_solib_catchpoints, - &ecs->stepping_through_sigtramp); + &ecs->stepping_through_sigtramp, + &ecs->current_line, &ecs->current_symtab, + &step_sp); } inferior_ptid = ecs->ptid; |