jingham added a comment.

Yes, I was printing a global variable that WASN'T defined in the source file I 
later stopped in.  So it worked for me.  The bug is really that looking up a 
variable by name goes through and adds only that variable to the CU that 
defines it, but the CU doesn't make note of the fact that it didn't actually 
fully populate the m_variables for the CU.  So then later on when you ask for 
them, we think we got them all, which of course we haven't.

The fix needs to be in CompileUnit.  It shouldn't use m_variables.get to tell 
itself that it has finished getting variables for the CU.  It has to keep 
another flag telling itself that it has gotten ALL the variables defined in the 
comp unit, and if that's false, it should keep adding.


Repository:
  rL LLVM

https://reviews.llvm.org/D32732



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to