Remix.run Logo
▲ userbinator 2 hours ago

Using GDB to debug Asm is... certainly a choice.

▲gopalv an hour ago | parent | next [-]

Gdb is an excellent debugger for assembly, even when the original code was written in C

I would automatically type

(gdb) x/4i $pc

when opening a coredump out of habit.

But using nasm, then looking as gas style assembly in the debugger might be a bit more jarring.

▲nekiwo 2 hours ago | parent | prev | next [-]

What's the better choice?

▲hn_submit an hour ago | parent [-]

Setting a breakpoint in the debug registers DB0 through DB7 and dumping registers and memory in your own debug exception handler.

▲ 2 hours ago | parent | prev [-]
[deleted]