Switching to assembly in gdb

后端 未结 5 797
予麋鹿
予麋鹿 2020-12-08 06:35

Is there is any way to switch to assembly when debugging a C or C++ program in gdb ? (Given that all source files and their corresponding assembly files are available)

5条回答
  •  长情又很酷
    2020-12-08 07:18

    In the new gdb version 7.0, the disassemble command can take a new argument /m which makes it emit mixed source and disassembly.

提交回复
热议问题