CPU窗口由五个独立的区组成。每个区都以不同视角,深层次地显示运行中程序的数据。
1)
源代码+汇编区 显示的是从机器代码中反汇编出来的汇编指令。同时,在汇编指令前面,显示相应源代码。
2)
内存映射区 显示当前加载的可执行模块所访问的内存。内存默认以十六进制字节显示。
3)
堆栈区 显示程序当前的堆栈.堆栈以十六进制字长显示(32位值)
4)
寄存器区 显示CPU寄存器当前值。
5)
CPU标志区 显示CPU标志位当前值。
{============================================================}
在CPU窗口内任意位置右击,在右键菜单里获得其所在区的命令 。
如何打开CPU窗口?
在调试状态:
1)在主菜单里选择 View|Debug Windows|CPU
2)在代码编辑窗口里右击,在右键菜单里选择 Debug|View CPU ,就能打开,并使CPU窗口定位在源代码将要执行的位置。
当程序出现异常,且不能定位源代码时,CPU窗口自动弹出。
例如,当使用了DLL文件,或者Shared Object file (Linux),你的程序中却没有它们的调试信息,调试器就不能打开这些文件;又比如你把源文件放在程序并没有指明的目录里。
如何调整CPU窗口布局?
拖动各区的边界,就在窗口内能扩大或缩小区的范围,达到你合适的布局。
{==========================图示================}
源文
The CPU window consists of five separate panes. Each pane gives you a view into a specific low-level aspect of your running application.
Disassembly pane displays the assembly instructions that have been disassembled from your application's machine code. In addition, the Disassembly pane displays the original program source code above the associated assembly instructions.
Memory Dump pane displays a memory dump of any memory accessible to the currently loaded executable module. By default, memory is displayed as hexadecimal bytes.
Machine Stack pane displays the current contents of the program stack. By default, the stack is displayed as hexadecimal longs (32-bit values).
CPU Registers pane displays the current values of the CPU registers.
Flags pane displays the current values of the CPU flags.
Right-click anywhere on the CPU window to access commands specific to the contents of the current pane.
Opening the CPU window
To open the CPU window anytime during a debugging session:
Choose View|Debug Windows|CPU or right-click the Code editor and choose Debug|View CPU to open the Disassembly pane at the location of the execution point..
The CPU window opens automatically whenever program execution stops at a location for which source code is unavailable. For example, the debugger cannot open the source file if you link a DLL (Windows) or shared object file (Linux) built with debug information but do not include its source file in your project, or if you place the source file in a directory not specified in your project.
Resizing the CPU window panes