gdb: fix powerpc build issues with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48731
This commit is contained in:
parent
dbd35c7ca9
commit
09997e41ae
1 changed files with 25 additions and 0 deletions
|
@ -26,3 +26,28 @@
|
||||||
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
|
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
|
--- a/gdb/nat/ppc-linux.h
|
||||||
|
+++ b/gdb/nat/ppc-linux.h
|
||||||
|
@@ -18,7 +18,10 @@
|
||||||
|
#ifndef PPC_LINUX_H
|
||||||
|
#define PPC_LINUX_H 1
|
||||||
|
|
||||||
|
+#define pt_regs __pt_regs
|
||||||
|
#include <asm/ptrace.h>
|
||||||
|
+#undef pt_regs
|
||||||
|
+
|
||||||
|
#include <asm/cputable.h>
|
||||||
|
|
||||||
|
/* This sometimes isn't defined. */
|
||||||
|
--- a/gdb/gdbserver/linux-ppc-low.c
|
||||||
|
+++ b/gdb/gdbserver/linux-ppc-low.c
|
||||||
|
@@ -21,7 +21,9 @@
|
||||||
|
#include "linux-low.h"
|
||||||
|
|
||||||
|
#include <elf.h>
|
||||||
|
+#define pt_regs __pt_regs
|
||||||
|
#include <asm/ptrace.h>
|
||||||
|
+#undef pt_regs
|
||||||
|
|
||||||
|
#include "nat/ppc-linux.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue