logoalt Hacker News

userbinator • today at 4:07 AM • 3 replies • view on HN

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


Replies

gopalv • today at 5:08 AM

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 • today at 4:16 AM

What's the better choice?

➕ show 1 reply