
Summary: This patch allows to resolve a symbol context block info even if a function info was not requested. Also it adds the correct resolving of nested blocks (the previous implementation used function blocks instead of them). Reviewers: zturner, asmith, labath Reviewed By: asmith Subscribers: lldb-commits, stella.stamenova Tags: #lldb Differential Revision: https://reviews.llvm.org/D51104 llvm-svn: 340901
13 lines
641 B
Plaintext
13 lines
641 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 --check-prefix=CHECK-FUNCTION %s
|
|
RUN: lldb-test symbols -find=block -file FunctionNestedBlockTest.cpp -line 4 %t.exe | FileCheck --check-prefix=CHECK-BLOCK %s
|
|
|
|
CHECK-FUNCTION: Found 1 functions:
|
|
CHECK-FUNCTION: name = "{{.*}}", mangled = "{{_?}}main"
|
|
|
|
CHECK-BLOCK: Found 1 blocks:
|
|
CHECK-BLOCK: Blocks: id = {{.*}}, range = {{.*}}
|
|
CHECK-BLOCK: id = {{.*}}, range = {{.*}}
|