This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objdump : inaccurate demangling for foo(char* const)
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Alex Vinokur <alexvn at connect dot to>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 19 Sep 2003 00:03:14 -0400
- Subject: Re: objdump : inaccurate demangling for foo(char* const)
- References: <bkdtmv$597$1@sea.gmane.org>
On Fri, Sep 19, 2003 at 06:37:38AM +0300, Alex Vinokur wrote:
> ==========================================
> Windows 2000 Professional
> CYGWIN_NT-5.0 1.5.4(0.94/3/2)
> GNU gcc version 3.2 20020927 (prerelease)
> GNU objdump 2.14.90 20030901
> ==========================================
>
>
> It seems that objdump inaccurately demangles foo(char* const).
> Low-level symbol name of foo(char* const) is valid : __Z3fooPc
> But user-level symbol name obtained after demangling is inaccurate : foo(char*).
No, _Z3fooPc is the mangling for foo(char *). It would be _Z3fooKPc.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer