brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · a955780 Raw
37 lines · plain
1# Test format (e.g., indentation) when printing the list of stop hooks.2#3# RUN: %lldb -b -s %s | FileCheck %s --match-full-lines --strict-whitespace4 5# Create some stop hooks6target stop-hook add -o 'print "Hello"' --auto-continue true --at-initial-stop true7target stop-hook add -o 'print "world,"' -o 'print "nice"' --file 'my_file'8target stop-hook add -o 'print "weather!"'  --classname 'MyClass' --thread-name 'my_thread'9 10# Print hooks11target stop-hook list12 13# CHECK:(lldb) target stop-hook list14# CHECK:Hook: 115# CHECK:  State: enabled16# CHECK:  AutoContinue on17# CHECK:  Commands:18# CHECK:      print "Hello"19# CHECK-EMPTY:20# CHECK:Hook: 221# CHECK:  State: enabled22# CHECK:  Specifier:23# CHECK:    File: my_file.24# CHECK:  Commands:25# CHECK:      print "world,"26# CHECK:      print "nice"27# CHECK-EMPTY:28# CHECK:Hook: 329# CHECK:  State: enabled30# CHECK:  Specifier:31# CHECK:    Class name: MyClass.32# CHECK:  Thread:33# CHECK:    thread name: "my_thread" 34# CHECK:  Commands:35# CHECK:      print "weather!"36# CHECK-EMPTY:37