4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"STABS">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"Class%20Instance">Class Instance
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Methods.html#Methods">Methods
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Simple-Classes.html#Simple%20Classes">Simple Classes
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Cplusplus.html#Cplusplus">Cplusplus
</a>
19 <h3 class=
"section">Class Instance
</h3>
21 <p>As shown above, describing even a simple C++ class definition is
22 accomplished by massively extending the stab format used in C to
23 describe structure types. However, once the class is defined, C stabs
24 with no modifications can be used to describe class instances. The
27 <pre class=
"example"> main () {
32 <p>yields the following stab describing the class instance. It looks no
33 different from a standard C stab describing a local variable.
35 <pre class=
"display"> .stabs
"name:type_ref(baseA)", N_LSYM, NIL, NIL, frame_ptr_offset
38 <pre class=
"example"> .stabs
"AbaseA:20",
128,
0,
0,-
20