[Lldb-commits] [lldb] r179304 - Handle C++ static variables in the expression

Sean Callanan scallanan at apple.com
Thu Apr 11 10:57:16 PDT 2013


Author: spyffe
Date: Thu Apr 11 12:57:16 2013
New Revision: 179304

URL: http://llvm.org/viewvc/llvm-project?rev=179304&view=rev
Log:
Handle C++ static variables in the expression
parser.

<rdar://problem/13631469>

Modified:
    lldb/trunk/source/Expression/IRForTarget.cpp

Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=179304&r1=179303&r2=179304&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Thu Apr 11 12:57:16 2013
@@ -1703,6 +1703,8 @@ IRForTarget::MaybeHandleVariable (Value
         {
             if (!global_variable->hasExternalLinkage())
                 return true;
+            else if (HandleSymbol (global_variable))
+                return true;
             else
                 return false;
         }





More information about the lldb-commits mailing list