mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
gdb: allow compilation for __aarch64__
asm/ptrace.h must be included in two files. (From OE-Core rev: dd776e2aacb4e75f2195b8943a9594131592a0da) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5bef32283f
commit
a425639580
@@ -5,6 +5,7 @@ inherit gettext
|
||||
SRC_URI += "file://kill_arm_map_symbols.patch \
|
||||
file://gdbserver-cflags-last.diff;striplevel=0 \
|
||||
file://renesas-sh-native-support.patch \
|
||||
file://include_asm_ptrace.patch \
|
||||
"
|
||||
#LDFLAGS_append = " -s"
|
||||
#export CFLAGS_append=" -L${STAGING_LIBDIR}"
|
||||
|
||||
30
meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch
Normal file
30
meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
gdb: include asm/ptrace.h in two aarch64 source files
|
||||
|
||||
Both sys/ptrace.h and asm/ptrace.h need to be included.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: joe.slater@windriver.com
|
||||
|
||||
|
||||
--- a/gdb/aarch64-linux-nat.c
|
||||
+++ b/gdb/aarch64-linux-nat.c
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "elf/common.h"
|
||||
|
||||
#include <sys/ptrace.h>
|
||||
+#include <asm/ptrace.h>
|
||||
+
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#include "gregset.h"
|
||||
--- a/gdb/gdbserver/linux-aarch64-low.c
|
||||
+++ b/gdb/gdbserver/linux-aarch64-low.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <signal.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/ptrace.h>
|
||||
+#include <asm/ptrace.h>
|
||||
#include <sys/uio.h>
|
||||
|
||||
#include "gdb_proc_service.h"
|
||||
Reference in New Issue
Block a user