diff options
author | Alan Modra <amodra@gmail.com> | 2007-04-19 10:43:47 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-04-19 10:43:47 +0000 |
commit | ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9 (patch) | |
tree | af2edb74e47e3096c253376babbb73f849d0481b /binutils/addr2line.c | |
parent | 01e76792975830272df446256851f586a58cf1a9 (diff) | |
download | gdb-ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9.zip gdb-ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9.tar.gz gdb-ed180cc5dbf8d2fe7f3eb17215badc90a8a453a9.tar.bz2 |
* 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 <demangler>): 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.
Diffstat (limited to 'binutils/addr2line.c')
-rw-r--r-- | binutils/addr2line.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |