<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From cbc39812c1721d7edd20285134fdf748d0f26127 Mon Sep 17 00:00:00 2001
From: Ramana Radhakrishnan &lt;ramana.radhakrishnan@arm.com&gt;
Date: Fri, 23 May 2014 09:01:14 +0100
Subject: [PATCH] Include asm/ptrace.h for linux-aarch64-low.c

A recent change to glibc removed asm/ptrace.h from user.h for AArch64.
This meant that cross-native builds of gdbserver using trunk glibc broke
because linux-aarch64-low.c because user_hwdebug_state couldn't be found.

This is like commit #036cd38182bde32d8297b630cd5c861d53b8949e

2014-05-23  Ramana Radhakrishnan  &lt;ramana.radhakrishnan@arm.com&gt;

        * linux-aarch64-low.c (asm/ptrace.h): Include.
[Romain:
  - rebase on top of 7.7.1]
Signed-off-by: Romain Naour &lt;romain.naour@openwide.fr&gt;
---
 gdb/gdbserver/linux-aarch64-low.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
index 1b0da6c..ba66bc8 100644
--- a/gdb/gdbserver/linux-aarch64-low.c
+++ b/gdb/gdbserver/linux-aarch64-low.c
@@ -26,6 +26,7 @@
 #include &lt;signal.h&gt;
 #include &lt;sys/user.h&gt;
 #include &lt;sys/ptrace.h&gt;
+#include &lt;asm/ptrace.h&gt;
 #include &lt;sys/uio.h&gt;
 
 #include "gdb_proc_service.h"
-- 
1.9.3

</pre></body></html>