[Lldb-commits] [lldb] r175574 - Fixing a potential crasher where a synthetic value could return itself as its static value

Enrico Granata egranata at apple.com
Tue Feb 19 15:23:42 PST 2013


Author: enrico
Date: Tue Feb 19 17:23:41 2013
New Revision: 175574

URL: http://llvm.org/viewvc/llvm-project?rev=175574&view=rev
Log:
Fixing a potential crasher where a synthetic value could return itself as its static value

Modified:
    lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h

Modified: lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h?rev=175574&r1=175573&r2=175574&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h (original)
+++ lldb/trunk/include/lldb/Core/ValueObjectSyntheticFilter.h Tue Feb 19 17:23:41 2013
@@ -89,6 +89,15 @@ public:
             return false;
     }
     
+    virtual lldb::ValueObjectSP
+    GetStaticValue ()
+    {
+        if (m_parent)
+            return m_parent->GetStaticValue();
+        else
+            return GetSP();
+    }
+    
     virtual lldb::DynamicValueType
     GetDynamicValueType ()
     {





More information about the lldb-commits mailing list