Friday, June 29, 2007

Printing code at a PC value in gdb

x /i $pc

Then you can

si

to continue stepping, along with a display of the instruction corresponding to the PC