Hacker News new | past | comments | ask | show | jobs | submit login

GDB is an absolute nightmare to use with Asm, it's almost like it was designed to discourage it. Look up the absolutely perplexing behaviour of the "disassemble" command[1] for one example --- the first time I encountered it, I exclaimed "WTF!?" out loud.

WinDbg, and DOS's DEBUG that came before it, feel far more natural with such (and the former can also debug at source-level.)

[1] "No function contains specified address." -- when there is absolutely no requirement for anything to resemble a function in order to be capable of being disassembled.




Hit a breakpoint? My fingers are already typing x/10i. LLDB does stupid things otherwise as well (I think it will automatically "move your cursor down"?) so this is just the command I always reach for.


Yeah by default gdb sucks a bit for assembly, fortunately it's easily scriptable so I have a file with a bunch of functions to make it behave a bit more reasonably.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: