[AArch64] Fix include order for MTE
authorLuis Machado <luis.machado@linaro.org>
Fri, 9 Apr 2021 14:19:22 +0000 (11:19 -0300)
committerLuis Machado <luis.machado@linaro.org>
Fri, 9 Apr 2021 14:36:55 +0000 (11:36 -0300)
Similarly to commit 665af52ec2a52184d39a76d6e724fa4733dbab3c, fix a build
failure seen with an updated glibc, due to the enum/constant mismatch.

The old include file order eventually makes asm/ptrace.h get included before
sys/ptrace.h.

This patch fixes it. Seems fairly obvious and I'll push it shortly.

gdb/ChangeLog:

2021-04-09  Luis Machado  <luis.machado@linaro.org>

* nat/aarch64-mte-linux-ptrace.c: Update include file order.

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

index 136eb87a764e67b6312b2a3254dc93d277f06904..c5ed593582b9d8d60f5f149a7458425494e6361a 100644 (file)
@@ -1,3 +1,7 @@
+2021-04-09  Luis Machado  <luis.machado@linaro.org>
+
+       * nat/aarch64-mte-linux-ptrace.c: Update include file order.
+
 2021-04-08  Dominique Quatravaux  <dominique.quatravaux@epfl.ch>
 
        * darwin-nat.c (darwin_nat_target::resume): Remove status
index 47f4ab68d1b69c3272b3d1e8ee16e729cbbe6d4b..524cdbee4a2868390aaad16d1e5ed911ae8d0fdb 100644 (file)
 #include "gdbsupport/common-defs.h"
 #include "gdbsupport/byte-vector.h"
 
+#include "linux-ptrace.h"
+
 #include "arch/aarch64.h"
 #include "arch/aarch64-mte-linux.h"
 #include "nat/aarch64-linux.h"
 #include "nat/aarch64-mte-linux-ptrace.h"
 
-#include "linux-ptrace.h"
 #include <sys/uio.h>
 
 /* Helper function to display various possible errors when reading
This page took 0.027191 seconds and 4 git commands to generate.