[Symbol] Search symbols with name and type in a symbol file
authorAleksandr Urakov <aleksandr.urakov@jetbrains.com>
Fri, 30 Nov 2018 06:56:37 +0000 (06:56 +0000)
committerAleksandr Urakov <aleksandr.urakov@jetbrains.com>
Fri, 30 Nov 2018 06:56:37 +0000 (06:56 +0000)
commit8cfb12b9bd042d70a365dc6d7144d944d1a64612
treef7696a3d2a7f0400f91d0704051f95342811b00a
parent0850e8a6b647323ba184d4c63a8d500b3a7ec013
[Symbol] Search symbols with name and type in a symbol file

Summary:
This patch adds possibility of searching a public symbol with name and type in
a symbol file, not only in a symtab. It is helpful when working with PE, because
PE's symtabs contain only imported / exported symbols only. Such a search is
required for e.g. evaluation of an expression that calls some function of
the debuggee.

Reviewers: zturner, asmith, labath, clayborg, espindola

Reviewed By: clayborg

Subscribers: davide, emaste, arichardson, aleksandr.urakov, jingham,
             lldb-commits, stella.stamenova

Tags: #lldb

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

llvm-svn: 347960
lldb/include/lldb/Symbol/SymbolFile.h
lldb/include/lldb/Symbol/SymbolVendor.h
lldb/source/Core/Address.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
lldb/source/Symbol/SymbolVendor.cpp
lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp