查看反汇编代码

反汇编程序将机器语言翻译成汇编语言,以便于人类阅读。

Disassembler 视图显示当前函数的反汇编代码。它对于检查单条指令的低级命令非常有用,例如Step IntoStep Over

反汇编器视图

默认情况下,GDB 显示 AT&T 风格的反汇编。要切换到英特尔风格,请访问首选项>Debugger >GDB >Use Intel style disassembly

打开Disassembler 视图:

  • 调试器运行时,转到Debug >Operate by Instruction
  • 选择调试器工具栏上的按指令操作 (Operate by Instruction)。
  • 寄存器视图中,选择一个值,然后在上下文菜单中选择Open Disassembler at <value>

启动反汇编器

要从Registers 视图启动反汇编器,请选择Open Disassembler 并设置反汇编器地址:

选择起始地址对话框

另请参阅 "如何:调试"、"调试"、"调试器"和 "调试器"。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.