2018-10-01 08:19:06 +00:00
|
|
|
//+build darwin,macnative
|
|
|
|
|
2015-06-11 20:17:56 +00:00
|
|
|
#include <stdlib.h>
|
2015-01-14 02:37:10 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <mach/mach.h>
|
|
|
|
#include <mach/mach_vm.h>
|
|
|
|
#include <mach/thread_info.h>
|
|
|
|
|
|
|
|
int
|
2016-04-13 05:53:13 +00:00
|
|
|
write_memory(task_t, mach_vm_address_t, void *, mach_msg_type_number_t);
|
2015-01-14 02:37:10 +00:00
|
|
|
|
|
|
|
int
|
2016-04-13 05:53:13 +00:00
|
|
|
read_memory(task_t, mach_vm_address_t, void *, mach_msg_type_number_t);
|
2015-01-14 02:37:10 +00:00
|
|
|
|
2015-02-28 16:39:21 +00:00
|
|
|
kern_return_t
|
|
|
|
get_registers(mach_port_name_t, x86_thread_state64_t*);
|
2015-01-14 02:37:10 +00:00
|
|
|
|
2016-11-15 16:16:33 +00:00
|
|
|
kern_return_t
|
|
|
|
get_fpu_registers(mach_port_name_t, x86_float_state64_t *);
|
|
|
|
|
2015-02-28 16:41:05 +00:00
|
|
|
kern_return_t
|
2015-01-14 02:37:10 +00:00
|
|
|
set_pc(thread_act_t, uint64_t);
|
|
|
|
|
2015-02-28 16:44:36 +00:00
|
|
|
kern_return_t
|
2015-01-14 02:37:10 +00:00
|
|
|
single_step(thread_act_t);
|
|
|
|
|
2015-02-28 16:44:36 +00:00
|
|
|
kern_return_t
|
2015-03-08 00:21:10 +00:00
|
|
|
clear_trap_flag(thread_act_t);
|
|
|
|
|
|
|
|
kern_return_t
|
|
|
|
resume_thread(thread_act_t);
|
2015-03-28 01:12:07 +00:00
|
|
|
|
|
|
|
kern_return_t
|
|
|
|
set_registers(mach_port_name_t, x86_thread_state64_t*);
|
2015-07-28 05:33:07 +00:00
|
|
|
|
|
|
|
kern_return_t
|
|
|
|
get_identity(mach_port_name_t, thread_identifier_info_data_t *);
|
2015-08-20 14:28:11 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
thread_blocked(thread_act_t thread);
|
2016-01-07 18:33:15 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
num_running_threads(task_t task);
|