mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-07 01:04:40 +02:00
gdb: Update to mainline GDB
The mainline master GDB is very good now and even includes support for debugging RISC-V Linux applications. Use the master branch until the next GDB release is cut with all of this new support. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
committed by
Khem Raj
parent
b9a3bd79a0
commit
08026cad60
@@ -1,34 +0,0 @@
|
||||
From 19422cdac7618e63e665329542e074c6f27e7ba4 Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Francis <alistair.francis@wdc.com>
|
||||
Date: Fri, 13 Jul 2018 15:14:58 -0700
|
||||
Subject: [PATCH] linux-ptrace: Fix RISC-V cross compilation error
|
||||
|
||||
To avoid this error:
|
||||
./gdb/nat/linux-ptrace.h:175:21: error: expected identifier before '(' token
|
||||
#define TRAP_HWBKPT (4)
|
||||
when cross compiling remove the #define.
|
||||
|
||||
Signed-eff-by: Alistair Francis <alistair.francis@wdc.com>
|
||||
Upstream-status: Pending
|
||||
---
|
||||
gdb/nat/linux-ptrace.h | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h
|
||||
index 59549452c0..7f102a31ec 100644
|
||||
--- a/gdb/nat/linux-ptrace.h
|
||||
+++ b/gdb/nat/linux-ptrace.h
|
||||
@@ -171,10 +171,6 @@ struct buffer;
|
||||
# define GDB_ARCH_IS_TRAP_HWBKPT(X) ((X) == TRAP_HWBKPT)
|
||||
#endif
|
||||
|
||||
-#ifndef TRAP_HWBKPT
|
||||
-# define TRAP_HWBKPT 4
|
||||
-#endif
|
||||
-
|
||||
extern void linux_ptrace_attach_fail_reason (pid_t pid, struct buffer *buffer);
|
||||
|
||||
/* Find all possible reasons we could have failed to attach to PTID
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
||||
file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
|
||||
file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674"
|
||||
|
||||
SRCREV = "695c6a152ee1deadf180c7d5a7e579bf50589b7a"
|
||||
SRC_URI = "git://github.com/riscv/riscv-binutils-gdb.git;branch=riscv-gdb-8.1.1"
|
||||
SRCREV = "ed2df75c51551cf9b44f7d94179849565ab5bdda"
|
||||
SRC_URI = "git://sourceware.org/git/binutils-gdb.git"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@ require gdb-${PV}.inc
|
||||
|
||||
DEPENDS += "bison-native"
|
||||
|
||||
SRC_URI += "file://0001-linux-ptrace-Fix-RISC-V-cross-compilation-error.patch"
|
||||
|
||||
inherit python3-dir
|
||||
|
||||
EXTRA_OEMAKE_append_libc-musl = "\
|
||||
|
||||
Reference in New Issue
Block a user