HP WDB GUI 5.7 Reference Manual (September 2007)
Debugging with WDB GUI
Viewing the Execution Path Entries
Chapter 386
Viewing the Execution Path Entries
HP WDB GUI 5.7 and later versions of the debugger enable you to view the execution path
entries for programs running on Integrity systems. This feature enables the display of the
execution path taken across branched modules.
Compiler Dependencies
This feature is supported only for compiler versions A.06.15 and later.
You must compile the program with +pathtrace compiler option to view the execution path
entries.
The +pathtrace compiler option provides a mechanism to record program execution control
flow into global path tables, local path tables, or both. This saved information enables the
debugger to display the execution path entries for the program. To print the execution path
entries in the current thread or frame for programs running on Integrity systems, you can set
the required sub-options for the +pathtrace compiler option.
The following sub-options are available for the +pathtrace compiler option:
+pathtrace= [<global|global_fixed_size>:<local>]
For more information on the +pathtrace compiler option, see the aCC(1) manpages.
Displaying the Execution Path Entries
To view the execution path entries, complete the following steps:
1. Compile the program with the +pathtrace option, as follows:
cc -g +pathtrace <
executable>
2. Load the program to HP WDB GUI
3. Set the required breakpoints and run the program
4. When program execution stops, select View->Execution Path
The execution path entries are displayed in the View Branch Execution Path window. The
execution path entries are displayed upto the current instant of program execution.
The View Branch Execution Path window displays the following information:
• Local/Current Execution Path Table (LEPT)
This table displays all the branch path entries within the current function.