3 ms·
I also like "disp /3i $pc", which tells gdb to disassemble the next three instructions whenever it stops (including after stepi). Though I'm sure you can confi
by pm215 2y ago
I also like "disp /3i $pc", which tells gdb to disassemble the next three instructions whenever it stops (including after stepi). Though I'm sure you can configure it to give you more sophisticated disassembly display and context, especially with the tui interface, this is usually "good enough" for me when I run into something I want to step through at the assembly level in the middle of debugging a program that's primarily C.
- purplesyringa 2y agoOn a related note, https://hugsy.github.io/gef/ https://hugsy.github.io/gef/ provides a TUI interface like that.