[Lldb-commits] [lldb] [llvm] Annotate disassembly with register‐resident variable locations (PR #147460)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 16 06:01:37 PDT 2025


adrian-prantl wrote:

As high-level comments:
- I would filter out the entry values, since this feature is meant to help a user understand the disassembly, and the entry values don't really exist in the function.
- It would help readability if all annotations started at the same column
- in a follow-up patch it would be great to outline the valid range of each expression
- is it possible to hide the DW_OP... part and just show the human-readable register name?
- `DW_OP_consts +0, DW_OP_stack_value` -> I would filter out anything that isn't a pure register. Then we can later recognize certain kinds of expression, for example, this is a constant, so it should just print `= 0`

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


More information about the lldb-commits mailing list