From 6c0d3f6a034437ee436b20784a4a4eee92163395 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 13 Jun 2001 22:56:16 +0000 Subject: 2001-06-13 Michael Snyder * 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. --- gdb/infrun.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 09cf494..5a0c5b4 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; -- cgit v1.1