Show current assembly instruction in GDB

前端 未结 8 1601
一生所求
一生所求 2020-11-30 15:52

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?

8条回答
  •  有刺的猬
    2020-11-30 16:53

    There is a simple solution that consists in using stepi, which in turns moves forward by 1 asm instruction and shows the surrounding asm code.

提交回复
热议问题