xref: /llvm-project/lldb/test/Shell/Commands/command-stop-hook-output.test (revision 1b1d9815987a753f2f3524cfad050b85972dae5b)
1# REQUIRES: python
2# RUN: %clang_host -g %S/Inputs/main.c -o %t
3# RUN: %lldb %t -O 'command script import %S/Inputs/stop_hook.py' -s %s -o exit | FileCheck %s
4
5b main
6# CHECK-LABEL: b main
7# CHECK: Breakpoint 1: where = {{.*}}`main
8
9target stop-hook add -P stop_hook.stop_handler
10# CHECK-LABEL: target stop-hook add -P stop_hook.stop_handler
11# CHECK: Stop hook #1 added.
12
13run
14# CHECK-LABEL: run
15# CHECK: I did indeed run
16# CHECK: Process {{.*}} stopped
17# CHECK: stop reason = breakpoint 1
18# CHECK:   frame #0: {{.*}}`main at main.c
19
20