This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Demangling broken (was: Re: [PATCH] Demangler woes with current CVS and type names)
On Thu, Jan 31, 2002 at 08:20:49PM -0500, Phil Edwards wrote:
> On Thu, Jan 31, 2002 at 04:55:55PM -0800, H . J . Lu wrote:
> > Here is a patch against my Linux binutils. It seems to work for me. I
> > can adapt it for the binutils in CVS.
>
> I have reverted my patch now. Remember that you'll need to commit your
Here is an old patch of mine. demangling_new takes 2 args, not 1. See
http://gcc.gnu.org/ml/gcc-bugs/2001-04/msg00571.html
H.J.
----
2001-06-4 H.J. Lu <hjl@gnu.org>
* cp-demangle.c (cp_demangle_type): Call demangling_new with
DMGL_GNU_V3.
Index: cp-demangle.c
===================================================================
RCS file: /work/cvs/gnu/binutils/libiberty/cp-demangle.c,v
retrieving revision 1.1.1.12
retrieving revision 1.4
diff -u -p -r1.1.1.12 -r1.4
--- cp-demangle.c 2001/10/15 18:08:35 1.1.1.12
+++ cp-demangle.c 2001/10/15 20:56:06 1.4
@@ -3540,7 +3540,7 @@ cp_demangle_type (type_name, result)
dyn_string_t result;
{
status_t status;
- demangling_t dm = demangling_new (type_name);
+ demangling_t dm = demangling_new (type_name, DMGL_GNU_V3);
if (dm == NULL)
return STATUS_ALLOCATION_FAILED;