diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-08-06 14:13:49 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-08-06 14:13:49 +0000 |
commit | 2f7fb8e4c8d23a52f0ca284beeebc248aa63baaf (patch) | |
tree | 035ee4f74701a5ace3a4872b6695239bd2af98a7 /gdb/cp-name-parser.y | |
parent | b990ad6169a85cc299c28180203134703090428f (diff) | |
download | gdb-2f7fb8e4c8d23a52f0ca284beeebc248aa63baaf.zip gdb-2f7fb8e4c8d23a52f0ca284beeebc248aa63baaf.tar.gz gdb-2f7fb8e4c8d23a52f0ca284beeebc248aa63baaf.tar.bz2 |
gdb/
* cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
(main): Uncomment "Demangling error\n".
Diffstat (limited to 'gdb/cp-name-parser.y')
-rw-r--r-- | gdb/cp-name-parser.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 8736777..286bbb4 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -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 |