使用 whatis 命令可输出标识符的声明:
(dbx) whatis identifier
根据需要使用文件和函数信息来限定标识符名。
对于 C++ 程序,whatis 会列出函数模板实例。可使用 whatis -t 显示模板定义(请参见查找类型和类的定义)。
对于 Java 程序,whatis identifier 会列出类的声明、当前类中的方法、当前帧中的局部变量或当前类中的字段。
(dbx) whatis block::draw void block::draw(unsigned long pw); (dbx) whatis table::draw void table::draw(unsigned long pw); (dbx) whatis block::pos class point *block::pos(); (dbx) whatis table::pos class point *block::pos(); :
(dbx) whatis block::movable int movable;
(dbx) whatis the_table class table *the_table; .
(dbx) whatis the_table->draw void table::draw(unsigned long pw);
(dbx) stop in brick::draw (dbx) cont (dbx) where 1 brick::draw(this = 0x48870, pw = 374752), line 124 in "block_draw.cc" (dbx) whatis this class brick *this;