whatis subcommand for dbx: Display the type of program components
Format
whatis name
Description
The whatis subcommand displays the declaration of name, where the name argument designates a variable, procedure, or function name, optionally qualified with a block name.
Usage notes
- Variables declared with the const attribute (in C programs) are displayed without the const attribute.
- The whatis subcommand can be run only while the dbx debug program is running.
Examples
- To display the declaration of the x variable, enter:
whatis x
- To display the declaration of the main function,
enter:
whatis main
- To display the declaration of the x variable within the main function, enter:
whatis main.x
- To display the declaration of a specific condition variable, $c1,
enter:
whatis $c1
- To display the declaration of a specific mutex object, $m1, enter:
whatis $m1
- To display the declaration of a specific thread, $t1, enter:
whatis $t1