Changes in / [19f24fd:d42976c] in mainline
- Location:
- uspace/app/taskdump
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/include/elf.h
r19f24fd rd42976c 148 148 #define SHF_MASKPROC 0xf0000000 149 149 150 /** Macros for decomposing elf_symbol.st_info into binging and type */151 #define ELF_ST_BIND(i) ((i) >> 4)152 #define ELF_ST_TYPE(i) ((i) & 0x0f)153 #define ELF_ST_INFO(b, t) (((b) << 4) + ((t) & 0x0f))154 155 150 /** 156 151 * Symbol binding -
uspace/app/taskdump/symtab.c
r19f24fd rd42976c 206 206 size_t i; 207 207 char *sname; 208 unsigned stype;209 208 210 209 for (i = 0; i < st->sym_size / sizeof(elf_symbol_t); ++i) { 211 210 if (st->sym[i].st_name == 0) 212 continue;213 214 stype = ELF_ST_TYPE(st->sym[i].st_info);215 if (stype != STT_OBJECT && stype != STT_FUNC)216 211 continue; 217 212 … … 245 240 uintptr_t saddr, best_addr; 246 241 char *sname, *best_name; 247 unsigned stype;248 242 249 243 best_name = NULL; … … 252 246 for (i = 0; i < st->sym_size / sizeof(elf_symbol_t); ++i) { 253 247 if (st->sym[i].st_name == 0) 254 continue;255 256 stype = ELF_ST_TYPE(st->sym[i].st_info);257 if (stype != STT_OBJECT && stype != STT_FUNC)258 248 continue; 259 249
Note:
See TracChangeset
for help on using the changeset viewer.