[all-commits] [llvm/llvm-project] 0247b5: [LLDB][RISCV] Add riscv software breakpoint trap code
Emmmer via All-commits
all-commits at lists.llvm.org
Wed Aug 10 23:26:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0247b5aaae7ae02f140ca9509dc68078cfe55898
https://github.com/llvm/llvm-project/commit/0247b5aaae7ae02f140ca9509dc68078cfe55898
Author: Emmmer <yjhdandan at 163.com>
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M lldb/source/Host/common/NativeProcessProtocol.cpp
M lldb/source/Target/Platform.cpp
Log Message:
-----------
[LLDB][RISCV] Add riscv software breakpoint trap code
Added:
- Take RISC-V `ebreak` instruction as breakpoint trap code, so our breakpoint works as expected now.
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.).
Reviewed By: DavidSpickett
Differential Revision: https://reviews.llvm.org/D131566
More information about the All-commits
mailing list