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

<main+8> addil L'-0x800,%dp,%r1

 

0x3528

<main+12>

ldo 0x730(%r1),%r26

0x352c

<main+16>

ldi 9,%r24

 

0x3530

<main+20>

ldi 0,%r25

 

0x3534

<main+24>

ldil L'0x3000,%r31

0x3538

<main+28>

be,l 0x498(%sr4,%r31)

0x353c

<main+32>

copy %r31,%rp

 

;;; print_average

(my_list, first, last - 3);

0x3540

<main+36>

addil L'-0x800,%dp,%r1

0x3544

<main+40>

ldo 0x730(%r1),%r26

0x3548

<main+44>

ldi 6,%r24

 

0x354c

<main+48>

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

Page 245
Image 245
HP gnu source-level debugger 5992-4701 manual Source pane, Disassembly pane appears when you issue the command