public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Exit during detach
@ 2023-07-18 14:31 Andrew Burgess
  2023-07-18 14:31 ` [PATCH 1/2] gdb: fix possible nullptr dereference in a remote_debug_printf call Andrew Burgess
  2023-07-18 14:31 ` [PATCH 2/2] gdb: handle main thread exiting during detach Andrew Burgess
  0 siblings, 2 replies; 12+ messages in thread
From: Andrew Burgess @ 2023-07-18 14:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

Ran into an issue in non-stop mode where an exit arriving during a
detach would cause GDB to crash.

---

Andrew Burgess (2):
  gdb: fix possible nullptr dereference in a remote_debug_printf call
  gdb: handle main thread exiting during detach

 gdb/linux-nat.c                               |  19 ++-
 gdb/remote.c                                  |  23 ++-
 .../main-thread-exit-during-detach.c          |  59 ++++++++
 .../main-thread-exit-during-detach.exp        | 143 ++++++++++++++++++
 gdbserver/mem-break.cc                        |   7 +
 5 files changed, 241 insertions(+), 10 deletions(-)
 create mode 100644 gdb/testsuite/gdb.threads/main-thread-exit-during-detach.c
 create mode 100644 gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp


base-commit: b26b06dd42fbd9a75eebb4c943bf55a88562b81f
-- 
2.25.4


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

end of thread, other threads:[~2023-10-26 17:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-18 14:31 [PATCH 0/2] Exit during detach Andrew Burgess
2023-07-18 14:31 ` [PATCH 1/2] gdb: fix possible nullptr dereference in a remote_debug_printf call Andrew Burgess
2023-07-19 15:01   ` Tom Tromey
2023-08-03  9:07     ` Andrew Burgess
2023-07-18 14:31 ` [PATCH 2/2] gdb: handle main thread exiting during detach Andrew Burgess
2023-07-18 14:40   ` Andrew Burgess
2023-08-03  9:50   ` [PATCHv2] " Andrew Burgess
2023-08-23 11:26     ` [PATCHv3] " Andrew Burgess
2023-09-29 13:57       ` [PATCHv4] " Andrew Burgess
2023-10-18  9:49         ` [PATCHv5] " Andrew Burgess
2023-10-25 21:40           ` Kevin Buettner
2023-10-26 17:26             ` 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).