diff --git a/gef.py b/gef.py index f9c6f7e4e..1982f2420 100644 --- a/gef.py +++ b/gef.py @@ -2547,6 +2547,10 @@ def get_ra(self, insn: Instruction, frame: "gdb.Frame") -> Optional[int]: ra = to_unsigned_long(older.pc()) return ra + def flag_register_to_human(self, val: Optional[int] = None) -> str: + # RISC-V has no flags registers, return an empty string to + # preserve the Architecture API + return "" class ARM(Architecture): aliases = ("ARM", Elf.Abi.ARM)