From 3935a9f570e6e50c8acbd0c593060776ac9c24a0 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Mon, 8 May 2006 23:31:42 +0000 Subject: use c++filt for symbol demangling if available (bzr r778) --- src/sp-object.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sp-object.cpp') diff --git a/src/sp-object.cpp b/src/sp-object.cpp index fbe16e957..5e011bd04 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -45,6 +45,7 @@ #include "xml/node-fns.h" #include "debug/event-tracker.h" #include "debug/simple-event.h" +#include "debug/demangle.h" #include "util/share.h" #include "util/format.h" @@ -241,7 +242,7 @@ public: : BaseRefCountEvent(name) { _addProperty("object", Util::format("%p", object)); - _addProperty("class", Util::share_static_string(g_type_name(G_TYPE_FROM_INSTANCE(object)))); + _addProperty("class", Debug::demangle(g_type_name(G_TYPE_FROM_INSTANCE(object)))); _addProperty("new-refcount", Util::format("%d", G_OBJECT(object)->ref_count + bias)); } }; -- cgit v1.2.3