tsoding / bm

Simple compiler ecosystem
MIT License
166 stars 16 forks source link

bdb : Print a better memory dump #472

Closed herrhotzenplotz closed 3 years ago

herrhotzenplotz commented 3 years ago

Makes it a bit more pleasing to the eye. And it improves the UX.

[nico@hades ~/src/bm/bdb]$ bin/bdb ../pi.bm
BDB - The birtual machine debugger.
Type 'h' and enter for a quick help
TODO(<redacted unrelated issue>): BDB does not load symbols from a symbol table
(bdb) b 104
INFO : Breakpoint set at 104
(bdb) r
Hit breakpoint at 104 label ''
(bdb) x 0 128
00000000: 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(bdb) q
Bye
[nico@hades ~/src/bm/bdb]$
rexim commented 3 years ago

@herrhotzenplotz noice! Thank you so much for the contribution! :+1: