From: Jim Wilson Date: Mon, 22 Apr 2019 21:17:55 +0000 (-0700) Subject: RISC-V: Enable 32-bit linux gdb core file support. X-Git-Tag: binutils-2_33~1505 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79b8e8ab453619cb0262e1ad18447d918a605073;p=thirdparty%2Fbinutils-gdb.git 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 --git a/bfd/ChangeLog b/bfd/ChangeLog index e7dd8121f6f..d49fb7f75f7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2019-04-22 Jim Wilson + + * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204. + 2019-04-19 Alan Modra * elf32-s12z.c (elf_backend_can_gc_sections): Don't define diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c index 964b6bdcbcc..1bddbcaa932 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