mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
New file, made out of files from libiberty in binutils.
2006-08-20 Soren Sandmann <sandmann@redhat.com> * Makefile.am, demangle.c: New file, made out of files from libiberty in binutils. * binfile.c: Use the new sysprof_cplus_demangle() function * elfparser.[ch]: Add code to lookup symbols. Add demangling function * testelf.c: Various tests
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
8967b3148c
commit
6c7afad3ff
@ -267,7 +267,7 @@ slurp_symtab (bfd *abfd, long *symcount)
|
||||
return sy;
|
||||
}
|
||||
|
||||
extern char *cplus_demangle (const char *mangled, int options);
|
||||
extern char *sysprof_cplus_demangle (const char *mangled, int options);
|
||||
|
||||
#define DMGL_PARAMS (1 << 0) /* Include function args */
|
||||
#define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */
|
||||
@ -280,7 +280,7 @@ demangle (bfd *bfd, const char *name)
|
||||
if (bfd_get_symbol_leading_char (bfd) == *name)
|
||||
++name;
|
||||
|
||||
demangled = cplus_demangle (name, DMGL_ANSI | DMGL_PARAMS);
|
||||
demangled = sysprof_cplus_demangle (name, DMGL_ANSI | DMGL_PARAMS);
|
||||
return demangled ? demangled : g_strdup (name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user