You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
533 B

# 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