www.delorie.com/gnu/docs/gdb/stabs_57.html   search  
Buy the book!


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.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

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003