aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-06-13 22:56:16 +0000
committerMichael Snyder <msnyder@vmware.com>2001-06-13 22:56:16 +0000
commit6c0d3f6a034437ee436b20784a4a4eee92163395 (patch)
tree516ea56a75a018cd979f5e9023301509d9f8befa /gdb/infrun.c
parent16075aced5830467024fec7c8229cbcbfa3a47c9 (diff)
downloadgdb-6c0d3f6a034437ee436b20784a4a4eee92163395.zip
gdb-6c0d3f6a034437ee436b20784a4a4eee92163395.tar.gz
gdb-6c0d3f6a034437ee436b20784a4a4eee92163395.tar.bz2
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.c8
1 files changed, 6 insertions, 2 deletions
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;