Apply Linux C++ global/anonymous function call workound to FreeBSD as well
authorEd Maste <emaste@freebsd.org>
Mon, 9 Sep 2013 18:00:45 +0000 (18:00 +0000)
committerEd Maste <emaste@freebsd.org>
Mon, 9 Sep 2013 18:00:45 +0000 (18:00 +0000)
The workaround was introduced in SVN r181613, for http://llvm.org/pr15854

llvm-svn: 190319

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

index f265af8..332dd86 100644 (file)
@@ -3736,8 +3736,9 @@ SymbolFileDWARF::FindFunctions (const ConstString &name,
         {
             FindFunctions (name, m_function_fullname_index, sc_list);
 
-            // Temporary workaround for global/anonymous namespace functions on linux
-#if defined (__linux__)
+            // FIXME Temporary workaround for global/anonymous namespace
+            // functions on FreeBSD and Linux
+#if defined (__FreeBSD__) || defined (__linux__)
             // If we didn't find any functions in the global namespace try
             // looking in the basename index but ignore any returned
             // functions that have a namespace (ie. mangled names starting with