Author | SHA1 | Message | Date |
---|---|---|---|
Nagy Károly Gábriel |
5b374bd5a4
|
gdb: Updated (7.11 -> 7.12.1) | 7 years ago |
Nagy Károly Gábriel |
ccd3be1fef
|
gdb: Updated (7.7.1 -> 7.11) | 9 years ago |
@ -1,49 +0,0 @@ |
|||||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
||||
# |
|
||||
# Filename: package/.../gdb/legacy_sus.patch |
|
||||
# Copyright (C) 2010 - 2014 The OpenSDE Project |
|
||||
# |
|
||||
# More information can be found in the files COPYING and README. |
|
||||
# |
|
||||
# This patch file is dual-licensed. It is available under the license the |
|
||||
# patched project is licensed under, as long as it is an OpenSource license |
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
||||
# of the GNU General Public License as published by the Free Software |
|
||||
# Foundation; either version 2 of the License, or (at your option) any later |
|
||||
# version. |
|
||||
# --- SDE-COPYRIGHT-NOTE-END --- |
|
||||
|
|
||||
usleep() was deprecated by SUSv3 and newer LIBCs are starting to enforce that |
|
||||
deprecation. |
|
||||
|
|
||||
--- 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 "target-descriptions.h" |
|
||||
|
|
||||
+#include <time.h> /* for nanosleep */
|
|
||||
+
|
|
||||
#ifndef SPUFS_MAGIC |
|
||||
#define SPUFS_MAGIC 0x23c9b64e |
|
||||
#endif |
|
||||
@@ -633,6 +635,7 @@
|
|
||||
sigset_t prev_mask; |
|
||||
int has_vforked; |
|
||||
int parent_pid, child_pid; |
|
||||
+ struct timespec t;
|
|
||||
|
|
||||
block_child_signals (&prev_mask); |
|
||||
|
|
||||
@@ -842,7 +845,9 @@
|
|
||||
"LCFF: no VFORK_DONE " |
|
||||
"support, sleeping a bit\n"); |
|
||||
|
|
||||
- usleep (10000);
|
|
||||
+ t.tv_sec = 0;
|
|
||||
+ t.tv_nsec = 10000000L;
|
|
||||
+ nanosleep(&t, NULL);
|
|
||||
|
|
||||
/* Pretend we've seen a PTRACE_EVENT_VFORK_DONE event, |
|
||||
and leave it pending. The next linux_nat_resume call |
|