This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: struct siginfo vs. siginfo_t
- From: Pedro Alves <palves at redhat dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, libc-alpha at sourceware dot org, drepper at gmail dot com, "Carlos O'Donell" <carlos at systemhalted dot org>
- Date: Wed, 21 Mar 2012 12:20:44 +0000
- Subject: Re: struct siginfo vs. siginfo_t
- References: <20120226181752.1175.qmail@sourceware.org> <87zkbhkipp.fsf@schwinge.name> <CADZpyiwXDJSPRDoQpA3ZOTYsznMc_2DrVpr3z0y-zt2z5FjkRQ@mail.gmail.com> <87limuf9zn.fsf@schwinge.name>
Okay, but,
On 03/21/2012 11:51 AM, Thomas Schwinge wrote:>
> gdb/
> * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
> of struct siginfo.gdb_siginfo_t.
'gdb_siginfo_t.' here looks like a pasto.
> * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
> * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
> * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
> (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
> (linux_nat_get_siginfo): Likewise.
> * linux-nat.h (lwp_info, linux_nat_set_siginfo_fixup)
s/lwp_info/struct lwp_info/
> (linux_nat_get_siginfo): Likewise.
> * linux-tdep.c (linux_get_siginfo_type): Likewise.
> * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
> * procfs.c (gdb_siginfo_t): Likewise.
>
> gdb/gdbserver/
> * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
> struct siginfo.gdb_siginfo_t.
'gdb_siginfo_t.' here looks like a pasto.
> * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
> * linux-x86-low.c (x86_siginfo_fixup): Likewise.
> * linux-low.h (linux_target_ops): Likewise. Include <signal.h> instead
> of declaring struct siginfo as incomplete type.
* linux-low.h: Include <signal.h>.
(struct siginfo): Delete forward declaration.
(struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
struct siginfo.
Thanks.
--
Pedro Alves