Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static void | xnu_thread_free (xnu_thread_t *thread) |
RZ_IPI bool | rz_xnu_thread_get_drx (RzDebug *dbg, xnu_thread_t *thread) |
RZ_IPI bool | rz_xnu_thread_set_drx (RzDebug *dbg, xnu_thread_t *thread) |
RZ_IPI bool | rz_xnu_thread_set_gpr (RzDebug *dbg, xnu_thread_t *thread) |
RZ_IPI bool | rz_xnu_thread_get_gpr (RzDebug *dbg, xnu_thread_t *thread) |
static bool | xnu_fill_info_thread (RzDebug *dbg, xnu_thread_t *thread) |
static xnu_thread_t * | xnu_get_thread_with_info (RzDebug *dbg, thread_t port) |
static int | xnu_update_thread_info (RzDebug *dbg, xnu_thread_t *thread) |
static int | thread_find (thread_t *port, xnu_thread_t *a) |
RZ_IPI int | rz_xnu_update_thread_list (RzDebug *dbg) |
RZ_IPI xnu_thread_t * | rz_xnu_get_thread (RzDebug *dbg, int tid) |
RZ_IPI thread_t | rz_xnu_get_cur_thread (RzDebug *dbg) |
Definition at line 402 of file xnu_threads.c.
References dbg, memcpy(), NULL, rz_debug_t::pid, pid_to_task(), and threads.
Referenced by rz_xnu_get_thread(), xnu_continue(), xnu_reg_read(), xnu_reg_write(), and xnu_step().
RZ_IPI xnu_thread_t* rz_xnu_get_thread | ( | RzDebug * | dbg, |
int | tid | ||
) |
Definition at line 378 of file xnu_threads.c.
References rz_list_iter_t::data, dbg, eprintf, NULL, rz_list_find(), rz_xnu_get_cur_thread(), rz_xnu_update_thread_list(), thread_find(), and rz_debug_t::threads.
Referenced by xnu_continue(), xnu_map_alloc(), xnu_map_dealloc(), xnu_reg_read(), xnu_reg_write(), and xnu_step().
RZ_IPI bool rz_xnu_thread_get_drx | ( | RzDebug * | dbg, |
xnu_thread_t * | thread | ||
) |
Definition at line 26 of file xnu_threads.c.
References rz_debug_t::bits, _xnu_thread::count, dbg, _xnu_thread::flavor, LOG_MACH_ERROR, _xnu_thread::port, rz_return_val_if_fail, RZ_SYS_BITS_64, _xnu_thread::state, _xnu_thread::state_size, and x86_DEBUG_STATE.
Referenced by xnu_reg_read().
RZ_IPI bool rz_xnu_thread_get_gpr | ( | RzDebug * | dbg, |
xnu_thread_t * | thread | ||
) |
Definition at line 184 of file xnu_threads.c.
References rz_debug_t::bits, _xnu_thread::count, dbg, _xnu_thread::flavor, _xnu_thread::gpr, LOG_MACH_ERROR, _xnu_thread::port, regs, rz_return_val_if_fail, RZ_SYS_BITS_64, _xnu_thread::state, _xnu_thread::state_size, x86_THREAD_STATE, and x86_THREAD_STATE_COUNT.
Referenced by xnu_reg_read(), and xnu_thread_list().
RZ_IPI bool rz_xnu_thread_set_drx | ( | RzDebug * | dbg, |
xnu_thread_t * | thread | ||
) |
Definition at line 70 of file xnu_threads.c.
References rz_debug_t::bits, _xnu_thread::count, dbg, _xnu_thread::flavor, LOG_MACH_ERROR, _xnu_thread::port, regs, rz_return_val_if_fail, RZ_SYS_BITS_64, x86_DEBUG_STATE, x86_DEBUG_STATE32, and x86_DEBUG_STATE64.
Referenced by xnu_reg_write().
RZ_IPI bool rz_xnu_thread_set_gpr | ( | RzDebug * | dbg, |
xnu_thread_t * | thread | ||
) |
Definition at line 130 of file xnu_threads.c.
References rz_debug_t::bits, _xnu_thread::count, dbg, _xnu_thread::flavor, _xnu_thread::gpr, if(), LOG_MACH_ERROR, _xnu_thread::port, regs, rz_return_val_if_fail, RZ_SYS_BITS_64, _xnu_thread::state, _xnu_thread::state_size, x86_THREAD_STATE, x86_THREAD_STATE32, x86_THREAD_STATE64, x86_THREAD_STATE64_COUNT, and x86_THREAD_STATE_COUNT.
Referenced by xnu_reg_write().
Definition at line 290 of file xnu_threads.c.
References dbg, eprintf, i, NULL, rz_debug_t::pid, pid_to_task(), _xnu_thread::port, rz_list_append(), rz_list_delete(), rz_list_find(), rz_list_newf(), thread_find(), rz_debug_t::threads, xnu_get_thread_with_info(), xnu_thread_free(), and xnu_update_thread_info().
Referenced by rz_xnu_get_thread(), and xnu_thread_list().
|
static |
Definition at line 286 of file xnu_threads.c.
References a.
Referenced by rz_xnu_get_thread(), and rz_xnu_update_thread_list().
|
static |
Definition at line 226 of file xnu_threads.c.
References _xnu_thread::basic_info, count, dbg, eprintf, _xnu_thread::name, rz_debug_t::pid, _xnu_thread::port, RZ_FREE, and strdup().
Referenced by xnu_get_thread_with_info(), and xnu_update_thread_info().
|
static |
Definition at line 265 of file xnu_threads.c.
References dbg, free(), _xnu_thread::name, NULL, _xnu_thread::port, RZ_NEW0, strdup(), and xnu_fill_info_thread().
Referenced by rz_xnu_update_thread_list().
|
static |
Definition at line 10 of file xnu_threads.c.
References eprintf, free(), _xnu_thread::name, and _xnu_thread::port.
Referenced by rz_xnu_update_thread_list().
|
static |
Definition at line 278 of file xnu_threads.c.
References dbg, free(), _xnu_thread::name, strdup(), and xnu_fill_info_thread().
Referenced by rz_xnu_update_thread_list().