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 Hack from Debian to hopefully get sandbox working on mips
3 <`Kumba> ths: given the SHN_UNDEF thing is a hack, what's the preferred solution?
4 <ths> For fakeroot the simplest trigger is "fakeroot file /bin/ls".
5 <ths> `Kumba: I haven't found a better one yet.
6 <ths> Probably marker symbols around the stub section, and then exclude it from the link map.
7 <ths> This needs a ld change.
9 diff -durN glibc-2.10.1.orig/elf/do-lookup.h glibc-2.10.1/elf/do-lookup.h
10 --- glibc-2.10.1.orig/elf/do-lookup.h 2009-03-30 23:14:32.000000000 +0200
11 +++ glibc-2.10.1/elf/do-lookup.h 2009-11-13 00:51:36.000000000 +0100
17 + /* HACK: MIPS marks its lazy evaluation stubs with SHN_UNDEF
18 + symbols, we skip them. */
19 + if (sym->st_shndx == SHN_UNDEF)
22 /* Global definition. Just what we need. */
24 result->m = (struct link_map *) map;