Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] Add compatibility definitions for C++ thread support
@ 2025-10-01 18:57 Tom Tromey
  2025-10-01 18:57 ` [PATCH 1/3] Remove an unused include Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Tom Tromey @ 2025-10-01 18:57 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

This series adds some C++ compatibility support code, with the goal of
removing most checks of CXX_STD_THREAD -- while it's not really
practical to remove all the checks from gdb, the majority can be
removed using this technique.  This makes the code somewhat cleaner,
at the expense of having to remember to use the "gdb" namespace rather
than "std".  Perhaps some day we could remove the shims as well.

Regression tested on x86-64 Fedora 41, both with an ordinary build and
with a --disable-threading build.  The latter has one pre-existing
failure.

Signed-off-by: Tom Tromey <tromey@adacore.com>
---
Tom Tromey (3):
      Remove an unused include
      Don't rely on deduction in run-on-main-thread.c
      Introduce gdbsupport/cxx-thread.h and use it

 gdb/complaints.c                 |  16 +--
 gdb/dwarf2/cooked-index-worker.c |  17 +--
 gdb/dwarf2/cooked-index-worker.h |  17 +--
 gdb/dwarf2/read.c                |  36 ++----
 gdb/dwarf2/read.h                |   8 +-
 gdb/gdb_bfd.c                    |  47 ++------
 gdb/minsyms.c                    |  37 ++----
 gdb/run-on-main-thread.c         |  38 ++----
 gdbsupport/cxx-thread.h          | 243 +++++++++++++++++++++++++++++++++++++++
 gdbsupport/thread-pool.h         |  91 +--------------
 10 files changed, 297 insertions(+), 253 deletions(-)
---
base-commit: 52ca3d3fe6139ec45e04b4cfb1b5e244a8459586
change-id: 20251001-isolate-cxx-thread-ee03d199ab5b

Best regards,
-- 
Tom Tromey <tromey@adacore.com>


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

end of thread, other threads:[~2025-10-02 18:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-01 18:57 [PATCH 0/3] Add compatibility definitions for C++ thread support Tom Tromey
2025-10-01 18:57 ` [PATCH 1/3] Remove an unused include Tom Tromey
2025-10-01 20:04   ` Simon Marchi
2025-10-02 12:59     ` Tom Tromey
2025-10-01 18:57 ` [PATCH 2/3] Don't rely on deduction in run-on-main-thread.c Tom Tromey
2025-10-01 18:57 ` [PATCH 3/3] Introduce gdbsupport/cxx-thread.h and use it Tom Tromey
2025-10-01 20:16   ` Simon Marchi
2025-10-02 16:58     ` Tom Tromey
2025-10-02 18:09       ` Tom Tromey

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