llvm-project/lldb/source/Plugins/ObjectFile/ELF
Alexander Shaposhnikov a08ba42f1a [lldb] Update the check for Linux or FreeBSD in SymbolFileDWARF::FindFunctions
This diff
1. Adds a comment to ObjectFileELF.cpp about the current
approach to determining the OS.
2. Replaces the check in SymbolFileDWARF.cpp with a more robust one.

Test plan:
Built (on Linux) a test binary linked to a c++ shared library
which contains just an implementation of a function TestFunction,
the library (the binary itself) doesn't contain ELF notes 
and EI_OSABI is set to System V.
Checked in lldb that now "p TestFunction()" works fine 
(and doesn't work without this patch).

Differential revision: https://reviews.llvm.org/D27380

llvm-svn: 288687
2016-12-05 18:42:21 +00:00
..
CMakeLists.txt [cmake] Remove LLVM_NO_RTTI. 2015-09-03 08:46:55 +00:00
ELFHeader.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ELFHeader.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ObjectFileELF.cpp [lldb] Update the check for Linux or FreeBSD in SymbolFileDWARF::FindFunctions 2016-12-05 18:42:21 +00:00
ObjectFileELF.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00