aboutsummaryrefslogtreecommitdiff
path: root/ld/ldcref.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-19 10:45:59 +0000
committerAlan Modra <amodra@gmail.com>2007-04-19 10:45:59 +0000
commit73705ac309d244b61d3b372d61e867c05d8ea2a8 (patch)
tree4c748ae7336d9ef5a84cc9360b9909a9b6072bc2 /ld/ldcref.c
parented180cc5dbf8d2fe7f3eb17215badc90a8a453a9 (diff)
downloadgdb-73705ac309d244b61d3b372d61e867c05d8ea2a8.zip
gdb-73705ac309d244b61d3b372d61e867c05d8ea2a8.tar.gz
gdb-73705ac309d244b61d3b372d61e867c05d8ea2a8.tar.bz2
* ldcref.c (cref_fill_array): Call bfd_demangle rather than demangle.
* ldlang.c (lang_one_common): Likewise. * ldmisc.c (vfinfo): Likewise. (demangle): Delete. * ldmisc.h (demangle): Delete. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate.
Diffstat (limited to 'ld/ldcref.c')
-rw-r--r--ld/ldcref.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldcref.c b/ld/ldcref.c
index e016451..3c0763b 100644
--- a/ld/ldcref.c
+++ b/ld/ldcref.c
@@ -27,6 +27,7 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
#include "sysdep.h"
#include "bfdlink.h"
#include "libiberty.h"
+#include "demangle.h"
#include "objalloc.h"
#include "ld.h"
@@ -324,7 +325,8 @@ cref_fill_array (struct cref_hash_entry *h, void *data)
struct cref_hash_entry ***pph = data;
ASSERT (h->demangled == NULL);
- h->demangled = demangle (h->root.string);
+ h->demangled = bfd_demangle (output_bfd, h->root.string,
+ DMGL_ANSI | DMGL_PARAMS);
**pph = h;