In This Book

Assembly Level Debugging

Although HP/DDE is intended as a high-level (source language) debugging tool, it also supports low-level (assem bly language) debugging by using the machine code generated by the compiler.

You can examine the machine code produced by the compiler for your program, and step your program at the assembly code level. You can set breakpoints on individual machine instructions, and you can also monitor virtual address ranges.

Assembly level debugging is particularly useful for debugging optimized code. See \Debugging Optimized Code".

Using the Assembly Instructions Dialog Box

The Show:Assembly Instructions menu choice brings up the Assembly Instructions dialog box. (See Figure 8-3.) This dialog box contains a scrollable view of the assembly language code for the current procedure of your program. The format of the code depends on the system on which you are running. The window normally shows the following:

Source line number

Memory address

Disassem bly listing of the actual machine code To set a breakpoint at the assembly level:

1.Select the address (in the Assembly Instructions dialog box). This copies the address into the ( ): Input Box.

2.Choose Break:Set At Hex Address ( ).

You can also click the left mouse button in the Annotation Margin of the

8

Assembly Instructions dialog bo x, or press the righ t mouse button on the

 

desired assem bly line, to set or clear breakpoin ts.

 

Debugging in Special Situations 8-13