Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/7] [gdb] Add superblocks range loops
@ 2026-04-23  6:35 Tom de Vries
  2026-04-23  6:35 ` [PATCH 1/7] [gdb] Use block::function_block Tom de Vries
                   ` (6 more replies)
  0 siblings, 7 replies; 26+ messages in thread
From: Tom de Vries @ 2026-04-23  6:35 UTC (permalink / raw)
  To: gdb-patches

This series attempts to rewrite code like:
...
  while (block != NULL)
    {
      ...
      block = block->superblock ();
    }
...
using range loops.

I'm having problems with the naming, and would like some feedback on that,
hence this is an RFC.

Given these problems, I didn't rewrite a lot of code, just enough to
demonstrate the range loops.

Tom de Vries (7):
  [gdb] Use block::function_block
  [gdbsupport] Add parameterless iterator_range constructor
  [gdbsupport] Factor out base_next_iterator
  [gdb] Add block::superblocks
  [gdb] Use block::super_blocks
  [gdb] Add block::function_blocks
  [gdb] Use block::function_blocks

 gdb/ada-lang.c                           | 52 +++++++---------
 gdb/block.h                              | 78 ++++++++++++++++++++++++
 gdb/blockframe.c                         |  5 +-
 gdb/symmisc.c                            |  9 ++-
 gdb/unittests/iterator-range-selftests.c |  2 +-
 gdbsupport/iterator-range.h              |  5 ++
 gdbsupport/next-iterator.h               | 59 ++++++++++++++----
 7 files changed, 159 insertions(+), 51 deletions(-)


base-commit: 34fc62a27e1d8827aa2e64610f4e4b03e5825fc3
-- 
2.51.0


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

end of thread, other threads:[~2026-05-01 13:21 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-23  6:35 [PATCH 0/7] [gdb] Add superblocks range loops Tom de Vries
2026-04-23  6:35 ` [PATCH 1/7] [gdb] Use block::function_block Tom de Vries
2026-04-23 14:33   ` Tom Tromey
2026-04-24 12:19     ` Tom de Vries
2026-04-23  6:35 ` [PATCH 2/7] [gdbsupport] Add parameterless iterator_range constructor Tom de Vries
2026-04-23 14:34   ` Tom Tromey
2026-04-24 12:20     ` Tom de Vries
2026-04-23  6:35 ` [PATCH 3/7] [gdbsupport] Factor out base_next_iterator Tom de Vries
2026-04-30 16:24   ` Simon Marchi
2026-04-30 19:09     ` Simon Marchi
2026-05-01 12:57       ` Tom Tromey
2026-05-01 13:20       ` Tom de Vries
2026-05-01 13:15     ` Tom de Vries
     [not found]   ` <87340kpbwx.fsf@tromey.com>
2026-04-30  4:49     ` Tom de Vries
2026-05-01 12:54       ` Tom de Vries
2026-05-01 13:00     ` Tom de Vries
2026-04-23  6:35 ` [PATCH 4/7] [gdb] Add block::superblocks Tom de Vries
2026-04-27 11:11   ` Jan Vrany
2026-05-01 13:06     ` Tom de Vries
2026-04-30 16:24   ` Simon Marchi
2026-05-01 13:19     ` Tom de Vries
2026-04-23  6:35 ` [PATCH 5/7] [gdb] Use block::super_blocks Tom de Vries
2026-04-24 16:27   ` Tom Tromey
2026-04-24 21:24     ` Tom de Vries
2026-04-23  6:35 ` [PATCH 6/7] [gdb] Add block::function_blocks Tom de Vries
2026-04-23  6:35 ` [PATCH 7/7] [gdb] Use block::function_blocks Tom de Vries

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