Changes in kernel/generic/src/debug/symtab.c [0dee005:98000fb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/debug/symtab.c
r0dee005 r98000fb 46 46 /** Get name of a symbol that seems most likely to correspond to address. 47 47 * 48 * @param addr Address. 49 * @param name Place to store pointer to the symbol name. 50 * @param offset Place to store offset from the symbol address. 48 * @param addr Address. 49 * @param name Place to store pointer to the symbol name. 51 50 * 52 51 * @return Zero on success or negative error code, ENOENT if not found, … … 54 53 * 55 54 */ 56 int symtab_name_lookup(u intptr_t addr, char **name, uintptr_t *offset)55 int symtab_name_lookup(unative_t addr, char **name) 57 56 { 58 57 #ifdef CONFIG_SYMTAB … … 66 65 if (addr >= uint64_t_le2host(symbol_table[i - 1].address_le)) { 67 66 *name = symbol_table[i - 1].symbol_name; 68 if (offset)69 *offset = addr -70 uint64_t_le2host(symbol_table[i - 1].address_le);71 67 return EOK; 72 68 } … … 92 88 * 93 89 */ 94 char *symtab_fmt_name_lookup(u intptr_t addr)90 char *symtab_fmt_name_lookup(unative_t addr) 95 91 { 96 92 char *name; 97 int rc = symtab_name_lookup(addr, &name , NULL);93 int rc = symtab_name_lookup(addr, &name); 98 94 99 95 switch (rc) {
Note:
See TracChangeset
for help on using the changeset viewer.