[libiberty] don't demangle functions named "."
Jim Blandy
jimb@codesourcery.com
Wed Jan 9 19:26:00 GMT 2008
Thiago Jung Bauermann <bauerman at br.ibm.com> writes:
> @@ -2513,10 +2510,12 @@ iterate_demangle_function (struct work_s
>
> while (scan[2])
> {
> - demangle_function_name (work, mangled, declp, scan);
> - success = demangle_signature (work, mangled, declp);
> - if (success)
> - break;
> + if (demangle_function_name (work, mangled, declp, scan))
> + {
> + success = demangle_signature (work, mangled, declp);
> + if (success)
> + break;
> + }
>
> /* Reset demangle state for the next round. */
> *mangled = mangle_init;
Why not simply:
if (demangle_function_name (work, mangled, declp, scan)
&& demangle_signature (work, mangled, declp))
break;
More information about the Gdb-patches
mailing list