From: Tom de Vries Date: Mon, 13 Jul 2026 13:06:35 +0000 (+0200) Subject: [gdb] Convert typedef on separate line X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d30693bea94a8667463e0908435ee9297db5e637;p=thirdparty%2Fbinutils-gdb.git [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 --- 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. */