diff options
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 5d43005..59230f1 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -23,7 +23,6 @@ #include "bfd.h" #include "progress.h" #include "bucomm.h" -#include "budemang.h" #include "getopt.h" #include "aout/stab_gnu.h" #include "aout/ranlib.h" @@ -335,11 +334,14 @@ print_symname (const char *format, const char *name, bfd *abfd) { if (do_demangle && *name) { - char *res = demangle (abfd, name); + char *res = bfd_demangle (abfd, name, DMGL_ANSI | DMGL_PARAMS); - printf (format, res); - free (res); - return; + if (res != NULL) + { + printf (format, res); + free (res); + return; + } } printf (format, name); |