mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			527 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			527 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <sys/types.h>
 | |
| #include <mach/mach.h>
 | |
| #include <mach/mach_vm.h>
 | |
| #include <mach/thread_info.h>
 | |
| 
 | |
| int
 | |
| write_memory(mach_port_name_t, mach_vm_address_t, void *, mach_msg_type_number_t);
 | |
| 
 | |
| int
 | |
| read_memory(mach_port_name_t, mach_vm_address_t, void *, mach_msg_type_number_t);
 | |
| 
 | |
| kern_return_t
 | |
| get_registers(mach_port_name_t, x86_thread_state64_t*);
 | |
| 
 | |
| kern_return_t
 | |
| set_pc(thread_act_t, uint64_t);
 | |
| 
 | |
| kern_return_t
 | |
| single_step(thread_act_t);
 | |
| 
 | |
| kern_return_t
 | |
| clear_trap_flag(thread_act_t);
 | |
| 
 | |
| kern_return_t
 | |
| resume_thread(thread_act_t);
 | 
