Skip to content

Commit 47d8fa6

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merge llvm/main into amd-debug
2 parents 40cd430 + bc2cc8b commit 47d8fa6

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function(create_libc_unittest fq_target_name)
327327
if(NOT LIBC_UNITTEST_NO_RUN_POSTBUILD)
328328
add_custom_target(
329329
${fq_target_name}
330-
COMMAND ${LIBC_UNITTEST_ENV} ${CMAKE_CROSSCOMPILING_EMULATOR} ${fq_build_target_name}
330+
COMMAND ${LIBC_UNITTEST_ENV} ${CMAKE_CROSSCOMPILING_EMULATOR} ${CMAKE_CURRENT_BINARY_DIR}/${fq_build_target_name}
331331
COMMENT "Running unit test ${fq_target_name}"
332332
DEPENDS ${fq_build_target_name}
333333
)

lldb/source/Core/FormatEntity.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,9 @@ static bool FormatFunctionNameForLanguage(Stream &s,
12801280
return false;
12811281

12821282
FormatEntity::Entry format = language_plugin->GetFunctionNameFormat();
1283-
if (!format)
1283+
1284+
// Bail on invalid or empty format.
1285+
if (!format || format == FormatEntity::Entry(Entry::Type::Root))
12841286
return false;
12851287

12861288
StreamString name_stream;
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# XFAIL: target-windows
2+
3+
# Test that setting plugin.cplusplus.display.function-name-format
4+
# to an empty string disables the "format by language" part of
5+
# ${function.name-with-args}.
6+
7+
# RUN: split-file %s %t
8+
# RUN: %clang_host -g -gdwarf %t/main.cpp -o %t.out
9+
# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \
10+
# RUN: | FileCheck %s
11+
12+
#--- main.cpp
13+
namespace ns::ns2 {
14+
void custom(int x) {}
15+
void bar() { custom(5); }
16+
}
17+
18+
int main(int argc, char const *argv[]) {
19+
ns::ns2::bar();
20+
return 0;
21+
}
22+
23+
#--- commands.input
24+
settings set plugin.cplusplus.display.function-name-format ""
25+
settings set -f frame-format "custom-frame '${function.name-with-args}'\n"
26+
break set -l 2 -f main.cpp
27+
28+
run
29+
bt
30+
31+
# CHECK: custom-frame 'ns::ns2::custom(x=5)'
32+
# CHECK: custom-frame 'ns::ns2::bar()'

0 commit comments

Comments
 (0)