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 --- glibc-2.7/sysdeps/unix/sysv/linux/dl-osinfo.h.orig 2007-09-15 23:54:08.000000000 +0100
2 +++ glibc-2.7/sysdeps/unix/sysv/linux/dl-osinfo.h 2008-08-20 09:26:26.000000000 +0100
8 + int versionindex = 0;
12 /* Try the uname system call. */
18 + /* We are only interested in the first three kernel numbers, so */
19 + /* chop off anything past that: */
25 + if (versionindex == 63) break;
26 + if (*choppoint == '.') dotsfound++;
30 + if (*choppoint == '0' || *choppoint == '1'
31 + || *choppoint == '2' || *choppoint == '3'
32 + || *choppoint == '4' || *choppoint == '5'
33 + || *choppoint == '6' || *choppoint == '7'
34 + || *choppoint == '8' || *choppoint == '9')
44 /* Now convert it into a number. The string consists of at most
46 + three parts. Now it does, anyway. ;-) */