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 _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev