Before, functions created using the NativePDB plugin would not know about their mangled name. This showed when printing a stacktrace. There, only the function name was shown. For https://github.com/llvm/llvm-project/issues/143149, the mangled function name is required to separate different parts. This PR adds that name if available. The Clang AST nodes also take in a mangled name, which was previously unset. I don't think this unblocks anything further, because Clang can mangle the function anyway.
12 lines
583 B
Plaintext
12 lines
583 B
Plaintext
REQUIRES: system-windows, lld
|
|
RUN: %build --compiler=clang-cl --nodefaultlib --output=%t.exe %S/Inputs/FunctionNestedBlockTest.cpp
|
|
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 = "main"
|
|
|
|
CHECK-BLOCK: Found 1 blocks:
|
|
CHECK-BLOCK: Blocks: id = {{.*}}, range = {{.*}}
|
|
CHECK-BLOCK: id = {{.*}}, range = {{.*}}
|