aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdb/gdb-linux_nat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gdb/gdb-linux_nat.patch')
-rw-r--r--main/gdb/gdb-linux_nat.patch46
1 files changed, 21 insertions, 25 deletions
diff --git a/main/gdb/gdb-linux_nat.patch b/main/gdb/gdb-linux_nat.patch
index ba947ad07a..6a7276cc41 100644
--- a/main/gdb/gdb-linux_nat.patch
+++ b/main/gdb/gdb-linux_nat.patch
@@ -1,30 +1,26 @@
-diff -u -r -N gdb-7.3.1-org//gdb/linux-nat.c gdb-7.3.1-patched//gdb/linux-nat.c
---- gdb-7.3.1-org//gdb/linux-nat.c 1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.3.1-patched//gdb/linux-nat.c 2011-09-22 22:17:38.647841814 +0000
-@@ -18,6 +18,7 @@
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+--- ./gdb/linux-nat.c.orig
++++ ./gdb/linux-nat.c
+@@ -169,6 +169,10 @@
+ #define O_LARGEFILE 0
+ #endif
-+#include "stopcode.h"
- #include "defs.h"
- #include "inferior.h"
- #include "target.h"
-@@ -68,6 +69,10 @@
- # endif
- #endif /* HAVE_PERSONALITY */
-
-+#ifndef __SIGRTMIN
-+#define __SIGRTMIN SIGRTMIN
-+#endif
-+
- /* This comment documents high-level logic of this file.
-
- Waiting for events in sync mode
-diff -u -r -N gdb-7.3.1-org//gdb/stopcode.h gdb-7.3.1-patched//gdb/stopcode.h
---- gdb-7.3.1-org//gdb/stopcode.h 1970-01-01 00:00:00.000000000 +0000
-+++ gdb-7.3.1-patched//gdb/stopcode.h 2011-09-22 22:17:38.648841814 +0000
-@@ -0,0 +1,4 @@
+#ifndef W_STOPCODE
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
+#endif
+
+ /* The single-threaded native GNU/Linux target_ops. We save a pointer for
+ the use of the multi-threaded target. */
+ static struct target_ops *linux_ops;
+@@ -4875,10 +4879,10 @@
+ fortunately they don't change! */
+
+ if (restart == 0)
+- restart = __SIGRTMIN;
++ restart = SIGRTMIN;
+
+ if (cancel == 0)
+- cancel = __SIGRTMIN + 1;
++ cancel = SIGRTMIN + 1;
+
+ sigaddset (set, restart);
+ sigaddset (set, cancel);