Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] 3.4 Demangler API, for types


  • To: Dennis Handly <dhandly@xxxxxxxxxx>
  • Subject: Re: [cxx-abi-dev] 3.4 Demangler API, for types
  • From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Date: Fri, 05 Dec 2003 21:06:44 -0800

On Fri, 2003-12-05 at 00:14, Dennis Handly wrote:
> Does the following mean we need to demangle types from type_info?
> 
> 3.4 Demangler API   (__cxa_demangle)
> 
> o mangled-name is a pointer to a null-terminated array of characters.
> It may be either an external name, i.e.  with a "_Z" prefix, or an
> internal NTBS mangling, e.g.  of a type for type_info.

I'm not sure what c++filt behaves differently when reading "i" from a
file than on the command-line.

The demangler should demangle "i" to "int".

If the name doesn't start with "_Z", the demangler should try to
demangle the name as a "<type>", as you say.

-- 
Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
CodeSourcery, LLC