Debugging with GDB (February 2008)

Table Of Contents
Chapter 15: The HP-UX Terminal User Interface 205
:.........................................................................:
: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 :
:.........................................................................:
*>|32 print_average (my_list, first, last); |
|33 print_average (my_list, first, last - 3); |
|34 } |
|35 |
|36 |
|37 |
|----------------------------------------------------------------------|
File: average.c Procedure: main Line: 32 pc: 0x3524
Breakpoint 1, main () at average.c:32
(gdb) la asm
(gdb) la split
(gdb) la regs
(gdb) la src
(gdb) la regs
(gdb)
15.4 Cycling through the panes
Use the commands
la next
and
la prev
to move from one pane to another without specifying a window name. If you specify la
next repeatedly, the order the debugger uses is
Source (src)
Disassembly (asm)
Source/Disassembly (split)
Source/Register
Disassembly/Register
If you invoked the gdb command with the -xdb option as well as the -tui option, you
can also use the following commands:
td Toggle between Source and Disassembly/Register panes.
ts Toggle split-screen mode.