Changeset 0800b26 in mainline
- Timestamp:
- 2020-05-06T10:30:30Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7a34f87d, 807be7e
- Parents:
- ccbd2e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/udebug.c
rccbd2e1 r0800b26 42 42 { 43 43 async_exch_t *exch = async_exchange_begin(sess); 44 return async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_BEGIN); 44 errno_t rc = async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_BEGIN); 45 async_exchange_end(exch); 46 47 return rc; 45 48 } 46 49 … … 48 51 { 49 52 async_exch_t *exch = async_exchange_begin(sess); 50 return async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_END); 53 errno_t rc = async_req_1_0(exch, IPC_M_DEBUG, UDEBUG_M_END); 54 async_exchange_end(exch); 55 56 return rc; 51 57 } 52 58 … … 54 60 { 55 61 async_exch_t *exch = async_exchange_begin(sess); 56 return async_req_2_0(exch, IPC_M_DEBUG, UDEBUG_M_SET_EVMASK, mask); 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; 57 66 } 58 67 … … 65 74 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_THREAD_READ, 66 75 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 76 async_exchange_end(exch); 67 77 68 78 *copied = (size_t) a_copied; … … 80 90 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_NAME_READ, 81 91 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 92 async_exchange_end(exch); 82 93 83 94 *copied = (size_t) a_copied; … … 95 106 errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_AREAS_READ, 96 107 (sysarg_t) buffer, n, NULL, &a_copied, &a_needed); 108 async_exchange_end(exch); 97 109 98 110 *copied = (size_t) a_copied; … … 105 117 { 106 118 async_exch_t *exch = async_exchange_begin(sess); 107 returnasync_req_4_0(exch, IPC_M_DEBUG, UDEBUG_M_MEM_READ,119 errno_t rc = async_req_4_0(exch, IPC_M_DEBUG, UDEBUG_M_MEM_READ, 108 120 (sysarg_t) buffer, addr, n); 121 async_exchange_end(exch); 122 123 return rc; 109 124 } 110 125 … … 112 127 { 113 128 async_exch_t *exch = async_exchange_begin(sess); 114 returnasync_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_ARGS_READ,129 errno_t rc = async_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_ARGS_READ, 115 130 tid, (sysarg_t) buffer); 131 async_exchange_end(exch); 132 133 return rc; 116 134 } 117 135 … … 119 137 { 120 138 async_exch_t *exch = async_exchange_begin(sess); 121 returnasync_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_REGS_READ,139 errno_t rc = async_req_3_0(exch, IPC_M_DEBUG, UDEBUG_M_REGS_READ, 122 140 tid, (sysarg_t) buffer); 141 async_exchange_end(exch); 142 143 return rc; 123 144 } 124 145 … … 131 152 errno_t rc = async_req_2_3(exch, IPC_M_DEBUG, UDEBUG_M_GO, 132 153 tid, &a_ev_type, val0, val1); 154 async_exchange_end(exch); 133 155 134 156 *ev_type = a_ev_type; … … 139 161 { 140 162 async_exch_t *exch = async_exchange_begin(sess); 141 return async_req_2_0(exch, IPC_M_DEBUG, UDEBUG_M_STOP, tid); 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; 142 167 } 143 168
Note:
See TracChangeset
for help on using the changeset viewer.