beautypg.com

1 source pane, 2 disassembly pane, 1 source pane 15.3.2 disassembly pane – HP gnu source-level debugger 5992-4701 User Manual

Page 245

background image

The Command pane is always present. The possible configurations of the other panes
are:

Source

Disassembly

Source/Disassembly

Disassembly/Register

Source/Register

The layout command (abbreviated la) enables you to change from one window
configuration to another.

NOTE:

You can abbreviate any command to its shortest unambiguous form.

15.3.1 Source pane

The Source pane, Figure 1, appears by default when you invoke the debugger. You can
also make it appear by issuing the command

la src

15.3.2 Disassembly pane

The Disassembly pane appears when you issue the command

la asm

The pane looks like this:

|----------------------------------------------------------------------|
|;;; print_average (my_list, first, last); |
*>|0x3524 addil L'-0x800,%dp,%r1 |
|0x3528 ldo 0x730(%r1),%r26 |
|0x352c ldi 9,%r24 |
|0x3530 ldi 0,%r25 |
|0x3534 ldil L'0x3000,%r31 |
|0x3538 be,l 0x498(%sr4,%r31) |
|0x353c copy %r31,%rp |
|;;; print_average (my_list, first, last - 3); |
|0x3540 addil L'-0x800,%dp,%r1 |
|0x3544 ldo 0x730(%r1),%r26 |
|0x3548 ldi 6,%r24 |
|0x354c ldi 0,%r25 |
|----------------------------------------------------------------------|
File: average.c Procedure: main Line: 32 pc: 0x3524
(gdb) b main
Breakpoint 1 at 0x3524: file average.c, line 32.
(gdb) r
Starting program: /home/work/wdb/a.out

Breakpoint 1, main () at average.c:32
(gdb) la asm
(gdb)

15.3 Screen Layouts

245