|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
|
#
|
|
|
|
|
# Filename: package/.../gdb/legacy_sus.patch
|
|
|
|
|
# Copyright (C) 2010 - 2012 The OpenSDE Project
|
|
|
|
|
# Copyright (C) 2010 - 2014 The OpenSDE Project
|
|
|
|
|
#
|
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
|
#
|
|
|
|
@ -17,19 +17,18 @@
|
|
|
|
|
usleep() was deprecated by SUSv3 and newer LIBCs are starting to enforce that
|
|
|
|
|
deprecation.
|
|
|
|
|
|
|
|
|
|
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
|
|
|
|
|
index 44a2a21..4e70f80 100644
|
|
|
|
|
--- a/gdb/linux-nat.c
|
|
|
|
|
+++ b/gdb/linux-nat.c
|
|
|
|
|
@@ -66,6 +66,7 @@
|
|
|
|
|
#include "exceptions.h"
|
|
|
|
|
#include "linux-ptrace.h"
|
|
|
|
|
--- a/gdb/linux-nat.c 2013-12-08 05:33:13.000000000 +0100
|
|
|
|
|
+++ b/gdb/linux-nat.c 2014-01-30 14:22:29.774178121 +0100
|
|
|
|
|
@@ -68,6 +68,8 @@
|
|
|
|
|
#include "buffer.h"
|
|
|
|
|
+#include <time.h> /* for nanosleep */
|
|
|
|
|
#include "target-descriptions.h"
|
|
|
|
|
|
|
|
|
|
+#include <time.h> /* for nanosleep */
|
|
|
|
|
+
|
|
|
|
|
#ifndef SPUFS_MAGIC
|
|
|
|
|
#define SPUFS_MAGIC 0x23c9b64e
|
|
|
|
|
@@ -625,6 +626,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
@@ -633,6 +635,7 @@
|
|
|
|
|
sigset_t prev_mask;
|
|
|
|
|
int has_vforked;
|
|
|
|
|
int parent_pid, child_pid;
|
|
|
|
@ -37,7 +36,7 @@ index 44a2a21..4e70f80 100644
|
|
|
|
|
|
|
|
|
|
block_child_signals (&prev_mask);
|
|
|
|
|
|
|
|
|
|
@@ -841,7 +843,9 @@
|
|
|
|
|
@@ -842,7 +845,9 @@
|
|
|
|
|
"LCFF: no VFORK_DONE "
|
|
|
|
|
"support, sleeping a bit\n");
|
|
|
|
|
|
|
|
|
|