| Issue |
181509
|
| Summary |
Add a DWARF _expression_ evaluator to LLDB
|
| Labels |
lldb
|
| Assignees |
|
| Reporter |
JDevlieghere
|
At the [FOSDEM 2026 GCC (GNU Toolchain) Devroom](https://fosdem.org/2026/schedule/track/gcc-gnu-toolchain/), Baris Aktemur presented [an evaluator and a web playground for DWARF-6 expressions](https://fosdem.org/2026/schedule/event/99DLGQ-dwarf-evaluator/). There's an [online playground](https://intel.github.io/dwarf-evaluator/).
While watching the talk, I thought to myself that it could be interesting to have something similar in LLDB, where you can execute an arbitrary DWARF _expression_ in the context of the current stack frame, instead of conjuring up a context to evaluate an _expression_. I imagine something like:
```
(lldb) dwarf _expression_ evaluate -- DW_OP_reg0 DW_OP_deref DW_OP_deref DW_OP_stack_value
```
I'm making up a command structure here, there might be a better place for it. Regardless, I think we have all the building blocks to make something like this and therefore it should be pretty straightforward and may come in handy when adding support for DWARF 6 locations on the stack.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs