Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove for_each_thread
@ 2026-05-13 17:32 Tom Tromey
  2026-05-13 17:32 ` [PATCH 1/2] Use bool in continue_1 Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tom Tromey @ 2026-05-13 17:32 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

As mentioned elsewhere on the list, here is a short series to remove
for_each_thread.

My view is that in most cases using 'foreach' and an iterator is
preferable to using a callback-style iteration function.  An explicit
loop is clearer and often involves less code.

This series removes for_each_thread.  Note I left the NetBSD-specific
variant alone, as I can't build or test this.

Regression tested on x86-64 Fedora 43.

Signed-off-by: Tom Tromey <tromey@adacore.com>
---
Tom Tromey (2):
      Use bool in continue_1
      Remove for_each_thread

 gdb/breakpoint.c |  6 ++----
 gdb/gdbthread.h  |  9 ---------
 gdb/infcmd.c     | 59 +++++++++++++++++++++++++++-----------------------------
 gdb/inferior.h   |  2 +-
 gdb/mi/mi-main.c | 34 +++++++++++++++-----------------
 gdb/thread.c     |  9 ---------
 6 files changed, 47 insertions(+), 72 deletions(-)
---
base-commit: b301725d35c1d6d80649180dcad1d3bdc42de862
change-id: 20260513-remove-for-each-1d12c2c85b53

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


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

end of thread, other threads:[~2026-07-22 18:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-13 17:32 [PATCH 0/2] Remove for_each_thread Tom Tromey
2026-05-13 17:32 ` [PATCH 1/2] Use bool in continue_1 Tom Tromey
2026-05-14 14:00   ` Simon Marchi
2026-05-13 17:32 ` [PATCH 2/2] Remove for_each_thread Tom Tromey
2026-05-14 14:13   ` Simon Marchi
2026-05-14 17:48     ` Tom Tromey
2026-07-22 18:21 ` [PATCH 0/2] " Tom Tromey

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