[Lldb-commits] [lldb] [lldb] Implement RISCV function unwinding using instruction emulation (PR #147434)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 16 00:32:14 PDT 2025


labath wrote:

Just to throw a couple of other ideas:
- write a unit test for the instruction emulator (other architectures have one)
- extend yaml2obj to work on core files
- use minidumps which are supported in yaml2obj (for unwind plan generation/instruction emulation to work, you don't actually need a core file that contains anything. It just needs to [be there](https://github.com/llvm/llvm-project/blob/afe81507809fb845ee3368291adaa9671e6732c0/lldb/test/Shell/Unwind/basic-block-sections-with-dwarf-static.test#L10) so that lldb can construct the register context)
- teach lldb to emulate instructions without a core file. (by removing the requirement to have a (real) register context for unwind plan construction)

https://github.com/llvm/llvm-project/pull/147434


More information about the lldb-commits mailing list