[Lldb-commits] [lldb] r193776 - Use inlined demangler on FreeBSD

Ed Maste emaste at freebsd.org
Thu Oct 31 10:42:32 PDT 2013


Author: emaste
Date: Thu Oct 31 12:42:32 2013
New Revision: 193776

URL: http://llvm.org/viewvc/llvm-project?rev=193776&view=rev
Log:
Use inlined demangler on FreeBSD

FreeBSD includes the elftoolchain project's demangler in the base system.
It does not handle some unusual mangled names, so use the inlined
libcxxabi one.

Modified:
    lldb/trunk/source/Core/Mangled.cpp

Modified: lldb/trunk/source/Core/Mangled.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Mangled.cpp?rev=193776&r1=193775&r2=193776&view=diff
==============================================================================
--- lldb/trunk/source/Core/Mangled.cpp (original)
+++ lldb/trunk/source/Core/Mangled.cpp Thu Oct 31 12:42:32 2013
@@ -10,7 +10,7 @@
 
 // FreeBSD9-STABLE requires this to know about size_t in cxxabi.h
 #include <cstddef>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined (__FreeBSD__)
 #define LLDB_USE_BUILTIN_DEMANGLER
 #else
 #include <cxxabi.h>





More information about the lldb-commits mailing list