]> granicus.if.org Git - icinga2/commitdiff
Implement Utility::DemangleSymbolName on Windows.
authorGunnar Beutner <gunnar@beutner.name>
Tue, 5 Nov 2013 19:25:26 +0000 (20:25 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 5 Nov 2013 19:26:05 +0000 (20:26 +0100)
Fixes #5010

lib/base/utility.cpp

index f3b7895fdc1925e1f7afb314cd4e9f3c0cd0d3f4..8f12c291f8947e5409caf67a92b4d8dc4b4cc037 100644 (file)
@@ -59,6 +59,11 @@ String Utility::DemangleSymbolName(const String& sym)
                result = String(realname);
                free(realname);
        }
+#else /* _MSC_VER */
+       CHAR output[256];
+
+       if (UnDecorateSymbolName(sym.CStr(), output, sizeof(output), UNDNAME_COMPLETE) > 0)
+               result = output;
 #endif /* _MSC_VER */
 
        return result;