Files
TheRock/compiler/amd-llvm/lldb/test/Shell/Settings/TestChildDepthTruncation.test
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

88 lines
2.3 KiB
Plaintext

# Test that we warn the user about truncated output
# when target.max-children-depth wasn't explicitly set.
# RUN: split-file %s %t
# RUN: %clangxx_host -g %t/main.cpp -o %t.out
# RUN: %lldb -x -b -s %t/dwim-commands.input %t.out -o exit 2>&1 \
# RUN: | FileCheck %s --check-prefix=DWIM
#
# RUN: %lldb -x -b -s %t/expr-commands.input %t.out -o exit 2>&1 \
# RUN: | FileCheck %s --check-prefix=EXPR
#
# RUN: %lldb -x -b -s %t/frame-var-commands.input %t.out -o exit 2>&1 \
# RUN: | FileCheck %s --check-prefix=VAR
#
# RUN: %lldb -x -b -s %t/with-setting-commands.input %t.out -o exit 2>&1 \
# RUN: | FileCheck %s --check-prefix=SETTING
#--- main.cpp
struct L1 {
int a;
struct L2 {
int b;
struct L3 {
int c;
struct L4 {
int d;
struct L5 {
int e;
struct L6 {
int f;
} l6;
} l5;
} l4;
} l3;
} l2;
};
int main() {
L1 nested;
__builtin_debugtrap();
}
#--- dwim-commands.input
run
dwim-print nested
frame variable nested
DWIM: (lldb) dwim-print nested
DWIM: *** Some of the displayed variables have a greater depth of members
DWIM-SAME: use the --depth option to dwim-print
DWIM: (lldb) frame variable nested
DWIM-NOT: *** Some of the displayed variables have a greater depth of members
#--- expr-commands.input
run
expression nested
frame variable nested
EXPR: (lldb) expression nested
EXPR: *** Some of the displayed variables have a greater depth of members
EXPR-SAME: use the --depth option to expression
EXPR: (lldb) frame variable nested
EXPR-NOT: *** Some of the displayed variables have a greater depth of members
#--- frame-var-commands.input
run
frame variable nested
frame variable nested
VAR: (lldb) frame variable nested
VAR: *** Some of the displayed variables have a greater depth of members
VAR-SAME: use the --depth option to frame variable
VAR: (lldb) frame variable nested
VAR-NOT: *** Some of the displayed variables have a greater depth of members
#--- with-setting-commands.input
run
settings set target.max-children-depth 1
frame variable nested
SETTING: (lldb) frame variable nested
SETTING-NOT: *** Some of the displayed variables have a greater depth of members