2001-06-13 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 13 Jun 2001 22:56:16 +0000 (22:56 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 13 Jun 2001 22:56:16 +0000 (22:56 +0000)
commit6c0d3f6a034437ee436b20784a4a4eee92163395
tree516ea56a75a018cd979f5e9023301509d9f8befa
parent16075aced5830467024fec7c8229cbcbfa3a47c9
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.
gdb/ChangeLog
gdb/gdbthread.h
gdb/infrun.c
gdb/thread.c