[binutils-gdb] RISC-V: Enable 32-bit linux gdb core file support.
Jim Wilson
wilson@sourceware.org
Mon Apr 22 21:18:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=79b8e8ab453619cb0262e1ad18447d918a605073
commit 79b8e8ab453619cb0262e1ad18447d918a605073
Author: Jim Wilson <jimw@sifive.com>
Date: Mon Apr 22 14:17:55 2019 -0700
RISC-V: Enable 32-bit linux gdb core file support.
bfd/
* elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
Diff:
---
bfd/ChangeLog | 4 ++++
bfd/elfnn-riscv.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e7dd812..d49fb7f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2019-04-22 Jim Wilson <jimw@sifive.com>
+
+ * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
+
2019-04-19 Alan Modra <amodra@gmail.com>
* elf32-s12z.c (elf_backend_can_gc_sections): Don't define
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
index 964b6bd..1bddbca 100644
--- a/bfd/elfnn-riscv.c
+++ b/bfd/elfnn-riscv.c
@@ -4008,7 +4008,7 @@ fail:
}
#if ARCH_SIZE == 32
-# define PRSTATUS_SIZE 0 /* FIXME */
+# define PRSTATUS_SIZE 204
# define PRSTATUS_OFFSET_PR_CURSIG 12
# define PRSTATUS_OFFSET_PR_PID 24
# define PRSTATUS_OFFSET_PR_REG 72
More information about the Binutils-cvs
mailing list