Changes in uspace/lib/c/generic/udebug.c [b7fd2a0:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/udebug.c
rb7fd2a0 r8d2dd7f2 39 39 #include <async.h> 40 40 41 errno_t udebug_begin(async_sess_t *sess)41 int udebug_begin(async_sess_t *sess) 42 42 { 43 43 async_exch_t *exch = async_exchange_begin(sess); … … 45 45 } 46 46 47 errno_t udebug_end(async_sess_t *sess)47 int udebug_end(async_sess_t *sess) 48 48 { 49 49 async_exch_t *exch = async_exchange_begin(sess); … … 51 51 } 52 52 53 errno_t udebug_set_evmask(async_sess_t *sess, udebug_evmask_t mask)53 int udebug_set_evmask(async_sess_t *sess, udebug_evmask_t mask) 54 54 { 55 55 async_exch_t *exch = async_exchange_begin(sess); … … 57 57 } 58 58 59 errno_t udebug_thread_read(async_sess_t *sess, void *buffer, size_t n,59 int udebug_thread_read(async_sess_t *sess, void *buffer, size_t n, 60 60 size_t *copied, size_t *needed) 61 61 { … … 63 63 64 64 async_exch_t *exch = async_exchange_begin(sess); 65 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_THREAD_READ,65 int rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_THREAD_READ, 66 66 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 67 67 … … 72 72 } 73 73 74 errno_t udebug_name_read(async_sess_t *sess, void *buffer, size_t n,74 int udebug_name_read(async_sess_t *sess, void *buffer, size_t n, 75 75 size_t *copied, size_t *needed) 76 76 { … … 78 78 79 79 async_exch_t *exch = async_exchange_begin(sess); 80 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_NAME_READ,80 int rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_NAME_READ, 81 81 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 82 82 … … 87 87 } 88 88 89 errno_t udebug_areas_read(async_sess_t *sess, void *buffer, size_t n,89 int udebug_areas_read(async_sess_t *sess, void *buffer, size_t n, 90 90 size_t *copied, size_t *needed) 91 91 { … … 93 93 94 94 async_exch_t *exch = async_exchange_begin(sess); 95 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_AREAS_READ,95 int rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_AREAS_READ, 96 96 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 97 97 … … 102 102 } 103 103 104 errno_t udebug_mem_read(async_sess_t *sess, void *buffer, uintptr_t addr, size_t n)104 int udebug_mem_read(async_sess_t *sess, void *buffer, uintptr_t addr, size_t n) 105 105 { 106 106 async_exch_t *exch = async_exchange_begin(sess); … … 109 109 } 110 110 111 errno_t udebug_args_read(async_sess_t *sess, thash_t tid, sysarg_t *buffer)111 int udebug_args_read(async_sess_t *sess, thash_t tid, sysarg_t *buffer) 112 112 { 113 113 async_exch_t *exch = async_exchange_begin(sess); … … 116 116 } 117 117 118 errno_t udebug_regs_read(async_sess_t *sess, thash_t tid, void *buffer)118 int udebug_regs_read(async_sess_t *sess, thash_t tid, void *buffer) 119 119 { 120 120 async_exch_t *exch = async_exchange_begin(sess); … … 123 123 } 124 124 125 errno_t udebug_go(async_sess_t *sess, thash_t tid, udebug_event_t *ev_type,125 int udebug_go(async_sess_t *sess, thash_t tid, udebug_event_t *ev_type, 126 126 sysarg_t *val0, sysarg_t *val1) 127 127 { … … 129 129 130 130 async_exch_t *exch = async_exchange_begin(sess); 131 errno_t rc = async_req_2_3(exch, IPC_M_DEBUG, UDEBUG_M_GO,131 int rc = async_req_2_3(exch, IPC_M_DEBUG, UDEBUG_M_GO, 132 132 tid, &a_ev_type, val0, val1); 133 133 … … 136 136 } 137 137 138 errno_t udebug_stop(async_sess_t *sess, thash_t tid)138 int udebug_stop(async_sess_t *sess, thash_t tid) 139 139 { 140 140 async_exch_t *exch = async_exchange_begin(sess);
Note:
See TracChangeset
for help on using the changeset viewer.