Show current assembly instruction in GDB

前端 未结 8 1647
一生所求
一生所求 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:50

    The command

    x/i $pc
    

    can be set to run all the time using the usual configuration mechanism.

提交回复
热议问题