[PATCH 2/4] Fall back to a default value of 0 for the MISA register.

John Baldwin jhb@FreeBSD.org
Thu Sep 20 22:55:00 GMT 2018


On 9/20/18 1:56 PM, Jim Wilson wrote:
> On Thu, Sep 20, 2018 at 1:31 PM John Baldwin <jhb@freebsd.org> wrote:
>>     Use the existing instruction to determine the RISC-V breakpoint kind.
> 
> Yes, this looks like a nice solution to the problem.
> 
> In riscv_breakpoint_kind_from_pc, you are setting a byte_order local
> variable but not obviously using it.  You presumably don't need byte
> order here as you are only reading one byte.

Oh, very true.  I had just copied it from riscv_insn::fetch_instruction.
I'll fix and post a V2.

-- 
John Baldwin

                                                                            



More information about the Gdb-patches mailing list