aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfnn-riscv.c
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2019-04-22 14:17:55 -0700
committerJim Wilson <jimw@sifive.com>2019-04-22 14:17:55 -0700
commit79b8e8ab453619cb0262e1ad18447d918a605073 (patch)
treeba515b36aa0d65f91b8d7b7d50966f9e69dd2b4b /bfd/elfnn-riscv.c
parentd70cc3ba8740fc0eb0328da2453cefba8211944b (diff)
downloadgdb-79b8e8ab453619cb0262e1ad18447d918a605073.zip
gdb-79b8e8ab453619cb0262e1ad18447d918a605073.tar.gz
gdb-79b8e8ab453619cb0262e1ad18447d918a605073.tar.bz2
RISC-V: Enable 32-bit linux gdb core file support.
bfd/ * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
Diffstat (limited to 'bfd/elfnn-riscv.c')
-rw-r--r--bfd/elfnn-riscv.c2
1 files changed, 1 insertions, 1 deletions
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