Changeset 5bda2f96 in mainline for uspace/app/taskdump/symtab.c
- Timestamp:
- 2010-02-09T21:03:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 83b4cf53
- Parents:
- 696979ce (diff), a60b2d7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/symtab.c
r696979ce r5bda2f96 206 206 size_t i; 207 207 char *sname; 208 unsigned stype; 208 209 209 210 for (i = 0; i < st->sym_size / sizeof(elf_symbol_t); ++i) { 210 211 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) 211 216 continue; 212 217 … … 240 245 uintptr_t saddr, best_addr; 241 246 char *sname, *best_name; 247 unsigned stype; 242 248 243 249 best_name = NULL; … … 248 254 continue; 249 255 256 stype = ELF_ST_TYPE(st->sym[i].st_info); 257 if (stype != STT_OBJECT && stype != STT_FUNC && 258 stype != STT_NOTYPE) { 259 continue; 260 } 261 250 262 saddr = st->sym[i].st_value; 251 263 sname = st->strtab + st->sym[i].st_name; 264 265 /* An ugly hack to filter out some special ARM symbols. */ 266 if (sname[0] == '$') 267 continue; 252 268 253 269 if (best_name == NULL || (saddr <= addr && saddr > best_addr)) {
Note:
See TracChangeset
for help on using the changeset viewer.