[binutils-gdb] [gdb] Fix redundant struct typedefs
Tom de Vries via Gdb-cvs <[email protected]> Mon, 13 Jul 2026 13:07:18 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc3ea9a009d3d= 3d9be4b7e0f0409f1975b1b7d865 commit c3ea9a009d3d3d9be4b7e0f0409f1975b1b7d865 Author: Tom de Vries <[email protected]> Date: Mon Jul 13 15:06:35 2026 +0200 [gdb] Fix redundant struct typedefs =20 Convert "typedef struct foo { ... } foo" into "struct foo { ... }". =20 Generated by a script written by Claude Code. =20 Approved-By: Tom Tromey <[email protected]> Diff: --- gdb/procfs.c | 4 ++-- gdbserver/tracepoint.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/procfs.c b/gdb/procfs.c index 64a71ea2883..8d96bf588da 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -224,7 +224,7 @@ procfs_target::auxv_parse (const gdb_byte **readptr, #define STATUS_PROC_NAME_FMT "/proc/%d/status" #define MAX_PROC_NAME_SIZE sizeof("/proc/999999/lwp/0123456789/lwpstatus") =20 -typedef struct procinfo { +struct procinfo { struct procinfo *next; int pid; /* Process ID */ int tid; /* Thread/LWP id */ @@ -253,7 +253,7 @@ typedef struct procinfo { int gregs_valid : 1; int fpregs_valid : 1; int threads_valid: 1; -} procinfo; +}; =20 /* Function prototypes for procinfo module: */ =20 diff --git a/gdbserver/tracepoint.cc b/gdbserver/tracepoint.cc index e5d95726422..593dca65f76 100644 --- a/gdbserver/tracepoint.cc +++ b/gdbserver/tracepoint.cc @@ -5094,7 +5094,7 @@ fast_tracepoint_from_ipa_tpoint_address (CORE_ADDR ip= a_tpoint_obj) /* The type of the object that is used to synchronize fast tracepoint collection. */ =20 -typedef struct collecting_t +struct collecting_t { /* The fast tracepoint number currently collecting. */ uintptr_t tpoint; @@ -5107,7 +5107,7 @@ typedef struct collecting_t register, which is readable with a single insn on several architectures. */ uintptr_t thread_area; -} collecting_t; +}; =20 #ifndef IN_PROCESS_AGENT