* cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
	(main): Uncomment "Demangling error\n".
This commit is contained in:
Jan Kratochvil 2011-08-06 14:13:49 +00:00
parent b990ad6169
commit 2f7fb8e4c8
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
(main): Uncomment "Demangling error\n".
2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
* solib-target.c (segment_attributes): Make them static.

View File

@ -2042,7 +2042,10 @@ void
xfree (void *ptr)
{
if (ptr != NULL)
free (ptr);
{
/* Literal `free' would get translated back to xfree again. */
CONCAT2 (fr,ee) (ptr);
}
}
int
@ -2071,7 +2074,7 @@ main (int argc, char **argv)
str2 = cplus_demangle (buf, DMGL_PARAMS | DMGL_ANSI | DMGL_VERBOSE);
if (str2 == NULL)
{
/* printf ("Demangling error\n"); */
printf ("Demangling error\n");
if (c)
printf ("%s%c%s\n", buf, c, extra_chars);
else