[RFC 0/2] Restore previously selected frame when switching thread
Andrew Burgess
andrew.burgess@embecosm.com
Tue Feb 25 15:13:00 GMT 2020
The interesting part of this series is patch #2, where I change GDB so
that the current frame is tracked per thread, and GDB will restore the
current frame when switching back to a previously visited thread.
This is RFC as there were some aspects of the patch that I wasn't 100%
sure on, these are all described in the patch #2 commit message.
All feedback and thoughts welcome.
Thanks,
Andrew
---
Andrew Burgess (2):
gdb: Unify two copies of restore_selected_frame
gdb: Track the current frame for each thread
gdb/ChangeLog | 42 +++
gdb/NEWS | 12 +
gdb/doc/ChangeLog | 9 +
gdb/doc/gdb.texinfo | 33 ++-
gdb/frame.c | 87 ++++++
gdb/frame.h | 60 ++++
gdb/gdbthread.h | 15 +-
gdb/infrun.c | 26 +-
gdb/testsuite/ChangeLog | 6 +
.../gdb.mi/user-selected-context-sync.exp | 16 +-
gdb/testsuite/gdb.threads/restore-selected-frame.c | 85 ++++++
.../gdb.threads/restore-selected-frame.exp | 322 +++++++++++++++++++++
gdb/thread.c | 127 ++++----
13 files changed, 734 insertions(+), 106 deletions(-)
create mode 100644 gdb/testsuite/gdb.threads/restore-selected-frame.c
create mode 100644 gdb/testsuite/gdb.threads/restore-selected-frame.exp
--
2.14.5
More information about the Gdb-patches
mailing list