20 lines
		
	
	
		
			533 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			533 B
		
	
	
	
		
			Plaintext
		
	
	
	
| # 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
 | |
| 
 |