99,5 → 99,59 |
tid); |
} |
|
int udebug_thread_copy_kstack(int phoneid, thash_t tid, void *buffer, size_t buf_size, size_t *copied, size_t *needed) |
{ |
size_t arg_copied, arg_needed; |
|
int rc = async_req_4_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_COPY_KSTACK, (sysarg_t)buffer, buf_size, tid, NULL, &arg_copied, &arg_needed); |
|
*copied = arg_copied; |
*needed = arg_needed; |
|
return (rc); |
} |
|
int udebug_thread_get_thread_struct(int phoneid, thash_t tid, void *buffer, size_t n, size_t *copied, size_t *needed) |
{ |
ipcarg_t a_copied, a_needed; |
|
int rc = async_req_4_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_GET_THREAD_STRUCT, (sysarg_t)buffer, tid, n, NULL, &a_copied, &a_needed); |
|
*copied = (size_t)a_copied; |
*needed = (size_t)a_needed; |
|
return (rc); |
} |
|
int udebug_task_memory_areas_read(int phoneid, void *buffer, size_t n, size_t *copied, size_t *needed) |
{ |
ipcarg_t a_copied, a_needed; |
int rc; |
|
rc = async_req_3_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_TASK_MEM_AREAS_READ, |
(sysarg_t)buffer, n, NULL, &a_copied, &a_needed); |
|
*copied = (size_t)a_copied; |
*needed = (size_t)a_needed; |
|
return (rc); |
} |
|
int udebug_thread_restore_thread_struct(int phoneid, thash_t tid, void *buffer) |
{ |
int rc = async_req_3_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_RESTORE_THREAD_STRUCT, (sysarg_t)buffer, tid); |
return (rc); |
} |
|
int udebug_mem_write(int phoneid, void *buffer, void *start, size_t n) |
{ |
return async_req_4_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_MEM_WRITE, (sysarg_t)buffer, n, (sysarg_t)start); |
} |
|
int udebug_restore_kstack(int phoneid, thash_t tid, void *buffer, size_t size) |
{ |
return async_req_4_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_RESTORE_KSTACK, (sysarg_t)buffer, size, tid); |
} |
|
/** @} |
*/ |