termux-packages/packages/gdb/gdb-arm-linux-nac.c.patch
2015-08-29 09:41:55 -04:00

23 lines
578 B
Diff

diff -u -r ../gdb-7.10/gdb/arm-linux-nat.c ./gdb/arm-linux-nat.c
--- ../gdb-7.10/gdb/arm-linux-nat.c 2015-08-28 17:22:07.000000000 -0400
+++ ./gdb/arm-linux-nat.c 2015-08-29 08:06:52.000680658 -0400
@@ -34,7 +34,6 @@
#include <sys/user.h>
#include <sys/ptrace.h>
#include <sys/utsname.h>
-#include <sys/procfs.h>
#include "nat/linux-ptrace.h"
@@ -63,6 +62,10 @@
#define PTRACE_SETHBPREGS 30
#endif
+#ifdef __ANDROID__
+#define PT_GETFPREGS PTRACE_GETFPREGS
+#endif
+
extern int arm_apcs_32;
/* On GNU/Linux, threads are implemented as pseudo-processes, in which