[Lldb-commits] [lldb] r165169 - /lldb/trunk/source/Core/ModuleList.cpp
Enrico Granata
egranata at apple.com
Wed Oct 3 14:31:35 PDT 2012
Author: enrico
Date: Wed Oct 3 16:31:35 2012
New Revision: 165169
URL: http://llvm.org/viewvc/llvm-project?rev=165169&view=rev
Log:
<rdar://problem/12408181> Fixing a bug where we would try to look for types in a module, and then fail to look for them anywhere else because the same SymbolContext was being passed everywhere
Modified:
lldb/trunk/source/Core/ModuleList.cpp
Modified: lldb/trunk/source/Core/ModuleList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ModuleList.cpp?rev=165169&r1=165168&r2=165169&view=diff
==============================================================================
--- lldb/trunk/source/Core/ModuleList.cpp (original)
+++ lldb/trunk/source/Core/ModuleList.cpp Wed Oct 3 16:31:35 2012
@@ -454,13 +454,14 @@
if (total_matches < max_matches)
{
+ SymbolContext world_sc;
for (pos = m_modules.begin(); pos != end; ++pos)
{
// Search the module if the module is not equal to the one in the symbol
// context "sc". If "sc" contains a empty module shared pointer, then
// the comparisong will always be true (valid_module_ptr != NULL).
if (sc.module_sp.get() != (*pos).get())
- total_matches += (*pos)->FindTypes (sc, name, name_is_fully_qualified, max_matches, types);
+ total_matches += (*pos)->FindTypes (world_sc, name, name_is_fully_qualified, max_matches, types);
if (total_matches >= max_matches)
break;
More information about the lldb-commits
mailing list