Skip to content

Commit

Permalink
Line up the ruler with the memory dump output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Sep 7, 2021
1 parent d8355f9 commit 4999ee3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,8 +977,12 @@ static void debugger_ruler(const char *iptr)
count = strtoul(iptr, &end, 0);
}
}
while (count--)
debug_outf("%02X ", start++);
if (count) {
debug_out(" ", 6);
while (count--)
debug_outf(" %02X", start++);
debug_out("\n", 1);
}
}

void debugger_do(cpu_debug_t *cpu, uint32_t addr)
Expand Down

0 comments on commit 4999ee3

Please sign in to comment.