aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/linux-ptrace.h
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2018-01-19 17:22:49 +0000
committerPedro Alves <palves@redhat.com>2018-01-19 18:17:54 +0000
commit5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8 (patch)
tree19fcb6666760646cfb248ee4f1bcffbeffada0f7 /gdb/nat/linux-ptrace.h
parentbc09b0c14fb713a9aec25e09b78499f3bc2441b5 (diff)
downloadbinutils-5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8.zip
binutils-5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8.tar.gz
binutils-5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8.tar.bz2
gdb: Fix ia64 defining TRAP_HWBKPT before including gdb_wait.h
On ia64, gdb_wait.h eventually includes siginfo-consts-arch.h, which contains an enum with TRAP_HWBKPT, along with a #define. Thus we cannot define TRAP_HWBKPT to 4 beforehand, and so gdb_wait.h must be included earlier; include it from linux-ptrace.h so it can never come afterwards. gdb/ChangeLog: * nat/linux-ptrace.c: Remove unnecessary reinclusion of gdb_ptrace.h, and move including gdb_wait.h ... * nat/linux-ptrace.h: ... to here.
Diffstat (limited to 'gdb/nat/linux-ptrace.h')
-rw-r--r--gdb/nat/linux-ptrace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h
index 60967a3..dc180fb 100644
--- a/gdb/nat/linux-ptrace.h
+++ b/gdb/nat/linux-ptrace.h
@@ -21,6 +21,7 @@
struct buffer;
#include "nat/gdb_ptrace.h"
+#include "gdb_wait.h"
#ifdef __UCLIBC__
#if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))