[binutils-gdb] [gdb] Convert typedef on separate line
Tom de Vries
vries@sourceware.org
Mon Jul 13 13:07:39 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d30693bea94a8667463e0908435ee9297db5e637
commit d30693bea94a8667463e0908435ee9297db5e637
Author: Tom de Vries <tdevries@suse.de>
Date: Mon Jul 13 15:06:35 2026 +0200
[gdb] Convert typedef on separate line
Convert "typedef struct foo { ... } bar" into "using bar = struct foo { ... }".
Variant where typedef is on its own line.
Generated by a script written by Claude Code.
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
gdb/cris-tdep.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 507f06e0aac..593c4f1e528 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -470,8 +470,7 @@ crisv32_single_step_through_delay (struct gdbarch *gdbarch,
/* The instruction environment needed to find single-step breakpoints. */
-typedef
-struct instruction_environment
+using inst_env_type = struct instruction_environment
{
unsigned long reg[NUM_GENREGS];
unsigned long preg[NUM_SPECREGS];
@@ -486,7 +485,7 @@ struct instruction_environment
int xflag_found;
int disable_interrupt;
enum bfd_endian byte_order;
-} inst_env_type;
+};
/* Machine-dependencies in CRIS for opcodes. */
More information about the Gdb-cvs
mailing list