GNU Info

Info Node: (stabs.info)Class Instance

(stabs.info)Class Instance


Next: Methods Prev: Simple Classes Up: Cplusplus
Enter node , (file) or (file)node

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


automatically generated by info2www version 1.2.2.9