Debugging a Program With dbx

C++ members and whatis Command

Sometimes the type of a C++ member is missing in the output of whatis. In the following example, the type of member stackcount is missing:


(dbx) whatis stack
class stack {
...
static stackcount;       /* Never defined or allocated */
...
};

When a static class member is not defined or allocated, dbx cannot determine its type so there is no type to print.