[Lldb-commits] [lldb] [lldb] Track CFA pointer metadata in StackID (PR #157498)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 10 14:47:21 PDT 2025
felipepiovezan wrote:
@DavidSpickett @jasonmolenda I finally managed to write a test for this, but it took some assembly / DWARF bit scrubbing. Swift uses a lot of variable descriptions done in terms of CallFrameAddress, but with plain old C it is a bit hard. I hacked around this compiling a simple C program (see main.s) and editing it to:
1. force a variable location to be described in terms of OP_call_frame_addres
2. force fp to have its top nibble changed.
This is described in the test itself.
I also had to add a few changes in `RegisterContextUnwind::ReadFrameAddress` which I had forgotten to include in this commit previously; it's nothing surprising, just more "don't fix pointers".
Apologies for the force push here.
https://github.com/llvm/llvm-project/pull/157498
More information about the lldb-commits
mailing list