[llvm-dev] [lldb-dev] Why is lldb telling me "variable not available"?

Brian Gesiak via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 28 04:08:30 PST 2020


Jeremy, Vedant, thank you both for your help! I think I have something
working pretty well: https://reviews.llvm.org/D75338

I'd greatly appreciate code review here -- in the course of writing
the patch I definitely encountered gaps in my knowledge about debug
info. In particular, I wasn't able to use the '-mllvm -use-dbg-addr'
option successfully, and I don't quite understand why. Having read the
docs in https://llvm.org/docs/SourceLevelDebugging.html, I'd expect
the patch to work just as well whether using 'dbg.declare' or
'dbg.addr', but in practice when using 'dbg.addr' I couldn't find any
variable entries in the DWARF that was output. Maybe I'm not using
that option correctly?

I hope to spend some more time soon learning more about debug info
outside of this particular patch, so thanks again for all your help.

- Brian Gesiak


More information about the llvm-dev mailing list