debug/gdb: fix from upstream with newer glibc(siginfo vs siginfo_t, Gentoo gdb-7.4.1 patch)
This is for when you failed to build gdb-native with the error:
gdb-7.4.1/gdb/linux-nat.h:79:18: error: field 'siginfo' has incomplete type"
This is from mirror://gentoo/distfiles/gdb-7.4.1-patches-2.tar.xz
Signed-off-by: "Jang, Bongseo" <graycells@gmail.com>
[yann.morin.1998@free.fr: refresh ptrace_setsiginfo patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-ID: <4eef2edec3201c50b420.1348370891@localhost.localdomain>
PatchWork-ID: 186179
1 Original patch from: ../4.3.2/150-sparc64-bsd.patch
3 -= BEGIN original header =-
4 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/14_all_gcc-sparc64-bsd.patch
5 -= END original header =-
7 diff -durN gcc-4.3.3.orig/gcc/config/sparc/freebsd.h gcc-4.3.3/gcc/config/sparc/freebsd.h
8 --- gcc-4.3.3.orig/gcc/config/sparc/freebsd.h 2007-08-02 12:49:31.000000000 +0200
9 +++ gcc-4.3.3/gcc/config/sparc/freebsd.h 2009-01-27 22:19:20.000000000 +0100
11 /* FreeBSD needs the platform name (sparc64) defined.
12 Emacs needs to know if the arch is 64 or 32-bits. */
14 -#undef CPP_CPU64_DEFAULT_SPEC
15 -#define CPP_CPU64_DEFAULT_SPEC \
16 - "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
17 +#undef FBSD_TARGET_CPU_CPP_BUILTINS
18 +#define FBSD_TARGET_CPU_CPP_BUILTINS() \
21 + if (TARGET_ARCH64) \
23 + builtin_define ("__sparc64__"); \
24 + builtin_define ("__sparc_v9__"); \
25 + builtin_define ("__sparcv9"); \
28 + builtin_define ("__sparc"); \
29 + builtin_define ("__sparc__"); \
34 #define LINK_SPEC "%(link_arch) \
35 %{!mno-relax:%{!r:-relax}} \