Changes in uspace/app/taskdump/taskdump.c [b7fd2a0:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/taskdump.c
rb7fd2a0 rd5c1051 63 63 static symtab_t *app_symtab; 64 64 65 static errno_t connect_task(task_id_t task_id);65 static int connect_task(task_id_t task_id); 66 66 static int parse_args(int argc, char *argv[]); 67 67 static void print_syntax(void); 68 static errno_t threads_dump(void);69 static errno_t thread_dump(uintptr_t thash);70 static errno_t areas_dump(void);71 static errno_t td_read_uintptr(void *arg, uintptr_t addr, uintptr_t *value);68 static int threads_dump(void); 69 static int thread_dump(uintptr_t thash); 70 static int areas_dump(void); 71 static int td_read_uintptr(void *arg, uintptr_t addr, uintptr_t *value); 72 72 73 73 static void autoload_syms(void); … … 83 83 int main(int argc, char *argv[]) 84 84 { 85 errno_t rc;85 int rc; 86 86 87 87 printf("Task Dump Utility\n"); … … 122 122 } 123 123 124 static errno_t connect_task(task_id_t task_id)124 static int connect_task(task_id_t task_id) 125 125 { 126 126 async_sess_t *ksess = async_connect_kbox(task_id); … … 140 140 } 141 141 142 errno_t rc = udebug_begin(ksess);142 int rc = udebug_begin(ksess); 143 143 if (rc != EOK) { 144 144 printf("udebug_begin() -> %s\n", str_error_name(rc)); … … 210 210 } 211 211 212 static errno_t threads_dump(void)212 static int threads_dump(void) 213 213 { 214 214 uintptr_t *thash_buf; … … 219 219 size_t needed; 220 220 size_t i; 221 errno_t rc;221 int rc; 222 222 223 223 /* TODO: See why NULL does not work. */ … … 260 260 } 261 261 262 static errno_t areas_dump(void)262 static int areas_dump(void) 263 263 { 264 264 as_area_info_t *ainfo_buf; … … 269 269 size_t needed; 270 270 size_t i; 271 errno_t rc;271 int rc; 272 272 273 273 rc = udebug_areas_read(sess, &dummy_buf, 0, &copied, &needed); … … 320 320 } 321 321 322 errno_t td_stacktrace(uintptr_t fp, uintptr_t pc)322 int td_stacktrace(uintptr_t fp, uintptr_t pc) 323 323 { 324 324 uintptr_t nfp; 325 325 stacktrace_t st; 326 326 char *sym_pc; 327 errno_t rc;327 int rc; 328 328 329 329 st.op_arg = NULL; … … 349 349 } 350 350 351 static errno_t thread_dump(uintptr_t thash)351 static int thread_dump(uintptr_t thash) 352 352 { 353 353 istate_t istate; 354 354 uintptr_t pc, fp; 355 355 char *sym_pc; 356 errno_t rc;356 int rc; 357 357 358 358 rc = udebug_regs_read(sess, thash, &istate); … … 378 378 } 379 379 380 static errno_t td_read_uintptr(void *arg, uintptr_t addr, uintptr_t *value)380 static int td_read_uintptr(void *arg, uintptr_t addr, uintptr_t *value) 381 381 { 382 382 uintptr_t data; 383 errno_t rc;383 int rc; 384 384 385 385 (void) arg; … … 399 399 { 400 400 char *file_name; 401 errno_t rc;401 int rc; 402 402 int ret; 403 403 … … 455 455 size_t copied, needed, name_size; 456 456 char *name; 457 errno_t rc;457 int rc; 458 458 459 459 rc = udebug_name_read(sess, &dummy_buf, 0, &copied, &needed); … … 488 488 char *name; 489 489 size_t offs; 490 errno_t rc;490 int rc; 491 491 int ret; 492 492 char *str;
Note:
See TracChangeset
for help on using the changeset viewer.