[Lldb-commits] [lldb] r120840 - in /lldb/trunk: lldb.xcodeproj/project.pbxproj source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Greg Clayton gclayton at apple.com
Fri Dec 3 13:42:06 PST 2010


Author: gclayton
Date: Fri Dec  3 15:42:06 2010
New Revision: 120840

URL: http://llvm.org/viewvc/llvm-project?rev=120840&view=rev
Log:
Make sure to index the DWARF if we already haven't so we can resolve forward
declarations when they haven't been found yet.


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

Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lldb.xcodeproj/project.pbxproj?rev=120840&r1=120839&r2=120840&view=diff
==============================================================================
--- lldb/trunk/lldb.xcodeproj/project.pbxproj (original)
+++ lldb/trunk/lldb.xcodeproj/project.pbxproj Fri Dec  3 15:42:06 2010
@@ -2459,6 +2459,7 @@
 			isa = PBXProject;
 			buildConfigurationList = 1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "lldb" */;
 			compatibilityVersion = "Xcode 3.1";
+			developmentRegion = English;
 			hasScannedForEncodings = 1;
 			knownRegions = (
 				en,

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=120840&r1=120839&r2=120840&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Fri Dec  3 15:42:06 2010
@@ -2754,6 +2754,9 @@
     if (curr_cu == NULL || die == NULL || !type_name)
         return type_sp;
 
+    if (!m_indexed)
+        Index ();
+
     const dw_tag_t type_tag = die->Tag();
     std::vector<NameToDIE::Info> die_info_array;
     const size_t num_matches = m_type_index.Find (type_name, die_info_array);





More information about the lldb-commits mailing list