forked from OSchip/llvm-project
6234a5c863
Background: symbols and functions can be looked up by full mangled name and by basename. SymbolFile and ObjectFile are expected to be able to do the lookups based on full mangled name or by basename, so when the user types something that is incomplete, we must be able to look it up efficiently. For example the user types "a:🅱️:c" as a symbol to set a breakpoint on, we will break this down into a 'lookup "c"' and then weed out N matches down to just the ones that match "a:🅱️:c". Previously this was done manaully in many functions by calling Module::PrepareForFunctionNameLookup(...) and then doing the lookup and manually pruning the results down afterward with duplicated code. Now all places use Module::LookupInfo to do the work in one place. This allowed me to fix the name lookups to look for "func" with eFunctionNameTypeFull as the "name_type_mask", and correctly weed the results: "func", "func()", "func(int)", "a::func()", "b::func()", and "a:🅱️:func()" down to just "func", "func()", "func(int)". Previously we would have set 6 breakpoints, now we correctly set just 3. This also extends to the expression parser when it looks up names for functions it needs to not get multiple results so we can call the correct function. <rdar://problem/24599697> llvm-svn: 275281 |
||
---|---|---|
.. | ||
Breakpoint.cpp | ||
BreakpointID.cpp | ||
BreakpointIDList.cpp | ||
BreakpointList.cpp | ||
BreakpointLocation.cpp | ||
BreakpointLocationCollection.cpp | ||
BreakpointLocationList.cpp | ||
BreakpointOptions.cpp | ||
BreakpointResolver.cpp | ||
BreakpointResolverAddress.cpp | ||
BreakpointResolverFileLine.cpp | ||
BreakpointResolverFileRegex.cpp | ||
BreakpointResolverName.cpp | ||
BreakpointSite.cpp | ||
BreakpointSiteList.cpp | ||
CMakeLists.txt | ||
Stoppoint.cpp | ||
StoppointCallbackContext.cpp | ||
StoppointLocation.cpp | ||
Watchpoint.cpp | ||
WatchpointList.cpp | ||
WatchpointOptions.cpp |