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

via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 20 04:54:15 PST 2025


wangleiat wrote:

> 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 #124475, so you can use that as an example.

Thank you, the test case has been added.

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


More information about the lldb-commits mailing list