From fc7baa005f2c1933bb424830ead8271871d8c742 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 9 Sep 2013 18:00:45 +0000 Subject: [PATCH] Apply Linux C++ global/anonymous function call workound to FreeBSD as well The workaround was introduced in SVN r181613, for http://llvm.org/pr15854 llvm-svn: 190319 --- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index f265af8..332dd86 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -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 -- 2.7.4