[Lldb-commits] [lldb] r240537 - Fix location of symbol size calculation in ObjectFileELF

Tamas Berghammer tberghammer at google.com
Wed Jun 24 05:31:25 PDT 2015


Author: tberghammer
Date: Wed Jun 24 07:31:25 2015
New Revision: 240537

URL: http://llvm.org/viewvc/llvm-project?rev=240537&view=rev
Log:
Fix location of symbol size calculation in ObjectFileELF

Bug introduced by r240533

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=240537&r1=240536&r2=240537&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp Wed Jun 24 07:31:25 2015
@@ -2025,7 +2025,6 @@ ObjectFileELF::ParseSymbols (Symtab *sym
             flags);                 // Symbol flags.
         symtab->AddSymbol(dc_symbol);
     }
-    symtab->CalculateSymbolSizes();
     return i;
 }
 
@@ -2527,6 +2526,7 @@ ObjectFileELF::GetSymtab()
                 ParseTrampolineSymbols (m_symtab_ap.get(), symbol_id, reloc_header, reloc_id);
             }
         }
+        m_symtab_ap->CalculateSymbolSizes();
     }
 
     for (SectionHeaderCollIter I = m_section_headers.begin();





More information about the lldb-commits mailing list