This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Helping out GDB
- To: rearnsha at arm dot com
- Subject: Re: Helping out GDB
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 14 Jul 2000 21:30:07 +0200
- CC: dberlin at redhat dot com, gcc at gcc dot gnu dot org, rearnsha at arm dot com
- References: <200007141058.LAA01984@cam-mail2.cambridge.arm.com>
> > Why is that? If the symbols start with __vt_, it's vtable thunks; if
> > they start with __vt., it's old-style vtables. Is that difficult to
> > tell apart?
>
> Last time I looked, whether "." was a valid character for an object format
> was a back-end choice (the assembler may not grok it). In such cases,
> either "$" or, in the worst case, "_" is substituted instead. So in
> general: No, it isn't enough.
There are three possibilites:
thunks nothunks
$ in label __vt_ _vt$
. in label __vt_ _vt.
neither/nor __vt_ _vt_
So it's actually the "__vt" prefix that allows to reliably tell apart
thunks vs nothunks.
Regards,
Martin