public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCHv2 0/3] Restore thread and frame patches
@ 2020-04-27 22:04 Andrew Burgess
  2020-04-27 22:04 ` [PATCHv2 1/3] gdb: Restore previously selected thread when switching inferior Andrew Burgess
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrew Burgess @ 2020-04-27 22:04 UTC (permalink / raw)
  To: gdb-patches; +Cc: palves, Andrew Burgess

This series merges together and replaces two previously separate patches:

  https://sourceware.org/pipermail/gdb-patches/2020-February/166202.html
  https://sourceware.org/pipermail/gdb-patches/2020-April/167215.html

The first had no feedback, while the second had some positive
feedback, but also some negative feedback.

The concerns raised were that making this change broke the existing
GDB debug model, and added unneeded complexity.  I'm not sure what I
can do about the complexity, but to address the first point I've made
all of these changes optional in both the first and third patches of
this new series, and the default for both the new options is off.

In the first patch of this new series I updated the technique I use
for preserving the thread, previously I was storing inferior_ptid,
however, after seeing Pedro's recent series[1], I switched to storing
the thread_info pointer.

I tested this series on top of current master, and also on top of
Pedro's recent series[1].

All feedback welcome.

Thanks,
Andrew

[1] https://sourceware.org/pipermail/gdb-patches/2020-April/167578.html

---

Andrew Burgess (3):
  gdb: Restore previously selected thread when switching inferior
  gdb: Unify two copies of restore_selected_frame
  gdb: Track the current frame for each thread

 gdb/ChangeLog                                 |  52 +++
 gdb/NEWS                                      |  19 +
 gdb/doc/ChangeLog                             |  14 +
 gdb/doc/gdb.texinfo                           |  42 ++-
 gdb/frame.c                                   |  87 +++++
 gdb/frame.h                                   |  68 ++++
 gdb/gdbthread.h                               |  15 +-
 gdb/inferior.c                                |  58 ++-
 gdb/inferior.h                                |  10 +
 gdb/infrun.c                                  |  26 +-
 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    | 246 +++++++++++++
 gdb/testsuite/gdb.threads/restore-thread.exp  | 220 ++++++++++++
 gdb/thread.c                                  | 135 +++----
 16 files changed, 1315 insertions(+), 108 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.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-29  9:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27 22:04 [PATCHv2 0/3] Restore thread and frame patches Andrew Burgess
2020-04-27 22:04 ` [PATCHv2 1/3] gdb: Restore previously selected thread when switching inferior Andrew Burgess
2020-04-28 15:49   ` Aktemur, Tankut Baris
2020-04-27 22:04 ` [PATCHv2 2/3] gdb: Unify two copies of restore_selected_frame Andrew Burgess
2020-04-28 15:43   ` Aktemur, Tankut Baris
2020-04-29  9:17     ` Andrew Burgess
2020-04-27 22:04 ` [PATCHv2 3/3] gdb: Track the current frame for each thread Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).