[Lldb-commits] [lldb] r157836 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Greg Clayton gclayton at apple.com
Fri Jun 1 13:32:36 PDT 2012


Author: gclayton
Date: Fri Jun  1 15:32:35 2012
New Revision: 157836

URL: http://llvm.org/viewvc/llvm-project?rev=157836&view=rev
Log:
<rdar://problem/11548378>

Fixed an issue with the current type being set to DIE_IS_BEING_PARSED in the m_die_to_type map by making sure the type pointer is valid. 

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=157836&r1=157835&r2=157836&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Fri Jun  1 15:32:35 2012
@@ -5922,7 +5922,7 @@
                                                                             decl_ctx_die))
                                             {
                                                 type_ptr = m_die_to_type[die];
-                                                if (type_ptr)
+                                                if (type_ptr && type_ptr != DIE_IS_BEING_PARSED)
                                                 {
                                                     type_sp = type_ptr->shared_from_this();
                                                     break;
@@ -6047,7 +6047,7 @@
 
                                                 // The type for this DIE should have been filled in the function call above
                                                 type_ptr = m_die_to_type[die];
-                                                if (type_ptr)
+                                                if (type_ptr && type_ptr != DIE_IS_BEING_PARSED)
                                                 {
                                                     type_sp = type_ptr->shared_from_this();
                                                     break;





More information about the lldb-commits mailing list