brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 7e4fbbe Raw
85 lines · plain
1# Test that we warn the user about truncated output2# when target.max-children-depth wasn't explicitly set.3 4# RUN: split-file %s %t5# RUN: %clangxx_host -g %t/main.cpp -o %t.out6# RUN: %lldb -x -b -s %t/dwim-commands.input %t.out -o exit 2>&1 \7# RUN:       | FileCheck %s --check-prefix=DWIM8#9# RUN: %lldb -x -b -s %t/expr-commands.input %t.out -o exit 2>&1 \10# RUN:       | FileCheck %s --check-prefix=EXPR11#12# RUN: %lldb -x -b -s %t/frame-var-commands.input %t.out -o exit 2>&1 \13# RUN:       | FileCheck %s --check-prefix=VAR14#15# RUN: %lldb -x -b -s %t/with-setting-commands.input %t.out -o exit 2>&1 \16# RUN:       | FileCheck %s --check-prefix=SETTING17 18#--- main.cpp19 20struct L1 {21    int w;22    struct L2 {23        int x;24        struct L3 {25            int y;26            struct L4 {27              int z;28                struct L5 {29                  int a;30                } l5;31            } l4;32        } l3;33    } l2;34};35 36int main() {37  L1 nested;38  __builtin_debugtrap();39}40 41#--- dwim-commands.input42 43run44dwim-print nested45frame variable nested46 47DWIM:      (lldb) dwim-print nested48DWIM:      *** Some of the displayed variables have a greater depth of members49DWIM-SAME: use the --depth option to dwim-print50DWIM:      (lldb) frame variable nested51DWIM-NOT:  *** Some of the displayed variables have a greater depth of members52 53#--- expr-commands.input54 55run56expression nested57frame variable nested58 59EXPR:      (lldb) expression nested60EXPR:      *** Some of the displayed variables have a greater depth of members61EXPR-SAME: use the --depth option to expression62EXPR:      (lldb) frame variable nested63EXPR-NOT:  *** Some of the displayed variables have a greater depth of members64 65#--- frame-var-commands.input66 67run68frame variable nested69frame variable nested70 71VAR:      (lldb) frame variable nested72VAR:      *** Some of the displayed variables have a greater depth of members73VAR-SAME: use the --depth option to frame variable74VAR:      (lldb) frame variable nested75VAR-NOT:  *** Some of the displayed variables have a greater depth of members76 77#--- with-setting-commands.input78 79run80settings set target.max-children-depth 181frame variable nested82 83SETTING:      (lldb) frame variable nested84SETTING-NOT:  *** Some of the displayed variables have a greater depth of members85