I\'m doing some assembly-level debugging in GDB. Is there a way to get GDB to show me the current assembly instruction in the same way that it shows the current source line?
If you want the next few instructions to display automatically while stepping through the program you can use the display command as follows -
display /3i $pc
The above will display 3 instructions whenever a breakpoint is hit or when you single step the program.
More details at the blog entry here.