Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Continue register listing when FPRs access fails
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive committed May 3, 2018
1 parent 68c5911 commit f60a065
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion gdb/riscv-tdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,19 @@ riscv_print_fp_register (struct ui_file *file, struct frame_info *frame,
struct gdbarch *gdbarch = get_frame_arch (frame);
struct value_print_options opts;
const char *regname;
value *val = get_frame_register_value(frame, regnum);
value *val = NULL;

TRY
{
val = get_frame_register_value(frame, regnum);
}
CATCH (ex, RETURN_MASK_ERROR)
{
fprintf_filtered (file, "%-15s%s",
gdbarch_register_name (gdbarch, regnum),
ex.message);
return;
}

fprintf_filtered (file, "%-15s", gdbarch_register_name (gdbarch, regnum));

Expand Down

0 comments on commit f60a065

Please sign in to comment.