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 ad4b693de0009169ad6933cb81d9b58f7a380921..2418b45e78690e29cbcb1a35a2ef7370a1598b09 100644 (file)
@@ -1,3 +1,7 @@
+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
index 28ad38ba9c5c6ad0b9cdc90bd081205734e9e434..877e702a26c4c4cee3f567643ee0d71d29246788 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <sys/ptrace.h>
 #include <sys/utsname.h>
+#include <asm/ptrace.h>
 
 #include "gregset.h"