Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)

Inline Debugging in HP 9000 Systems
To debug inline functions in HP 9000 systems, complete the following steps:
1. Compile the source files with the +inline_debug option.
For example:
/opt/aCC/bin/aCC -g +inline_debug test.c
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>
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.
Inline Debugging in Integrity Systems
In Integrity systems, applications that are compiled with -g option support inline debugging by
default. Compiler versions A.06.02 and later support the inline debugging feature in Integrity
systems and require no additional options.
HP WDB 5.6 and later versions enable you to set and modify breakpoints in inline functions for
programs compiled with optimization level less than +O2. The breakpoint features for inline
functions are introduced as additional options in the set inline-debug command.
You can toggle the options for inline debugging by entering either of the following commands:
(gdb) set inline-debug <option>
or
$ gdb --inline= <option>
The following options available for the set inline-debug command:
on
off
inline_bp_all
inline_bp_individual
The set inline-debug on command enables the inline debugging feature without the inline
breakpoints options in Integrity systems. This command is enabled by default.
The set inline-debug off command disables the inline debugging feature. You can disable
inline debugging by entering this command before attaching the debugger to the application.
Inline Support 107