2007-02-02 Denis Pilat <denis.pilat@st.com>
authorDenis Pilat <denis.pilat@st.com>
Fri, 2 Feb 2007 12:18:37 +0000 (12:18 +0000)
committerDenis Pilat <denis.pilat@st.com>
Fri, 2 Feb 2007 12:18:37 +0000 (12:18 +0000)
commit99b3d57478fc85862a69b64bd2752d0bb9dfd5e7
treec832eee4731d5f0721d046b6d06e8eb89e24b3b9
parentd3c598de8ea13d894fbb25194902241373e64cf5
2007-02-02  Denis Pilat  <denis.pilat@st.com>

* thread.c (make_cleanup_restore_current_thread): New function.
(info_threads_command): Use of make_cleanup_restore_current_thread
to restore the current thread and the selected frame.
(restore_selected_frame): New function.
(struct current_thread_cleanup): Add frame_id field.
(do_restore_current_thread_cleanup): Add restoring of the selected
frame.
(make_cleanup_restore_current_thread): Likewise.
(thread_apply_all_command): backup the selected frame while
entering the function and restore it at exit.
(thread_apply_command): Likewise.
gdb/ChangeLog
gdb/thread.c