Download PGI Tools Guide

Transcript
1.4.4.2 Disassembler Subwindow
Figure 1-8 shows the Disassembler subwindow. Use this subwindow to disassemble a routine (or
a text address) specified in the Request> input field. PGDBG will default to the current routine if
you specify nothing in the Request> input field. After a request is made to the Disassembler, the
GUI will ask if you want to “Display Disassembly in the Source window”. Choosing “yes” causes
the Disassembler window to disappear and the disassembly to appear in the source panel. Viewing
the disassembly in the source panel, allows setting breakpoints at the machine instruction level.
Choosing “no” will dump the disassembly in the Disassembler subwindow as shown in Figure 18.
Specifying a text address (rather than a routine name) in the Request> field will cause PGDBG to
disassemble address locations until it runs out of memory or hits an invalid op code. This may
cause very large machine language listings. For that case, the subwindow provides a Stop button.
Press the Stop button to interrupt long listings that may occur with the Disassembler. Specify a
count after the text address to limit the number of instructions dumped to the subwindow. For
example, entering 0xabcdef, 16 tells PGDBG to dump up to 16 locations following address
0xabcdef. The Request> field accepts the same arguments as the disasm command described in
Section 1.9.1.4 Program Locations.
The PGDBG Debugger
31