Debugging with GDB (February 2008)

Table Of Contents
168 Debugging with GDB
modules. The first instruction in each block associated with the executed branch is
displayed.
This feature is supported only for compiler versions A.06.15 and later.
HP WDB supports the following commands to print the execution path entries in the
current frame, or in the current thread:
info exec-path [start_index] [end_index] (aliased to info ep)
Lists all the local execution path entries in the current frame. The [start_index]
and [end_index] indicate the range of table indexes (execution path entries) that
must be displayed.
If [end_index] is not specified, the debugger displays the complete table of exe-
cution path entries, starting from [start_index].
If [start_index] and [end_index] are not specified, the complete table of exe-
cution path entries is displayed.
For example:
(gdb) i ep 4 10
info exec-path summary
Prints the summary information about all the local execution path entries in the
current frame. This command displays the total number of branches for the frame,
the number of branches executed in this frame in the last iteration, and the last
executed branch number.
info global-exec-path [start_index] [end_index](aliased to info gep)
Lists all the global execution path entries for the current thread.
The [start_index] and [end_index] indicate the range of table indexes (execu-
tion path entries) that must be displayed.
If [end_index] is not specified, the debugger displays the complete table of exe-
cution path entries, starting from [start_index].
If [start_index] and [end_index] are not specified, the complete table of exe-
cution path entries is displayed.
info global-exec-path summary
Prints the summary information about all the global execution path entries in the
current frame. This command displays the total number of global execution path
entries that can be stored, the number of global execution path entries in this
frame in the last iteration, and the last executed global execution path number.
exec-path [up][down][path_index] (aliased to ep)
Enables you to select, print, and navigate through the execution path entries.
When no arguments are specified, it prints the selected execution path entry. You
can specify the argument as an execution path index from the info exec-path or
the info global-exec-path commands. Alternately, you can use the up or down
command to navigate through the execution path entries.