Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] Better error handling when creating threads with clone()
@ 2026-04-07 10:22 Andrew Burgess
  2026-04-07 10:22 ` [PATCH 1/3] gdb: int to bool conversion in linux-thread-db.c Andrew Burgess
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrew Burgess @ 2026-04-07 10:22 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

A Fedora GDB bug got me looking at error handling relating to GDB's
clone handling, and thread-db thread adoption.

The first two patches are some refactoring in this area, and the third
patch changes and improves error handling so that GDB is better able
to track threads even if thread-db thread adoption fails.

Thanks,
Andrew

---

Andrew Burgess (3):
  gdb: int to bool conversion in linux-thread-db.c
  gdb: add some asserts to thread_db_notice_clone
  gdb: improve error handling for thread-db thread adoption

 gdb/linux-nat.c                             |  25 +-
 gdb/linux-nat.h                             |   2 +-
 gdb/linux-thread-db.c                       |  67 +++--
 gdb/testsuite/gdb.threads/clone-bad-tls.c   | 193 +++++++++++++
 gdb/testsuite/gdb.threads/clone-bad-tls.exp | 294 ++++++++++++++++++++
 gdbserver/thread-db.cc                      |  14 +-
 6 files changed, 553 insertions(+), 42 deletions(-)
 create mode 100644 gdb/testsuite/gdb.threads/clone-bad-tls.c
 create mode 100644 gdb/testsuite/gdb.threads/clone-bad-tls.exp


base-commit: 9d3cf9efd51ebae3f45bb49e3544cb7eeb63a138
-- 
2.25.4


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

end of thread, other threads:[~2026-05-06 19:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-07 10:22 [PATCH 0/3] Better error handling when creating threads with clone() Andrew Burgess
2026-04-07 10:22 ` [PATCH 1/3] gdb: int to bool conversion in linux-thread-db.c Andrew Burgess
2026-05-05 18:19   ` Keith Seitz
2026-04-07 10:22 ` [PATCH 2/3] gdb: add some asserts to thread_db_notice_clone Andrew Burgess
2026-05-05 18:24   ` Keith Seitz
2026-04-07 10:22 ` [PATCH 3/3] gdb: improve error handling for thread-db thread adoption Andrew Burgess
2026-05-06 19:39   ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox