Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 196a1439 in mainline


Ignore:
Timestamp:
2010-01-27T20:03:56Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
f0bdfb7
Parents:
3698e44
Message:

Slightly improve taskdump output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskdump/taskdump.c

    r3698e44 r196a1439  
    327327        fp = istate_get_fp(&istate);
    328328
    329         printf("Thread 0x%lx crashed at PC 0x%lx. FP 0x%lx\n", thash, pc, fp);
     329        sym_pc = fmt_sym_address(pc);
     330        printf("Thread 0x%lx crashed at %s. FP = 0x%lx\n", thash, sym_pc, fp);
     331        free(sym_pc);
    330332
    331333        st.op_arg = NULL;
     
    334336        while (stacktrace_fp_valid(&st, fp)) {
    335337                sym_pc = fmt_sym_address(pc);
    336                 printf("  %p: %s()\n", fp, sym_pc);
     338                printf("  %p: %s\n", fp, sym_pc);
    337339                free(sym_pc);
    338340
     
    390392
    391393        while (pos < size) {
    392                 printf("%08x:", addr + pos);
     394                printf("%08lx:", addr + pos);
    393395                for (i = 0; i < LINE_BYTES; ++i) {
    394396                        if (i % 4 == 0) putchar(' ');
     
    457459        }
    458460
    459         rc = symtab_load("/srv/xyz", &app_symtab);
     461        rc = symtab_load(file_name, &app_symtab);
    460462        if (rc == EOK) {
    461463                printf("Loaded symbol table from %s\n", file_name);
     
    516518
    517519        if (rc == EOK) {
    518                 rc = asprintf(&str, "(%p) %s+%p", addr, name, offs);
     520                rc = asprintf(&str, "%p (%s+%p)", addr, name, offs);
    519521        } else {
    520522                rc = asprintf(&str, "%p", addr);
Note: See TracChangeset for help on using the changeset viewer.