diff options
| author | Aaron Smith <aaron.smith@microsoft.com> | 2018-02-09 05:31:28 +0000 |
|---|---|---|
| committer | Aaron Smith <aaron.smith@microsoft.com> | 2018-02-09 05:31:28 +0000 |
| commit | 7ac1c780622f847cdadcb5ed82c5ef0f9a6b445e (patch) | |
| tree | 432a007f46e2b716efab373be28db9f5ec393e3e /lldb/lit/SymbolFile/PDB/Inputs/FuncSymbols.cpp | |
| parent | 33b9fa7caaf20db4a851538363d04f70216c7101 (diff) | |
| download | bcm5719-llvm-7ac1c780622f847cdadcb5ed82c5ef0f9a6b445e.tar.gz bcm5719-llvm-7ac1c780622f847cdadcb5ed82c5ef0f9a6b445e.zip | |
[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
Diffstat (limited to 'lldb/lit/SymbolFile/PDB/Inputs/FuncSymbols.cpp')
| -rw-r--r-- | lldb/lit/SymbolFile/PDB/Inputs/FuncSymbols.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/lit/SymbolFile/PDB/Inputs/FuncSymbols.cpp b/lldb/lit/SymbolFile/PDB/Inputs/FuncSymbols.cpp new file mode 100644 index 00000000000..ccccf6ffd10 --- /dev/null +++ b/lldb/lit/SymbolFile/PDB/Inputs/FuncSymbols.cpp @@ -0,0 +1,16 @@ +// Static function +namespace { +static long StaticFunction(int a) +{ + return 2; +} +} + +// Inlined function +static inline int InlinedFunction(long a) { return 10; } + +void FunctionCall() +{ + StaticFunction(1); + InlinedFunction(1); +} |

