Next: , Previous: , Up: GNU C++ Stabs   [Contents][Index]


8.5 Class Instance

As shown above, describing even a simple C++ class definition is accomplished by massively extending the stab format used in C to describe structure types. However, once the class is defined, C stabs with no modifications can be used to describe class instances. The following source:

main () {
        baseA AbaseA;
}

yields the following stab describing the class instance. It looks no different from a standard C stab describing a local variable.

.stabs "name:type_ref(baseA)", N_LSYM, NIL, NIL, frame_ptr_offset
.stabs "AbaseA:20",128,0,0,-20