gdb: Fix build on AArch64 (#4619)

* Tested on RaspberryPi 4B(bcm2711)

Signed-off-by: MkfsSion <mkfssion@mkfssion.com>
This commit is contained in:
MkfsSion 2020-05-18 09:37:14 +08:00 committed by GitHub
parent 8f9bc86de1
commit 684c112b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,20 @@
diff -Naur a/gdb/nat/aarch64-sve-linux-ptrace.h b/gdb/nat/aarch64-sve-linux-ptrace.h
--- a/gdb/nat/aarch64-sve-linux-ptrace.h 2018-09-05 15:27:13.000000000 +0800
+++ b/gdb/nat/aarch64-sve-linux-ptrace.h 2020-05-17 11:18:55.994338014 +0800
@@ -20,15 +20,11 @@
#ifndef AARCH64_SVE_LINUX_PTRACE_H
#define AARCH64_SVE_LINUX_PTRACE_H
-#include <asm/sigcontext.h>
+#include <signal.h>
#include <sys/utsname.h>
#include <sys/ptrace.h>
#include <asm/ptrace.h>
-#ifndef SVE_SIG_ZREGS_SIZE
-#include "aarch64-sve-linux-sigcontext.h"
-#endif
-
/* Indicates whether a SVE ptrace header is followed by SVE registers or a
fpsimd structure. */