From b85a5bbcb7962c77852f723924d2b1dd58d482dc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 16 Oct 2019 16:50:54 +0200 Subject: gdb: allow nios2, workaround a riscv issue --- package/gdb/patches/patch-gdb_riscv-tdep_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/gdb/patches/patch-gdb_riscv-tdep_c (limited to 'package/gdb/patches/patch-gdb_riscv-tdep_c') diff --git a/package/gdb/patches/patch-gdb_riscv-tdep_c b/package/gdb/patches/patch-gdb_riscv-tdep_c new file mode 100644 index 000000000..17834f821 --- /dev/null +++ b/package/gdb/patches/patch-gdb_riscv-tdep_c @@ -0,0 +1,12 @@ +--- gdb-8.3.1.orig/gdb/riscv-tdep.c 2019-09-21 00:04:41.000000000 +0200 ++++ gdb-8.3.1/gdb/riscv-tdep.c 2019-10-16 12:18:34.569267544 +0200 +@@ -3131,9 +3131,6 @@ riscv_gdbarch_init (struct gdbarch_info + /* We do support running binaries compiled for 32-bit float on targets + with 64-bit float, so we only complain if the binary requires more + than the target has available. */ +- if (abi_features.flen > features.flen) +- error (_("bfd requires flen %d, but target has flen %d"), +- abi_features.flen, features.flen); + + /* If the ABI_FEATURES xlen is 0 then this indicates we got no useful abi + features from the INFO object. In this case we assume that the xlen -- cgit v1.2.3