This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
libiberty: V3 ABI Java symbol demangling
- To: gcc-patches at gcc dot gnu dot org, java-patches at sources dot redhat dot com
- Subject: libiberty: V3 ABI Java symbol demangling
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Sun, 28 Jan 2001 01:03:35 +1300
The changeover to the V3 ABI broke Java symbol demangling in GDB. This
patch changes cplus_demangle() to use the V3 ABI demangling code for
Java symbols. cplus_demangle_v3 doesn't know how to output symbols in
Java-style yet, but C++ style is definitely better than nothing.
ok to commit?
will this automatically propagate to GDB or do I need to submit it to
them as well?
regards
[ bryce ]
2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
* cplus-dem.c (cplus_demangle): Use cplus_demangle_v3 if Java
demangling is requested.
Index: cplus-dem.c
===================================================================
RCS file: /cvs/gcc/egcs/libiberty/cplus-dem.c,v
retrieving revision 1.71
diff -u -r1.71 cplus-dem.c
--- cplus-dem.c 2000/12/08 03:00:26 1.71
+++ cplus-dem.c 2001/01/27 11:56:00
@@ -1,6 +1,6 @@
/* Demangler for GNU C++
Copyright 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000 Free Software Foundation, Inc.
+ 2000, 2001 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.uucp)
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
Modified by Satish Pai (pai@apollo.hp.com) for HP demangling
@@ -915,7 +915,7 @@
work->options |= (int) current_demangling_style & DMGL_STYLE_MASK;
/* The V3 ABI demangling is implemented elsewhere. */
- if (GNU_V3_DEMANGLING || AUTO_DEMANGLING)
+ if (GNU_V3_DEMANGLING || JAVA_DEMANGLING || AUTO_DEMANGLING)
{
ret = cplus_demangle_v3 (mangled);
if (ret || GNU_V3_DEMANGLING)