20 lines · plain
1# REQUIRES: python2# RUN: %clang_host -g %S/Inputs/main.c -o %t3# RUN: %lldb %t -O 'command script import %S/Inputs/stop_hook.py' -s %s -o exit | FileCheck %s4 5b main6# CHECK-LABEL: b main7# CHECK: Breakpoint 1: where = {{.*}}`main8 9target stop-hook add -P stop_hook.stop_handler10# CHECK-LABEL: target stop-hook add -P stop_hook.stop_handler11# CHECK: Stop hook #1 added.12 13run14# CHECK-LABEL: run15# CHECK: I did indeed run16# CHECK: Process {{.*}} stopped17# CHECK: stop reason = breakpoint 118# CHECK: frame #0: {{.*}}`main at main.c19 20