llvm-project/lldb/source/Plugins
Dawn Perchik b59257841e Fix scope-based lookup when more than one function is found.
When multiple functions are found by name, lldb removes duplicate entries of
functions with the same type, so the first function in the symbol context list
is chosen, even if it isn't in scope. This patch uses the declaration context
of the execution context to select the function which is in scope.

This fixes cases like the following:

    int func();
    namespace ns {
	int func();
	void here() {
	    // Run to BP here and eval 'p func()';
	    // lldb used to find ::func(), now finds ns::func().
	}
    }

Reviewed by: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D15312

llvm-svn: 255439
2015-12-12 19:31:41 +00:00
..
ABI Remove hardcoded registers from Hexagon ABI 2015-12-11 21:52:47 +00:00
Disassembler DisassemblerLLVMC now gets the disassembler comments for an instruction 2015-12-11 19:10:04 +00:00
DynamicLoader The MacOSXi386 ABI should be used for watchos simulator debug sessions. 2015-11-10 03:21:59 +00:00
ExpressionParser Fix scope-based lookup when more than one function is found. 2015-12-12 19:31:41 +00:00
Instruction Add support for the new (added last week) llvm::Triple::WatchOS and ::TvOS 2015-11-05 23:03:44 +00:00
InstrumentationRuntime Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes. 2015-10-21 01:03:30 +00:00
JITLoader Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes. 2015-10-21 18:46:17 +00:00
Language Reduce memory traffic in ConstString in the std::map formatter 2015-12-04 22:49:27 +00:00
LanguageRuntime [RenderScript] Support for amd64 RS hooks 2015-12-11 13:49:21 +00:00
MemoryHistory Upstream a change to MemoryHistoryASan from Sean: 2015-11-06 00:43:31 +00:00
ObjectContainer Fix Clang-tidy modernize-use-override warnings in source/Plugins/ObjectContainer and ObjectFile; other minor fixes. 2015-10-23 16:56:07 +00:00
ObjectFile Implement GetMemoryRegionInfo for mini dumps. 2015-12-04 22:22:15 +00:00
OperatingSystem Fix Clang-tidy modernize-use-override warnings in include/lldb/Disassembler and OperatingSystem; other minor fixes. 2015-10-22 21:24:37 +00:00
Platform Modify "platform connect" to connect to processes as well 2015-12-08 14:08:19 +00:00
Process Remove unused mips typedefs. 2015-12-12 02:13:17 +00:00
ScriptInterpreter Python 3 - Fix script import --allow-reload. 2015-12-04 22:59:14 +00:00
SymbolFile Trying to submit 254476 one more time. This implement -gmodule debugging support. 2015-12-08 01:02:08 +00:00
SymbolVendor Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes. 2015-10-19 18:52:10 +00:00
SystemRuntime Add support for the new (added last week) llvm::Triple::WatchOS and ::TvOS 2015-11-05 23:03:44 +00:00
UnwindAssembly Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes. 2015-10-21 18:46:17 +00:00
CMakeLists.txt Fix cmake build. 2015-09-03 04:17:57 +00:00
Makefile autotools: Also link the new go libraries 2015-11-08 22:30:34 +00:00