Changes in uspace/lib/c/generic/udebug.c [0800b26:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/udebug.c
r0800b26 ra35b458 42 42 { 43 43 async_exch_t *exch = async_exchange_begin(sess); 44 errno_t rc = async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_BEGIN); 45 async_exchange_end(exch); 46 47 return rc; 44 return async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_BEGIN); 48 45 } 49 46 … … 51 48 { 52 49 async_exch_t *exch = async_exchange_begin(sess); 53 errno_t rc = async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_END); 54 async_exchange_end(exch); 55 56 return rc; 50 return async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_END); 57 51 } 58 52 … … 60 54 { 61 55 async_exch_t *exch = async_exchange_begin(sess); 62 errno_t rc = async_req_2_0(exch, IPC_M_DEBUG, UDEBUG_M_SET_EVMASK, mask); 63 async_exchange_end(exch); 64 65 return rc; 56 return async_req_2_0(exch, IPC_M_DEBUG, UDEBUG_M_SET_EVMASK, mask); 66 57 } 67 58 … … 74 65 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_THREAD_READ, 75 66 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 76 async_exchange_end(exch);77 67 78 68 *copied = (size_t) a_copied; … … 90 80 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_NAME_READ, 91 81 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 92 async_exchange_end(exch);93 82 94 83 *copied = (size_t) a_copied; … … 106 95 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_AREAS_READ, 107 96 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 108 async_exchange_end(exch);109 97 110 98 *copied = (size_t) a_copied; … … 117 105 { 118 106 async_exch_t *exch = async_exchange_begin(sess); 119 errno_t rc =async_req_4_0(exch, IPC_M_DEBUG, UDEBUG_M_MEM_READ,107 return async_req_4_0(exch, IPC_M_DEBUG, UDEBUG_M_MEM_READ, 120 108 (sysarg_t) buffer, addr, n); 121 async_exchange_end(exch);122 123 return rc;124 109 } 125 110 … … 127 112 { 128 113 async_exch_t *exch = async_exchange_begin(sess); 129 errno_t rc =async_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_ARGS_READ,114 return async_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_ARGS_READ, 130 115 tid, (sysarg_t) buffer); 131 async_exchange_end(exch);132 133 return rc;134 116 } 135 117 … … 137 119 { 138 120 async_exch_t *exch = async_exchange_begin(sess); 139 errno_t rc =async_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_REGS_READ,121 return async_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_REGS_READ, 140 122 tid, (sysarg_t) buffer); 141 async_exchange_end(exch);142 143 return rc;144 123 } 145 124 … … 152 131 errno_t rc = async_req_2_3(exch, IPC_M_DEBUG, UDEBUG_M_GO, 153 132 tid, &a_ev_type, val0, val1); 154 async_exchange_end(exch);155 133 156 134 *ev_type = a_ev_type; … … 161 139 { 162 140 async_exch_t *exch = async_exchange_begin(sess); 163 errno_t rc = async_req_2_0(exch, IPC_M_DEBUG, UDEBUG_M_STOP, tid); 164 async_exchange_end(exch); 165 166 return rc; 141 return async_req_2_0(exch, IPC_M_DEBUG, UDEBUG_M_STOP, tid); 167 142 } 168 143
Note:
See TracChangeset
for help on using the changeset viewer.