petrpavlu / valgrind-riscv64

Valgrind with support for the RISCV64/Linux platform.
GNU General Public License v2.0
56 stars 15 forks source link

riscv64: Add registers dump for coredump-elf.c #6

Closed laokz closed 2 years ago

laokz commented 2 years ago

Float registers use D extension data structure.

Test: Using a buggy program to dump a vgcore then gdb to debug it. Without this patch, info registers showed all registers 0. Applied this patch, it showed correct value of general registers when dumped, and backtrace command also worked.

petrpavlu commented 2 years ago

LGTM, thanks.