Structures

TotalView treats struct as a keyword. You can type struct as part of the type string, but it is optional. If you have a structure and another data type with the same name, however, you must include struct with the name of the structure so TotalView can distinguish between the two data types.

If you name a structure using typedef, the debugger uses the typedef name as the type string. Otherwise, the debugger uses the structure tag for the struct.

For example, consider the structure definition:

typedef struct mystruc_struct {
    int field_1;
    int field_2;
} mystruc_type;

TotalView displays mystruc_type as the type for struct mystruc_struct.

TotalView does not interpret the definition of structures in a type string. For example, it cannot interpret a definition such as struct {int a; int b;}.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0