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

2020-02-28 Thread Brian Gesiak via lldb-dev
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

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

2020-02-26 Thread Brian Gesiak via lldb-dev
Vedant, Jeremy, Thanks a ton! I copied ASan's use of 'replaceDbgDeclare', think that worked! https://github.com/modocache/llvm-project/commit/afbc04e1dcba has some extremely quick and dirty changes I made (with no tests!), and a link to a Gist with the LLVM IR and DWARF produced, https://gist.git

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

2020-02-26 Thread Brian Gesiak via lldb-dev
Vedant, thank you! I had meant to ask if any of this reminded you all of something else that I could emulate. I'll look into uses of 'replaceDbgDeclare' in SafeStack/ASan. - Brian On Wed, Feb 26, 2020 at 5:08 PM Vedant Kumar wrote: > > I haven't fully parsed this thread (sorry!), but I wanted to

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

2020-02-26 Thread Brian Gesiak via lldb-dev
Awesome, thanks Jeremy. On Wed, Feb 26, 2020 at 11:02 AM Jeremy Morse wrote: > > Hi Brian, > > On Tue, Feb 25, 2020 at 7:43 PM Brian Gesiak wrote: > > In other words, the value of %i is stored on the frame object, on the > > heap, at an offset of 7 into the frame. I'm beginning to think a > > fu

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

2020-02-25 Thread Brian Gesiak via lldb-dev
Thanks all, especially Jeremy, for your help. > On Thu, Feb 6, 2020 at 11:04 AM Jeremy Morse > wrote: >> Everything in the IR appears correct to my eyes, although I know next >> to nothing about coroutines and might have missed something. Yes, good point. I think a better explanation of the cor

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

2020-02-11 Thread Brian Gesiak via lldb-dev
Apologies for the slow response here Jeremy. Your reply has been incredibly helpful so far, I just need to try adding 'llvm.dbg.addr' myself to confirm that works. Thank you! - Brian Gesiak On Thu, Feb 6, 2020 at 11:04 AM Jeremy Morse wrote: > Hi Brian, > > Thanks for working on coroutines, the

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

2020-02-06 Thread Brian Gesiak via lldb-dev
Hi all, I’m working on improving the debugging experience for C++20 coroutines when compiled with LLVM/Clang, and I could use some help from someone who understands debug information and DWARF (knowledge of coroutines isn't necessary, I don't think). Specifically, I’m trying to improve lldb’s beha