From ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 19 Apr 2007 10:43:47 +0000 Subject: * budemang.c: Delete. * budemang.h: Delete. * addr2line.c (translate_addresses): Call bfd_demangle rather than demangle. * nm.c (print_symname): Likewise. * objdump.c (objdump_print_symname, dump_symbols): Likewise. (dump_bfd): Likewise. * prdbg.c (struct pr_handle ): Add int param. (tg_variable, tg_start_function): Adjust demangler calls. * Makefile.am: Remove mention of budemang.[ch]. Run "make dep-am". * Makefile.in: Regenerate. * po/POTFILES.in: Regenerate. --- binutils/addr2line.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'binutils/addr2line.c') diff --git a/binutils/addr2line.c b/binutils/addr2line.c index 8347cfa..9c8b1a7 100644 --- a/binutils/addr2line.c +++ b/binutils/addr2line.c @@ -37,7 +37,6 @@ #include "libiberty.h" #include "demangle.h" #include "bucomm.h" -#include "budemang.h" static bfd_boolean unwind_inlines; /* -i, unwind inlined functions. */ static bfd_boolean with_functions; /* -f, show function names. */ @@ -224,8 +223,9 @@ translate_addresses (bfd *abfd, asection *section) name = "??"; else if (do_demangle) { - alloc = demangle (abfd, name); - name = alloc; + alloc = bfd_demangle (abfd, name, DMGL_ANSI | DMGL_PARAMS); + if (alloc != NULL) + name = alloc; } printf ("%s\n", name); -- cgit v1.1