Debugging with GDB (September 2007)
Chapter 14: HP-UX Configuration-Specific Information 125
and later support the inline debugging feature in Integrity systems.
14.8.1 Inline Debugging in HP 9000 Systems
To debug inline functions in HP 9000 systems, complete the following steps:
Step 1:
Compile the source files with the +inline_debug option.
For example:
/opt/aCC/bin/aCC -g +inline_debug test.c
Step 2:
Inline debugging is enabled by default. To explicitly enable or disable inline de-
bugging, complete either of the following steps before loading the application to the debugger:
$ gdb --inline=<on/off> a.out
or
(gdb) set inline-debug <on/off>
Step 3:
You can use the following commands for debugging inline functions in HP 9000 systems:
step
next
list
backtrace
frame <n>
info locals
info args
The following commands are not available for debugging inline functions in HP 9000 systems:
breakpoint
info frame
disassembly
Note:
Inline debugging commands are not available for inlined template functions
and inlined functions which are defined after the call site.