# HG changeset patch # User Michael Spacefalcon # Date 1398753945 0 # Node ID 13cc7e19ececa427ff8365ac0690feec10215029 # Parent 1e1815a6d701c539fdedbccc262b732665e3cddc tiobjd disasm -g: support -b as well diff -r 1e1815a6d701 -r 13cc7e19ecec leo-obj/tool/disasm.c --- a/leo-obj/tool/disasm.c Tue Apr 29 06:26:59 2014 +0000 +++ b/leo-obj/tool/disasm.c Tue Apr 29 06:45:45 2014 +0000 @@ -16,6 +16,7 @@ int auto_xlat_section_relocs = 1; int disasm_richsym; +extern int richsym_print_bitsize; static void find_better_symbol(sec, symp, addp) @@ -410,8 +411,11 @@ unsigned secnum; int c; - while ((c = getopt(argc, argv, "gh:s")) != EOF) + while ((c = getopt(argc, argv, "bgh:s")) != EOF) switch (c) { + case 'b': + richsym_print_bitsize++; + continue; case 'g': disasm_richsym++; continue; diff -r 1e1815a6d701 -r 13cc7e19ecec leo-obj/tool/richsym.c --- a/leo-obj/tool/richsym.c Tue Apr 29 06:26:59 2014 +0000 +++ b/leo-obj/tool/richsym.c Tue Apr 29 06:45:45 2014 +0000 @@ -269,7 +269,7 @@ } printf("%s%s %s;", prefix, base_type, s1); free(s1); - if (richsym_print_bitsize) + if (richsym_print_bitsize && (sym->type & 0x30) != 0x20) printf("\t/* %u bits */", get_u32(sym->aux + 4)); putchar('\n'); }