This permits reading the value of the SSTATUS CSR returned by ptrace()
for live FreeBSD/riscv processes.
* riscv-fbsd-nat.c (getregs_supplies): Return true for
RISCV_CSR_SSTATUS_REGNUM.
+2018-11-06 John Baldwin <jhb@FreeBSD.org>
+
+ * riscv-fbsd-nat.c (getregs_supplies): Return true for
+ RISCV_CSR_SSTATUS_REGNUM.
+
2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* source.c (open_source_file): Fix leak by transferring the
static bool
getregs_supplies (struct gdbarch *gdbarch, int regnum)
{
- return (regnum >= RISCV_RA_REGNUM && regnum <= RISCV_PC_REGNUM);
+ return ((regnum >= RISCV_RA_REGNUM && regnum <= RISCV_PC_REGNUM)
+ || regnum == RISCV_CSR_SSTATUS_REGNUM);
}
/* Determine if PT_GETFPREGS fetches REGNUM. */