Debugging with GDB (February 2008)

Table Of Contents
Chapter 15: The HP-UX Terminal User Interface 203
:......................................................................:
*>: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 <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 |
|----------------------------------------------------------------------|
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:
Figure 5