[Lldb-commits] [lldb] r131145 - /lldb/trunk/source/Symbol/SymbolContext.cpp
Sean Callanan
scallanan at apple.com
Tue May 10 12:47:39 PDT 2011
Author: spyffe
Date: Tue May 10 14:47:39 2011
New Revision: 131145
URL: http://llvm.org/viewvc/llvm-project?rev=131145&view=rev
Log:
Fixed a bug that caused types to be incorrectly
looked up. Queries for global types were made
too specific -- including the current module
and compile unit in the query was limiting the
search when we wanted a truly global search.
Modified:
lldb/trunk/source/Symbol/SymbolContext.cpp
Modified: lldb/trunk/source/Symbol/SymbolContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/SymbolContext.cpp?rev=131145&r1=131144&r2=131145&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/SymbolContext.cpp (original)
+++ lldb/trunk/source/Symbol/SymbolContext.cpp Tue May 10 14:47:39 2011
@@ -9,6 +9,7 @@
#include "lldb/Symbol/SymbolContext.h"
+#include "lldb/Core/Log.h"
#include "lldb/Core/Module.h"
#include "lldb/Interpreter/Args.h"
#include "lldb/Symbol/CompileUnit.h"
@@ -453,7 +454,11 @@
if (module_sp && module_sp->FindTypes (*this, name, false, 1, types))
return types.GetTypeAtIndex(0);
- if (!return_value.get() && target_sp && target_sp->GetImages().FindTypes (*this, name, false, 1, types))
+ SymbolContext sc_for_global_search;
+
+ sc_for_global_search.target_sp = target_sp;
+
+ if (!return_value.get() && target_sp && target_sp->GetImages().FindTypes (sc_for_global_search, name, false, 1, types))
return types.GetTypeAtIndex(0);
return return_value;
More information about the lldb-commits
mailing list