diff options
author | Robert Flack <flackr@gmail.com> | 2015-05-13 18:20:02 +0000 |
---|---|---|
committer | Robert Flack <flackr@gmail.com> | 2015-05-13 18:20:02 +0000 |
commit | 5cbd3bfca136f9eb1d6614eca7728af6cfb591a4 (patch) | |
tree | 8d7e62f59a1abed0b4a304501ad388bf4b1f1890 | |
parent | c74e33bffe89b8b85da45640b41418d2850f394d (diff) | |
download | bcm5719-llvm-5cbd3bfca136f9eb1d6614eca7728af6cfb591a4.tar.gz bcm5719-llvm-5cbd3bfca136f9eb1d6614eca7728af6cfb591a4.zip |
Enable workaround for finding functions in global namespace on linux binaries on
all hosts.
We require a workaround to be able to locate global and anonymous namespace
functions in the dwarf symbols on linux binaries. This patch enables this code
on all platforms so that we can still find these symbols when debugging from a
different host platform.
Test Plan:
The following tests begin passing when running with a mac host to linux client:
TestCallCPPFunction.py
TestCallStopAndContinue.py
TestExprs.py
TestExprsChar.py
TestNamespace.py
TestOverloadedFunctions.py
TestRvalueReferences.py
TestThreadExit.py
Differential Revision: http://reviews.llvm.org/D9754
llvm-svn: 237270
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 19faac42e1d..ff1fcc39922 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -4033,8 +4033,7 @@ SymbolFileDWARF::FindFunctions (const ConstString &name, FindFunctions (name, m_function_fullname_index, include_inlines, sc_list); // FIXME Temporary workaround for global/anonymous namespace - // functions on FreeBSD and Linux -#if defined (__FreeBSD__) || defined (__linux__) + // functions debugging FreeBSD and Linux binaries. // 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 @@ -4061,7 +4060,6 @@ SymbolFileDWARF::FindFunctions (const ConstString &name, } } } -#endif } DIEArray die_offsets; DWARFCompileUnit *dwarf_cu = NULL; |