This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [libiberty] don't demangle functions named "."


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


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