[SymbolFilePDB] Add support for function symbols
authorAaron Smith <aaron.smith@microsoft.com>
Fri, 9 Feb 2018 05:31:28 +0000 (05:31 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Fri, 9 Feb 2018 05:31:28 +0000 (05:31 +0000)
commit7ac1c780622f847cdadcb5ed82c5ef0f9a6b445e
tree432a007f46e2b716efab373be28db9f5ec393e3e
parent33b9fa7caaf20db4a851538363d04f70216c7101
[SymbolFilePDB] Add support for function symbols

Summary:
This is combination of following changes,

- Resolve function symbols in PDB symbol file. `lldb-test symbols` will display information about function symbols.

- Implement SymbolFilePDB::FindFunctions methods. On lldb console, searching function symbol by name and by regular expression are both available.

- Create lldb type for PDBSymbolFunc.

- Add tests to check whether functions with the same name but from different sources can be resolved correctly.

Reviewers: zturner, lldb-commits

Reviewed By: zturner

Subscribers: amccarth, labath, llvm-commits

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

llvm-svn: 324707
lldb/lit/SymbolFile/PDB/Inputs/FuncSymbols.cpp [new file with mode: 0644]
lldb/lit/SymbolFile/PDB/Inputs/FuncSymbolsTestMain.cpp [new file with mode: 0644]
lldb/lit/SymbolFile/PDB/Inputs/SimpleTypesTest.cpp
lldb/lit/SymbolFile/PDB/func-symbols.test [new file with mode: 0644]
lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h