[Lldb-commits] [lldb] r213644 - Fix an issue where an entry point of 0x00 would cause LLDB to think that the ELF is not executable without checking for ET_EXEC

Deepak Panickal deepak at codeplay.com
Tue Jul 22 05:01:43 PDT 2014


Author: panickal
Date: Tue Jul 22 07:01:43 2014
New Revision: 213644

URL: http://llvm.org/viewvc/llvm-project?rev=213644&view=rev
Log:
Fix an issue where an entry point of 0x00 would cause LLDB to think that the ELF is not executable without checking for ET_EXEC

Modified:
    lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Modified: lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp?rev=213644&r1=213643&r2=213644&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp Tue Jul 22 07:01:43 2014
@@ -733,7 +733,7 @@ ObjectFileELF::~ObjectFileELF()
 bool
 ObjectFileELF::IsExecutable() const
 {
-    return m_header.e_entry != 0;
+    return ((m_header.e_type & ET_EXEC) != 0) || (m_header.e_entry != 0);
 }
 
 bool





More information about the lldb-commits mailing list