print subcommand for dbx: Print the value of an expression
Format
print [expression,… ] [(parameters)]
Description
The print subcommand prints the value of a list of expressions, specified by the expression arguments.
Usage notes
The print subcommand can be run only while the dbx debug program is running.
Examples
- To display the value of x and the value of y shifted
left 2 bits, enter:
print x, y << 2
- To display a specific condition variable, enter:
print $c1
- To display the number of waiters for a specific mutex object,
enter:
print $m1.num_wait
- To display the exit value of a specific thread, enter:
print $t1.exit_status
Related information
The assign and set subcommands.