Improve the handling of missing elf symtab and missing symbol sizes
authorTamas Berghammer <tberghammer@google.com>
Wed, 10 Feb 2016 10:43:34 +0000 (10:43 +0000)
committerTamas Berghammer <tberghammer@google.com>
Wed, 10 Feb 2016 10:43:34 +0000 (10:43 +0000)
commited844cbc0f5b9391314edb7d34ea71a060b0faa2
tree6677726dba2faf02b4813d3e5eb4d47740c31620
parent10e9923841a993978e3acf13bb7b0f893a118b81
Improve the handling of missing elf symtab and missing symbol sizes

* Generate artificial symbol names from eh_fame during symbol parsing
  so these symbols are already present when we calcualte the size of
  the symbols where 0 is specified.
* Fix symbol size calculation for the last symbol in the file where
  it have to last until the end of the parent section.

Differential revision: http://reviews.llvm.org/D16996

llvm-svn: 260369
lldb/include/lldb/Core/RangeMap.h
lldb/include/lldb/Symbol/DWARFCallFrameInfo.h
lldb/include/lldb/Symbol/ObjectFile.h
lldb/include/lldb/Symbol/Symtab.h
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Symbol/DWARFCallFrameInfo.cpp
lldb/source/Symbol/ObjectFile.cpp
lldb/source/Symbol/Symtab.cpp