Summary: This patch fixes a problem with retrieving a function symbol by an address in a nested block. In the current implementation of ResolveSymbolContext function it retrieves a symbol with PDB_SymType::None and then checks if found symbol's tag equals to PDB_SymType::Function. So, if nested block's symbol was found, ResolveSymbolContext does not resolve a function. Reviewers: asmith, labath, zturner Reviewed By: asmith, labath Differential Revision: https://reviews.llvm.org/D47939 Patch by Aleksandr Urakov <aleksandr.urakov@jetbrains.com> llvm-svn: 335822
8 lines
334 B
Plaintext
8 lines
334 B
Plaintext
REQUIRES: windows, lld
|
|
RUN: clang-cl /c /Zi %S/Inputs/FunctionNestedBlockTest.cpp /o %t.obj
|
|
RUN: lld-link /debug:full /nodefaultlib /entry:main %t.obj /out:%t.exe
|
|
RUN: lldb-test symbols -find=function -file FunctionNestedBlockTest.cpp -line 4 %t.exe | FileCheck %s
|
|
|
|
CHECK: Found 1 functions:
|
|
CHECK: name = "{{.*}}", mangled = "_main"
|