summaryrefslogtreecommitdiff
path: root/package/gdb/patches/7.8.2/patch-gdb_linux-nat_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-03-08 18:11:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-03-09 07:39:32 +0100
commitb8ae02c5ff75edb638ab67e487227973bc34fb2f (patch)
tree86e7f7258796aa13f95969e00312884bf39e2299 /package/gdb/patches/7.8.2/patch-gdb_linux-nat_c
parentd1c7e084c6ac11bc8d45f24ce6e3a8b659f902b2 (diff)
add support for gdbserver on AVR32 devices
Happily I got the old gdb tarball from buildroot source repository. (thx Yann) Mirror the package and make it compile for native gdbserver. Patches need to be shuffled to version directories.
Diffstat (limited to 'package/gdb/patches/7.8.2/patch-gdb_linux-nat_c')
-rw-r--r--package/gdb/patches/7.8.2/patch-gdb_linux-nat_c28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/gdb/patches/7.8.2/patch-gdb_linux-nat_c b/package/gdb/patches/7.8.2/patch-gdb_linux-nat_c
new file mode 100644
index 000000000..9ba7254ca
--- /dev/null
+++ b/package/gdb/patches/7.8.2/patch-gdb_linux-nat_c
@@ -0,0 +1,28 @@
+* added from https://github.com/rofl0r/sabotage
+
+--- gdb-7.6.orig/gdb/linux-nat.c 2013-02-13 15:59:49.000000000 +0100
++++ gdb-7.6/gdb/linux-nat.c 2013-08-13 17:01:09.000000000 +0200
+@@ -79,6 +79,14 @@
+ # endif
+ #endif /* HAVE_PERSONALITY */
+
++#ifndef __SIGRTMIN
++#define __SIGRTMIN SIGRTMIN
++#endif
++
++#ifndef W_STOPCODE
++#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
++#endif
++
+ /* This comment documents high-level logic of this file.
+
+ Waiting for events in sync mode
+@@ -2379,7 +2387,7 @@ linux_handle_extended_wait (struct lwp_i
+ status = 0;
+ }
+
+- if (non_stop)
++ if (1)
+ {
+ /* Add the new thread to GDB's lists as soon as possible
+ so that: