HP gnu source-level debugger 5992-4701 manual Limitations

Models: gnu source-level debugger 5992-4701

1 369
Download 369 pages 58.54 Kb
Page 152
Image 152

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 modify breakpoints on a specific instance of an inline function. It also enables the inline debugging 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.

The inline breakpoint features can degrade performance of the application that is being debugged. You can explicitly disable the breakpoint features when the features are not required and continue to use other inline debugging features, such as step and next.

14.8.2.1Debugging Inline Functions in Integrity Systems

To debug inline functions in Integrity systems, complete the following steps:

1.The application must be compiled with the -g option for inline debugging. No additional options are required. For example:

/opt/aCC/bin/aCC -g test.c

2.Inline debugging without the breakpoint feature is enabled by default. You can modify the inline debugging settings by toggling the options for the set inline- debug command.

To enable inline debugging without inline breakpoint support, enter either of the following commands:

(gdb) set inline-debug on or

$ gdb --inline = on

To set and modify breakpoints collectively on all instances of inline functions and enable inline debugging, enter either of the following commands:

152 HP-UX Configuration-Specific Information

Page 152
Image 152
HP gnu source-level debugger 5992-4701 manual Limitations, Debugging Inline Functions in Integrity Systems