diff options
author | Per Bothner <per@bothner.com> | 1992-08-31 01:14:44 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-08-31 01:14:44 +0000 |
commit | fe2b6209ff1e39ae4fae94f466d1fb160cddc71b (patch) | |
tree | 8eaa9f41c5333c9e3de15601fbf9b5fe5bfa0503 /ld/ldmisc.c | |
parent | 455a0d2890f2ccb1e0cfb8b21ea080329b92f69e (diff) | |
download | gdb-fe2b6209ff1e39ae4fae94f466d1fb160cddc71b.zip gdb-fe2b6209ff1e39ae4fae94f466d1fb160cddc71b.tar.gz gdb-fe2b6209ff1e39ae4fae94f466d1fb160cddc71b.tar.bz2 |
* cplus-dem.c: Removed. Use the version in libiberty now.
* ldmisc.c: Use new libiberty version of cplus_demangle().
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r-- | ld/ldmisc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c index 9a70af9..b35e021 100644 --- a/ld/ldmisc.c +++ b/ld/ldmisc.c @@ -22,6 +22,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "bfd.h" #include "sysdep.h" #include <varargs.h> +#include <demangle.h> #include "ld.h" #include "ldmisc.h" @@ -60,7 +61,6 @@ vfinfo(fp, fmt, arg) char *fmt; va_list arg; { - extern char *cplus_demangle(); boolean fatal = false; while (*fmt) { @@ -91,7 +91,8 @@ vfinfo(fp, fmt, arg) asection *section = symbol->section; - char *cplusname = cplus_demangle(symbol->name, 1); + char *cplusname = + cplus_demangle(symbol->name, DMGL_ANSI|DMGL_PARAMS); CONST char *section_name = section->name; if (section != &bfd_und_section) { @@ -208,7 +209,7 @@ vfinfo(fp, fmt, arg) filename = abfd->filename; if (functionname != (char *)NULL) { - cplus_name = cplus_demangle(functionname, 1); + cplus_name = cplus_demangle(functionname, DMGL_ANSI|DMGL_PARAMS); fprintf(fp,"%s:%u: (%s)", filename, linenumber, cplus_name? cplus_name: functionname); if (cplus_name) |