[Lldb-commits] [PATCH] D130342: [LLDB][RISCV] Add register stuff and make breakpoint work

Emmmer S via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 9 10:05:31 PDT 2022


Emmmer added a comment.

In D130342#3710122 <https://reviews.llvm.org/D130342#3710122>, @tzb99 wrote:

> In D130342#3709772 <https://reviews.llvm.org/D130342#3709772>, @Emmmer wrote:
>
>> What is implemented:
>>
>> - Use the same register layout as Linux kernel and mock read/write for `x0` register (the always zero register).
>> - Take RISC-V `ebreak` instruction as breakpoint trap code, so our breakpoint works as expected now.
>> - Refactor some duplicate code.
>>
>> Further work:
>>
>> - RISC-V does not support hardware single stepping yet. A software implementation may come in future PR.
>> - Add support for RVC extension (the trap code, etc.).
>
> Thank you so much for the contribution! I have few more questions. What is your qemu spec? Is it operated in the user mode or the system mode? In addition, did your cross compilation build using in-tree build or build lldb separately?

I'm using qemu-system 7.0.0 and in-tree cross build.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130342/new/

https://reviews.llvm.org/D130342



More information about the lldb-commits mailing list