summaryrefslogtreecommitdiff
path: root/patches/gdb/7.12/100-musl_fix.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-01-16 17:01:10 (GMT)
committerGitHub <noreply@github.com>2017-01-16 17:01:10 (GMT)
commitcc30c2c880dd5c771b8c5935baf13d505a5ca3d1 (patch)
treea92fde117682b0af6200bda5eabb64d920ea5726 /patches/gdb/7.12/100-musl_fix.patch
parent16a7f7bde73954570babb44c45b66afd83b7414d (diff)
parentfb58775a46bae7e587e888fc481e7483773e99ee (diff)
Merge pull request #533 from stilor/gdb-7.12
Gdb 7.12
Diffstat (limited to 'patches/gdb/7.12/100-musl_fix.patch')
-rw-r--r--patches/gdb/7.12/100-musl_fix.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/gdb/7.12/100-musl_fix.patch b/patches/gdb/7.12/100-musl_fix.patch
new file mode 100644
index 0000000..c0c1e0a
--- /dev/null
+++ b/patches/gdb/7.12/100-musl_fix.patch
@@ -0,0 +1,28 @@
+--- a/gdb/linux-nat.c
++++ b/gdb/linux-nat.c
+@@ -17,6 +17,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/>. */
+
++#include "stopcode.h"
+ #include "defs.h"
+ #include "inferior.h"
+ #include "infrun.h"
+@@ -73,6 +74,10 @@
+ #define SPUFS_MAGIC 0x23c9b64e
+ #endif
+
++#ifndef __SIGRTMIN
++#define __SIGRTMIN SIGRTMIN
++#endif
++
+ /* This comment documents high-level logic of this file.
+
+ Waiting for events in sync mode
+--- /dev/null
++++ b/gdb/stopcode.h
+@@ -0,0 +1,4 @@
++#ifndef W_STOPCODE
++#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
++#endif
++