Displaying C++ Types

Classes

TotalView displays C++ classes and accepts class as a keyword. When you debug C++, TotalView also accepts the unadorned name of a class, struct, union, or enum in the type field. TotalView displays nested classes that use inheritance, showing derivation by indentation.

Note:   Some C++ compilers do not output accessibility information. In these cases, the information is omitted from the display.

For example, the following figure displays an object of a class c:

Displaying C++ Classes That Use Inheritance

The definition is as follows:

class b {
    char * b_val;
public:
    b() {b_val = "b value";} 
};
 
class d : virtual public b {
    char * d_val;
public:
    d() {d_val = "d value";} 
};
 
class e {
    char * e_val;
 public:
    e() {e_val = "e value";} 
};
 
class c : public d, public e {
    char * c_val;
 public:
    c() {c_val = "c value";} 
};
 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0