[Lldb-commits] [lldb] [lldb][LoongArch] Complete register alias name in `AugmentRegisterInfo` (PR #124059)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 19 02:03:11 PST 2025


https://github.com/DavidSpickett requested changes to this pull request.

Please add a test like `lldb/test/Shell/Register/aarch64-gp-read.test` which tests the normal and alias names using a live process.

Note that the main "trick" of that test is to manually insert a breakpoint instruction:
```
  asm volatile(
    "ldp      x0,  x1,  [%0]\n\t"
<...>
    "brk      #0\n\t"
<...>
  );
```

Then lldb will stop there, before the compiler restores anything.

The usual way to do these tests is set each register to its number plus some offset. x0 = 1, x1 = 2, etc.

One is being added for RISC-V in https://github.com/llvm/llvm-project/pull/124475, so you can use that as an example.

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


More information about the lldb-commits mailing list