[binutils-gdb] [gdb] convert struct pointer typedefs
Tom de Vries via Gdb-cvs <[email protected]> Mon, 13 Jul 2026 13:07:34 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D5aebabf11c41= 7ce3ca1cd198989ec17b072cde2b commit 5aebabf11c417ce3ca1cd198989ec17b072cde2b Author: Tom de Vries <[email protected]> Date: Mon Jul 13 15:06:35 2026 +0200 [gdb] convert struct pointer typedefs =20 Convert "typedef struct foo { ... } *bar" to "struct foo { ... }; using bar =3D foo *". =20 Generated by a script written by Claude Code. =20 Approved-By: Tom Tromey <[email protected]> Diff: --- gdbserver/notif.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gdbserver/notif.h b/gdbserver/notif.h index dc3164e91cd..caa2f36f66d 100644 --- a/gdbserver/notif.h +++ b/gdbserver/notif.h @@ -38,7 +38,7 @@ struct notif_event /* A type notification to GDB. An object of 'struct notif_server' represents a type of notification. */ =20 -typedef struct notif_server +struct notif_server { /* The name of ack packet, for example, 'vStopped'. */ const char *ack_name; @@ -54,7 +54,8 @@ typedef struct notif_server =20 /* Write event EVENT to OWN_BUF. */ void (*write) (struct notif_event *event, char *own_buf); -} *notif_server_p; +}; +using notif_server_p =3D struct notif_server *; =20 extern struct notif_server notif_stop;