[Lldb-commits] [lldb] [lldb] Extended if conditions to support alias names for registers (PR #124475)
Sudharsan Veeravalli via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 27 01:55:25 PST 2025
svs-quic wrote:
> A test for this would be finding the tests that check basic reads of registers, and adding reads with the new names. There should be one for core files and one for live processes.
Basic support was added in https://github.com/llvm/llvm-project/commit/847de9c332775d1841fec9fea5cb5c41592a4c8f and I dont see any tests added there. We may have to write a new one for live process at the very least.
> I haven't checked, but it's possible that this already works for core files
Yeah this should work for core files.
```
(lldb) target create "lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.out" --core "ldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core"
Core file 'lldb/test/API/functionalities/postmortem/elf-core/linux-riscv64.gpr_only.core' (riscv64) was loaded.
(lldb) re re x8
fp = 0x00fffffff4d5fcf0
(lldb) re re x21
s5 = 0x00fffffffccd8d28
```
https://github.com/llvm/llvm-project/pull/124475
More information about the lldb-commits
mailing list