Files
clang-p2996/lldb/test/Shell/Heap/heap-cstr.test
Dave Lee f8d889a789 [lldb] Print message after loading 'crashlog' command
Previously, importing `crashlog` resulted in a message being printed. The
message was about other commands (those in heap.py), not `crashlog`. The
changes in D117237 made it so that the heap.py messages were printed only when
importing `lldb.macosx.heap`, not when importing `lldb.macosx.crashlog`. Some
users may see no output and think `crashlog` wasn't successfully loaded. This
ensures users see that `crashlog` is loaded.

rdar://88283132

Differential Revision: https://reviews.llvm.org/D119155
2022-02-07 12:34:12 -08:00

14 lines
361 B
Plaintext

# REQUIRES: system-darwin
# REQUIRES: python
# RUN: %clang_host %p/Inputs/cstr.c -g -o %t
# RUN: %lldb -b -s %s -f %t | FileCheck %s
br set -p return
command script import lldb.macosx.heap
run
cstr_refs "patatino"
# CHECK: "cstr_refs", {{.*}} commands have been installed, use the "--help" options on these commands
# CHECK: {{.*}}: malloc( 16) -> {{.*}}