This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: Fix PR18530


On Thu, Dec 02, 2004 at 05:34:02PM -0800, Mark Mitchell wrote:
> Daniel Jacobowitz wrote:
> 
> >
> >>!     { "__base_ctor ", &base_ctor_identifier, 1 },
> >
> >
> >will mess up GDB for stabs targets, which knows about __base_ctor. 
> >Even beyond that bit of GDB brain damage, the stabs parser is likely to
> >be upset by trailing whitespace...
> >
> >Is there some other way we could fix this?
> 
> Basically, we need to encode something with no user-visible name (a 
> constructor) in a symbol table that is indexed by names.  We need to 
> avoid collisions.  We could use other invalid characters in an 
> identifier instead of space -- like "*" or "!".  Would that help?

I doubt it.  They're probably overloaded as stabs magic already.  There
are fairly few free characters.  I guess we can wait and see if it
causes problems.

> (And, why are we writing out unmangled names into the stabs data?  We 
> have mangled names precisely to that C++ weirdness can get mapped into 
> the normal C identifier space.)

I don't think we do, for real debug formats (i.e. dwarf).

-- 
Daniel Jacobowitz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]