[Lldb-commits] [lldb] r167773 - /lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Greg Clayton gclayton at apple.com
Mon Nov 12 14:53:16 PST 2012


Author: gclayton
Date: Mon Nov 12 16:53:16 2012
New Revision: 167773

URL: http://llvm.org/viewvc/llvm-project?rev=167773&view=rev
Log:
Fixed an error in the ELF parser that was comparing a bool to 4 causing 32 bit ELF relocations to get parsed incorrectly.


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=167773&r1=167772&r2=167773&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp Mon Nov 12 16:53:16 2012
@@ -964,7 +964,7 @@
     reloc_info_fn reloc_type;
     reloc_info_fn reloc_symbol;
 
-    if (hdr->Is32Bit() == 4)
+    if (hdr->Is32Bit())
     {
         reloc_type = ELFRelocation::RelocType32;
         reloc_symbol = ELFRelocation::RelocSymbol32;





More information about the lldb-commits mailing list