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 http://bugs.gentoo.org/196245
2 http://sourceware.org/ml/libc-alpha/2006-05/msg00017.html
4 Attached is a patch to add __attribute__ ((noinline)) to
7 Without this patch, the sec script that processed initfini.s removes a
8 part of inlined call_gmon_start, causing undefined label errors.
10 This patch solves the problem by forcing gcc not to inline
11 call_gmon_start with __attribute__ ((noinline)).
13 Tested by building for arm-none-lixux-gnueabi. OK to apply?
17 2006-05-07 Kazu Hirata <kazu@codesourcery.com>
19 * sysdeps/generic/initfini.c (call_gmon_start): Add
20 __attribute__ ((noinline)).
22 Index: sysdeps/generic/initfini.c
23 ===================================================================
25 diff -durN glibc-2.10.1.orig/sysdeps/generic/initfini.c glibc-2.10.1/sysdeps/generic/initfini.c
26 --- glibc-2.10.1.orig/sysdeps/generic/initfini.c 2007-06-17 20:02:40.000000000 +0200
27 +++ glibc-2.10.1/sysdeps/generic/initfini.c 2009-11-13 00:50:09.000000000 +0100
29 /* The beginning of _init: */
30 asm ("\n/*@_init_PROLOG_BEGINS*/");
33 +static void __attribute__ ((noinline))
36 extern void __gmon_start__ (void) __attribute__ ((weak)); /*weak_extern (__gmon_start__);*/