aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Commands/command-stop-hook-output.test
blob: 7890bb3ca5e75b822f44736d4788fe3a50f10006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# REQUIRES: python
# RUN: %clang_host -g %S/Inputs/main.c -o %t
# RUN: %lldb %t -O 'command script import %S/Inputs/stop_hook.py' -s %s -o exit | FileCheck %s

b main
# CHECK-LABEL: b main
# CHECK: Breakpoint 1: where = {{.*}}`main

target stop-hook add -P stop_hook.stop_handler
# CHECK-LABEL: target stop-hook add -P stop_hook.stop_handler
# CHECK: Stop hook #1 added.

run
# CHECK-LABEL: run
# CHECK: I did indeed run
# CHECK: Process {{.*}} stopped
# CHECK: stop reason = breakpoint 1
# CHECK:   frame #0: {{.*}}`main at main.c