llvm-project/lldb/lit
Pavel Labath 80d48155cf [DWARF] Align non-accelerated function fullname searching with the apple-tables path
Summary:
Before this patch the two paths were doing very different things
- the apple path searched the .apple_names section, which contained
  mangled names, as well as basenames of all functions. It returned any
  name it found.
- the non-accelerated path looked in the "full name" index we built
  ourselves, which contained mangled as well as demangled names of all
  functions (but no basenames). Then however, if it did not find a match
  it did an extra search in the basename index, with some special
  handling for anonymous namespaces.

This aligns the two paths by changing the non-accelerated path to return
the same results as in the apple-tables one. In pratice, this means we
will search in both the "basename", "method" and "fullname" indexes (in
the manual indexes these are separate indexes. This means the function
will return some slightly inappropriate results (e.g. bar::baz::foo when
one asks for a "full name" foo), but this can be handled by additional
filtering, independently indexing method. I've also stopped inserting
demangled names into the "fullname" index, as that is inconsistent with
the apple path.

Reviewers: clayborg, JDevlieghere

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D46576

llvm-svn: 331855
2018-05-09 08:21:25 +00:00
..
Breakpoint Re-add change for https://reviews.llvm.org/D42582 with added directories. 2018-03-12 21:17:04 +00:00
Expr Fix compilation error caused by tgmath.h. 2018-04-09 17:32:56 +00:00
Modules Add support to object files for accessing the .debug_types section 2018-05-08 17:19:24 +00:00
Suite [CMake] Unify and relayer testing 2018-05-03 16:54:10 +00:00
SymbolFile [DWARF] Align non-accelerated function fullname searching with the apple-tables path 2018-05-09 08:21:25 +00:00
Unit Resubmit "[lit] Force site configs to run before source-tree configs" 2017-09-15 22:10:46 +00:00
CMakeLists.txt [CMake] Unify and relayer testing 2018-05-03 16:54:10 +00:00
lit-lldb-init Introduce a setting to disable Spotlight while running the test suite 2018-03-12 20:52:36 +00:00
lit.cfg lldb-test symbols: Add ability to do name-based lookup 2018-05-03 10:57:16 +00:00
lit.site.cfg.in lldb-test symbols: Add ability to do name-based lookup 2018-05-03 10:57:16 +00:00