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
3 sysdeps/unix/sysv/linux/posix_fadvise.c | 13 +++++++++++++
4 1 file changed, 13 insertions(+)
6 diff -durN glibc-2.10.1.orig/sysdeps/unix/sysv/linux/posix_fadvise.c glibc-2.10.1/sysdeps/unix/sysv/linux/posix_fadvise.c
7 --- glibc-2.10.1.orig/sysdeps/unix/sysv/linux/posix_fadvise.c 2003-08-17 02:36:22.000000000 +0200
8 +++ glibc-2.10.1/sysdeps/unix/sysv/linux/posix_fadvise.c 2009-11-13 00:50:03.000000000 +0100
10 return INTERNAL_SYSCALL_ERRNO (ret, err);
13 +# ifdef __NR_fadvise64_64
14 + INTERNAL_SYSCALL_DECL (err);
15 + int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd,
16 + __LONG_LONG_PAIR ((long) (offset >> 31),
18 + __LONG_LONG_PAIR ((long) (len >> 31),
21 + if (INTERNAL_SYSCALL_ERROR_P (ret, err))
22 + return INTERNAL_SYSCALL_ERRNO (ret, err);