[binutils-gdb] [gdb] Convert typedef on separate line
Tom de Vries via Gdb-cvs <[email protected]> Mon, 13 Jul 2026 13:07:39 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd30693bea94a= 8667463e0908435ee9297db5e637 commit d30693bea94a8667463e0908435ee9297db5e637 Author: Tom de Vries <[email protected]> Date: Mon Jul 13 15:06:35 2026 +0200 [gdb] Convert typedef on separate line =20 Convert "typedef struct foo { ... } bar" into "using bar =3D struct foo= { ... }". =20 Variant where typedef is on its own line. =20 Generated by a script written by Claude Code. =20 Approved-By: Tom Tromey <[email protected]> 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 *gdba= rch, =20 /* The instruction environment needed to find single-step breakpoints. */ =20 -typedef -struct instruction_environment +using inst_env_type =3D 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; +}; =20 /* Machine-dependencies in CRIS for opcodes. */