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 this change was made to generic __nexttowardf, but not the long double version
5 2008-05-05 Aurelien Jarno <aurelien@aurel32.net>
7 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include float.h.
8 (__nexttowardf): Use math_opt_barrier and
9 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
12 sysdeps/ieee754/ldbl-128/s_nexttowardf.c | 26 ++++++++++++++++----------
13 1 file changed, 16 insertions(+), 10 deletions(-)
15 diff -durN glibc-2.10.1.orig/sysdeps/ieee754/ldbl-128/s_nexttowardf.c glibc-2.10.1/sysdeps/ieee754/ldbl-128/s_nexttowardf.c
16 --- glibc-2.10.1.orig/sysdeps/ieee754/ldbl-128/s_nexttowardf.c 1999-07-14 02:09:42.000000000 +0200
17 +++ glibc-2.10.1/sysdeps/ieee754/ldbl-128/s_nexttowardf.c 2009-11-13 00:50:06.000000000 +0100
22 -#include "math_private.h"
23 +#include <math_private.h>
27 float __nexttowardf(float x, long double y)
30 if((long double) x==y) return y; /* x=y, return y */
31 if(ix==0) { /* x == 0 */
34 SET_FLOAT_WORD(x,(u_int32_t)((hy>>32)&0x80000000)|1);/* return +-minsub*/
36 - if(x2==x) return x2; else return x; /* raise underflow flag */
37 + u = math_opt_barrier (x);
39 + math_force_eval (u); /* raise underflow flag */
42 if(hx>=0) { /* x > 0 */
43 if(hy<0||(ix>>23)>(iy>>48)-0x3f80
48 - if(hy>=0x7f800000) return x+x; /* overflow */
49 + if(hy>=0x7f800000) {
50 + x = x+x; /* overflow */
51 + if (FLT_EVAL_METHOD != 0)
52 + /* Force conversion to float. */
56 if(hy<0x00800000) { /* underflow */
58 - if(x2!=x) { /* raise underflow flag */
59 - SET_FLOAT_WORD(x2,hx);
63 + math_force_eval (u); /* raise underflow flag */