Changes in kernel/generic/src/udebug/udebug_ops.c [a53ed3a:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ops.c
ra53ed3a rcde999a 79 79 * 80 80 */ 81 static errno_t _thread_op_begin(thread_t *thread, bool being_go)81 static int _thread_op_begin(thread_t *thread, bool being_go) 82 82 { 83 83 mutex_lock(&TASK->udebug.lock); … … 174 174 * debugging session. 175 175 */ 176 errno_t udebug_begin(call_t *call, bool *active)176 int udebug_begin(call_t *call, bool *active) 177 177 { 178 178 LOG("Debugging task %" PRIu64, TASK->taskid); … … 219 219 * 220 220 */ 221 errno_t udebug_end(void)221 int udebug_end(void) 222 222 { 223 223 LOG("Task %" PRIu64, TASK->taskid); 224 224 225 225 mutex_lock(&TASK->udebug.lock); 226 errno_t rc = udebug_task_cleanup(TASK);226 int rc = udebug_task_cleanup(TASK); 227 227 mutex_unlock(&TASK->udebug.lock); 228 228 … … 239 239 * 240 240 */ 241 errno_t udebug_set_evmask(udebug_evmask_t mask)241 int udebug_set_evmask(udebug_evmask_t mask) 242 242 { 243 243 LOG("mask = 0x%x", mask); … … 266 266 * 267 267 */ 268 errno_t udebug_go(thread_t *thread, call_t *call)268 int udebug_go(thread_t *thread, call_t *call) 269 269 { 270 270 /* On success, this will lock thread->udebug.lock. */ 271 errno_t rc = _thread_op_begin(thread, false);271 int rc = _thread_op_begin(thread, false); 272 272 if (rc != EOK) 273 273 return rc; … … 297 297 * 298 298 */ 299 errno_t udebug_stop(thread_t *thread, call_t *call)299 int udebug_stop(thread_t *thread, call_t *call) 300 300 { 301 301 LOG("udebug_stop()"); … … 306 306 * 307 307 */ 308 errno_t rc = _thread_op_begin(thread, true);308 int rc = _thread_op_begin(thread, true); 309 309 if (rc != EOK) 310 310 return rc; … … 364 364 * 365 365 */ 366 errno_t udebug_thread_read(void **buffer, size_t buf_size, size_t *stored,366 int udebug_thread_read(void **buffer, size_t buf_size, size_t *stored, 367 367 size_t *needed) 368 368 { … … 428 428 * 429 429 */ 430 errno_t udebug_name_read(char **data, size_t *data_size)430 int udebug_name_read(char **data, size_t *data_size) 431 431 { 432 432 size_t name_size = str_size(TASK->name) + 1; … … 457 457 * 458 458 */ 459 errno_t udebug_args_read(thread_t *thread, void **buffer)459 int udebug_args_read(thread_t *thread, void **buffer) 460 460 { 461 461 /* On success, this will lock t->udebug.lock. */ 462 errno_t rc = _thread_op_begin(thread, false);462 int rc = _thread_op_begin(thread, false); 463 463 if (rc != EOK) 464 464 return rc; … … 500 500 * 501 501 */ 502 errno_t udebug_regs_read(thread_t *thread, void **buffer)502 int udebug_regs_read(thread_t *thread, void **buffer) 503 503 { 504 504 /* On success, this will lock t->udebug.lock */ 505 errno_t rc = _thread_op_begin(thread, false);505 int rc = _thread_op_begin(thread, false); 506 506 if (rc != EOK) 507 507 return rc; … … 536 536 * 537 537 */ 538 errno_t udebug_mem_read(sysarg_t uspace_addr, size_t n, void **buffer)538 int udebug_mem_read(sysarg_t uspace_addr, size_t n, void **buffer) 539 539 { 540 540 /* Verify task state */ … … 553 553 * 554 554 */ 555 errno_t rc = copy_from_uspace(data_buffer, (void *) uspace_addr, n);556 mutex_unlock(&TASK->udebug.lock); 557 558 if (rc != EOK)555 int rc = copy_from_uspace(data_buffer, (void *) uspace_addr, n); 556 mutex_unlock(&TASK->udebug.lock); 557 558 if (rc != 0) 559 559 return rc; 560 560
Note:
See TracChangeset
for help on using the changeset viewer.