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? The default output after every command looks like this:
0x0001433f 990 Foo::bar(p);
This gives me the address of the current instruction, but I have to keep referring back to the output of disassemble
in order to see which instruction I'm currently executing.
Best Answer
You can switch to assembly layout in GDB:
See here for more information. The current assembly instruction will be shown in assembler window.