Debugging with GDB (February 2008)

Table Of Contents
126 Debugging with GDB
14.8.2 Inline Debugging in Integrity Systems
In Integrity systems, applications that are compiled with -g option support inline debug-
ging by default. Compiler versions A.06.02 and later support the inline debugging feature
in Integrity systems and require no additional options.
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 com-
mands:
(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.
The set inline-debug inline_bp_all command enables you to set and modify break-
points on all instances of a particular inline function. It also enables the inline debugging
feature. A single instance of the specified inline function is displayed as a representative in-
stance for all the instances of the specified inline function. This creates a single-breakpoint
illusion for multiple instances of the inline function. You can set and modify breakpoints
on all the instances of the inline functions by setting and modifying breakpoints on the
displayed instance of the inline function. You must enter this command before attaching
the debugger to the application.
The set inline-debug inline_bp_individual command enables you to set and mod-
ify breakpoints on a specific instance of an inline function. It also enables the inline debug-
ging feature. All instances of the inline function are displayed separately with individual
breakpoint occurrences. You can set or delete individual breakpoints on a specific instance
of an inline function without modifying the breakpoints on other instances of the inline
function. You must enter this command before attaching the debugger to the application.
Limitations:
The inline breakpoint features are not available for programs that are com-
piled with +O2 optimization level and above.