[Lldb-commits] [lldb] r190319 - Apply Linux C++ global/anonymous function call workound to FreeBSD as well

Ed Maste emaste at freebsd.org
Mon Sep 9 11:00:45 PDT 2013


Author: emaste
Date: Mon Sep  9 13:00:45 2013
New Revision: 190319

URL: http://llvm.org/viewvc/llvm-project?rev=190319&view=rev
Log:
Apply Linux C++ global/anonymous function call workound to FreeBSD as well

The workaround was introduced in SVN r181613, for http://llvm.org/pr15854

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=190319&r1=190318&r2=190319&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Mon Sep  9 13:00:45 2013
@@ -3736,8 +3736,9 @@ SymbolFileDWARF::FindFunctions (const Co
         {
             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 





More information about the lldb-commits mailing list