# HG changeset patch # User Michael Spacefalcon # Date 1396856191 0 # Node ID acdf75463e30ccfdf1b7235db602a1b281c72bb3 # Parent 8754c410c10dc8bc980a643b303d57189fc58249 tiobjd disasm: smarter logic for when the line should be printed diff -r 8754c410c10d -r acdf75463e30 leo-obj/tool/disasm.c --- a/leo-obj/tool/disasm.c Mon Apr 07 05:40:49 2014 +0000 +++ b/leo-obj/tool/disasm.c Mon Apr 07 07:36:31 2014 +0000 @@ -328,8 +328,6 @@ if (hint && pos >= hint->endpos) hint = hint->next; } - if (symnum == sec->nsymbols) - return; while (symnum < sec->nsymbols) { sym = sec->sorted_symbols[symnum]; if (sym->value != sec->size) { @@ -339,7 +337,8 @@ handle_symbol(sym, &state, &linebrk); symnum++; } - printf("%8x:\t\n", sec->size); + if (linebrk) + printf("%8x:\t\n", sec->size); } void