This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: struct siginfo vs. siginfo_t


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]