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

  1. Variables declared with the const attribute (in C programs) are displayed without the const attribute.
  2. The whatis subcommand can be run only while the dbx debug program is running.

Examples

  1. To display the declaration of the x variable, enter:
    whatis x
  2. To display the declaration of the main function, enter:
    whatis main
  3. To display the declaration of the x variable within the main function, enter:
    whatis main.x
  4. To display the declaration of a specific condition variable, $c1, enter:
    whatis $c1
  5. To display the declaration of a specific mutex object, $m1, enter:
    whatis $m1
  6. To display the declaration of a specific thread, $t1, enter:
    whatis $t1