[Lldb-commits] [lldb] r112679 - /lldb/trunk/source/Core/Module.cpp

Jim Ingham jingham at apple.com
Tue Aug 31 16:51:36 PDT 2010


Author: jingham
Date: Tue Aug 31 18:51:36 2010
New Revision: 112679

URL: http://llvm.org/viewvc/llvm-project?rev=112679&view=rev
Log:
Don't re-look up the symbol in ResolveSymbolContextForAddress.

Modified:
    lldb/trunk/source/Core/Module.cpp

Modified: lldb/trunk/source/Core/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Module.cpp?rev=112679&r1=112678&r2=112679&view=diff
==============================================================================
--- lldb/trunk/source/Core/Module.cpp (original)
+++ lldb/trunk/source/Core/Module.cpp Tue Aug 31 18:51:36 2010
@@ -215,8 +215,8 @@
                 resolved_flags |= symbols->ResolveSymbolContext (so_addr, resolve_scope, sc);
         }
 
-        // Resolve the symbol if requested
-        if (resolve_scope & eSymbolContextSymbol)
+        // Resolve the symbol if requested, but don't re-look it up if we've already found it.
+        if (resolve_scope & eSymbolContextSymbol && !(resolved_flags & eSymbolContextSymbol))
         {
             ObjectFile* ofile = GetObjectFile();
             if (ofile)





More information about the lldb-commits mailing list