Include asm/ptrace.h in aarch64-linux-nat.c
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Thu, 22 May 2014 15:07:20 +0000 (16:07 +0100)
committerRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Thu, 22 May 2014 15:07:20 +0000 (16:07 +0100)
A recent change to glibc removed asm/ptrace.h from user.h for
AArch64. This meant that cross-native builds of gdb using trunk
glibc broke because aarch64-linux-nat.c because user_hwdebug_state
couldn't be found.

Fixed by including asm/ptrace.h like other ports.

2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       * aarch64-linux-nat.c (asm/ptrace.h): Include.

gdb/ChangeLog
gdb/aarch64-linux-nat.c

index ad4b693..2418b45 100644 (file)
@@ -1,5 +1,9 @@
 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
+       * aarch64-linux-nat.c (asm/ptrace.h): Include.
+
+2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
        * MAINTAINERS (Write After Approval): Move self back from
        paper trail.
 
index 28ad38b..877e702 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <sys/ptrace.h>
 #include <sys/utsname.h>
+#include <asm/ptrace.h>
 
 #include "gregset.h"