This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [libiberty] don't demangle functions named "."
- From: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- To: Jim Blandy <jimb at codesourcery dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 09 Jan 2008 17:55:22 -0200
- Subject: Re: [libiberty] don't demangle functions named "."
- References: <1199898911.15225.48.camel@localhost.localdomain> <m3abne6brw.fsf@codesourcery.com>
On Wed, 2008-01-09 at 11:26 -0800, Jim Blandy wrote:
> Thiago Jung Bauermann <bauerman at br.ibm.com> writes:
> > + if (demangle_function_name (work, mangled, declp, scan))
> > + {
> > + success = demangle_signature (work, mangled, declp);
> > + if (success)
> > + break;
> > + }
>
> Why not simply:
>
> if (demangle_function_name (work, mangled, declp, scan)
> && demangle_signature (work, mangled, declp))
> break;
success is used later on as the return value of the function. I can
change this to:
if (demangle_function_name (work, mangled, declp, scan)
&& demangle_signature (work, mangled, declp))
{
success = 1;
break;
}
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center