Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] [gdb] Use c++-style cleanups a bit more
@ 2026-09-20 13:02 Tom de Vries
  2026-09-20 13:02 ` [PATCH 1/4] [gdb] Use make_scoped_restore in z80_read_overlay_region_table Tom de Vries
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tom de Vries @ 2026-09-20 13:02 UTC (permalink / raw)
  To: gdb-patches

I noticed a case where using a c++-style cleanup could be useful.  The first
patch fixes this.

Then I asked Claude Code if more locations need fixing.  The other three
patches fix those.

Tom de Vries (4):
  [gdb] Use make_scoped_restore in z80_read_overlay_region_table
  [gdb] Use SCOPE_EXIT in tfile_get_traceframe_address
  [gdb] Use make_scoped_restore in linespec_lexer_peek_token
  [gdb] Use make_scoped_restore in captured_main_1

 gdb/linespec.c        | 24 ++++++++++--------------
 gdb/main.c            |  7 +++----
 gdb/tracefile-tfile.c |  9 ++++++---
 gdb/z80-tdep.c        |  5 ++---
 4 files changed, 21 insertions(+), 24 deletions(-)


base-commit: f621e384d9c26125cdf71875c472fc33989d4997
-- 
2.51.0


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

end of thread, other threads:[~2026-09-22 19:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 13:02 [PATCH 0/4] [gdb] Use c++-style cleanups a bit more Tom de Vries
2026-09-20 13:02 ` [PATCH 1/4] [gdb] Use make_scoped_restore in z80_read_overlay_region_table Tom de Vries
2026-09-20 13:02 ` [PATCH 2/4] [gdb] Use SCOPE_EXIT in tfile_get_traceframe_address Tom de Vries
2026-09-20 13:02 ` [PATCH 3/4] [gdb] Use make_scoped_restore in linespec_lexer_peek_token Tom de Vries
2026-09-20 13:02 ` [PATCH 4/4] [gdb] Use make_scoped_restore in captured_main_1 Tom de Vries
2026-09-22 19:37 ` [PATCH 0/4] [gdb] Use c++-style cleanups a bit more Tom Tromey

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