Note that PT_GETREGS supplies SSTATUS for FreeBSD/riscv.
[deliverable/binutils-gdb.git] / gdb / riscv-fbsd-nat.c
index ad4ea1e0ad1d70651297764f0073295e96153e11..e66f491284cb9016c11738c94af85e0f06f181c0 100644 (file)
@@ -42,7 +42,8 @@ static riscv_fbsd_nat_target the_riscv_fbsd_nat_target;
 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.  */
This page took 0.026456 seconds and 4 git commands to generate.