diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-01-16 21:41:57 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-01-16 21:42:51 +0100 |
commit | 9b7adcc77dfec0cb2f7ade99a0092120640a395c (patch) | |
tree | 3445a3489e68146861e5830107e94c410b73fbe7 | |
parent | d5307dbaaadfa81bc8fb767f3e43b8edb87fec7f (diff) |
gdb: fix musl compile, add alpine linux patch
-rw-r--r-- | package/gdb/patches/patch-gdb_linux-nat_c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/gdb/patches/patch-gdb_linux-nat_c b/package/gdb/patches/patch-gdb_linux-nat_c new file mode 100644 index 000000000..67c508751 --- /dev/null +++ b/package/gdb/patches/patch-gdb_linux-nat_c @@ -0,0 +1,26 @@ +--- gdb-7.10.1.orig/gdb/linux-nat.c 2015-12-05 16:16:45.000000000 +0100 ++++ gdb-7.10.1/gdb/linux-nat.c 2016-01-16 20:48:29.412843026 +0100 +@@ -168,6 +168,10 @@ blocked. */ + /* Does the current host support PTRACE_GETREGSET? */ + enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN; + ++#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; +@@ -5216,10 +5220,10 @@ lin_thread_get_thread_signals (sigset_t + 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); |