FreeCalypso > hg > freecalypso-reveng
diff leo-obj/tool/symtab.c @ 142:ed533d469838
tiobjd: show symtab aux entries
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 28 Apr 2014 04:51:35 +0000 |
parents | 87b82398a08b |
children |
line wrap: on
line diff
--- a/leo-obj/tool/symtab.c Sun Apr 27 18:07:55 2014 +0000 +++ b/leo-obj/tool/symtab.c Mon Apr 28 04:51:35 2014 +0000 @@ -59,9 +59,9 @@ return(numbuf); } -dump_symtab() +dump_symtab(show_aux) { - unsigned n; + unsigned n, i; struct internal_syment *sym; char *sec, secstr[8]; char *class, classbuf[8]; @@ -82,6 +82,11 @@ printf("%-5u %-30s %04X %-7s %-12s %08X%s\n", n, sym->name, sym->type, class, sec, sym->value, sym->aux ? " Aux" : ""); + if (sym->aux && show_aux) { + for (i = 0; i < 18; i++) + printf("%c%02X", i ? ' ' : '\t', sym->aux[i]); + putchar('\n'); + } } return(0); }