beautypg.com

3 source/disassembly pane, 4 disassembly/register pane – HP gnu source-level debugger 5992-4701 User Manual

Page 246

background image

15.3.3 Source/Disassembly pane

The Source/Disassembly pane appears when you issue the command:

la split

You can also reach this pane from the Source pane with the XDB command:

td

The window looks like this:

:......................................................................:
*>:32 print_average (my_list, first, last); :
:33 print_average (my_list, first, last - 3); :
:34 } :
:35 :
:36 :
:37 :
:......................................................................:
|;;; 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 |
|----------------------------------------------------------------------|
File: average.c Procedure: main Line: 32 pc: 0x3524
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) la split
(gdb)

15.3.4 Disassembly/Register pane

The Disassembly/Register pane appears when you issue the command

la regs

when the current pane is the Source/Disassembly pane. By default, the debugger
displays the general registers.

The window looks like this:

:.........................................................................:
:flags 29000041 r1 51a800 rp 7f6ce597 :
:r3 7f7f0000 r4 1 r5 7f7f06f4 :
:r6 7f7f06fc r7 7f7f0800 r8 7f7f0800 :
:r9 40006b10 r10 0 r11 40004b78 :
:r12 1 r13 0 r14 0 :
:r15 0 r16 40003fb8 r17 4 :
:.........................................................................:

246

The HP-UX Terminal User Interface