diff options
Diffstat (limited to 'gprof/utils.c')
-rw-r--r-- | gprof/utils.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gprof/utils.c b/gprof/utils.c index 2402fe4..a0e69b1 100644 --- a/gprof/utils.c +++ b/gprof/utils.c @@ -42,10 +42,13 @@ DEFUN (print_name_only, (self), Sym * self) { name++; } - demangled = cplus_demangle (name, DMGL_ANSI | DMGL_PARAMS); - if (demangled) + if (demangle) { - name = demangled; + demangled = cplus_demangle (name, DMGL_ANSI | DMGL_PARAMS); + if (demangled) + { + name = demangled; + } } } printf ("%s", name); |