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

Changeset 3698e44 in mainline for uspace/lib/libc/generic/udebug.c


Ignore:
Timestamp:
2010-01-26T22:46:29Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
196a1439, 2314381
Parents:
e515b21a
Message:

Add ability to determine task name and load symbol table from the binary executable. Resolve symbol names in stack traces when dumping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/udebug.c

    re515b21a r3698e44  
    6969}
    7070
     71int udebug_name_read(int phoneid, void *buffer, size_t n,
     72        size_t *copied, size_t *needed)
     73{
     74        ipcarg_t a_copied, a_needed;
     75        int rc;
     76
     77        rc = async_req_3_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_NAME_READ,
     78                (sysarg_t)buffer, n, NULL, &a_copied, &a_needed);
     79
     80        *copied = (size_t)a_copied;
     81        *needed = (size_t)a_needed;
     82
     83        return rc;
     84}
     85
    7186int udebug_areas_read(int phoneid, void *buffer, size_t n,
    7287        size_t *copied, size_t *needed)
     
    8398        return rc;
    8499}
    85 
    86100
    87101int udebug_mem_read(int phoneid, void *buffer, uintptr_t addr, size_t n)
Note: See TracChangeset for help on using the changeset viewer.