Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
option (introduced in the A.03.65 and later versions of the HP aC++ compiler). In Integrity systems,
the applications that are compiled with -g option support inline debugging by default and require
no additional options. Compiler versions A.06.02 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:
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.
14.8.2 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
14.8 Inline Support 115