[PATCHv4 0/2] Restore thread and frame patches

Andrew Burgess
2020-11-06T23:02:21Z

V4 is a rebase of v3 to take account of a recent commit by Pedro. As
a result I've dropped patch #1 from the v3 series. The remaining two
patches have a couple of minor updates as a result, but Pedro's recent
commit basically replaced my patch #1.

[ I think the v3 patch #1 did add value that wasn't included in
Pedro's commit, but I'd rather this series just focus on the
remaining two patches for now. I might resurrect the old #1 at a
later date. ]

No changes to documentation in this iteration.

Retested, with no regressions.

Thanks,
Andrew

---

Andrew Burgess (2):
gdb: Restore previously selected thread when switching inferior
gdb: Track the current frame for each thread

gdb/ChangeLog | 34 ++
gdb/NEWS | 19 +
gdb/doc/ChangeLog | 14 +
gdb/doc/gdb.texinfo | 42 ++-
gdb/frame.c | 26 ++
gdb/gdbthread.h | 13 +-
gdb/inferior.c | 58 ++-
gdb/inferior.h | 10 +
gdb/testsuite/ChangeLog | 10 +
.../gdb.threads/restore-selected-frame.c | 85 +++++
.../gdb.threads/restore-selected-frame.exp | 336 ++++++++++++++++++
gdb/testsuite/gdb.threads/restore-thread.c | 248 +++++++++++++
gdb/testsuite/gdb.threads/restore-thread.exp | 219 ++++++++++++
gdb/thread.c | 61 +++-
14 files changed, 1160 insertions(+), 15 deletions(-)
create mode 100644 gdb/testsuite/gdb.threads/restore-selected-frame.c
create mode 100644 gdb/testsuite/gdb.threads/restore-selected-frame.exp
create mode 100644 gdb/testsuite/gdb.threads/restore-thread.c
create mode 100644 gdb/testsuite/gdb.threads/restore-thread.exp

--
2.25.4