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?
From within gdb press Ctrl x 2 and the screen will split into 3 parts.
Ctrl
x
2
First part will show you the normal code in high level language.
Second will show you the assembly equivalent and corresponding instruction Pointer.
instruction Pointer
Third will present you the normal gdb prompt to enter commands.
gdb