summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2016-04-25 15:51:45 +0000
committerTamas Berghammer <tberghammer@google.com>2016-04-25 15:51:45 +0000
commit0237eda92913b0779b509bbb4500f1e842e35d0e (patch)
tree8daee9c389f14d31c68d3693eee46e17134fef5c /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent6d547205f026bba193ad13a5358269510acea196 (diff)
downloadbcm5719-llvm-0237eda92913b0779b509bbb4500f1e842e35d0e.tar.gz
bcm5719-llvm-0237eda92913b0779b509bbb4500f1e842e35d0e.zip
Fix ARM attribute parsing for Android after rL267291
Differential revision: http://reviews.llvm.org/D19480 llvm-svn: 267422
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index 7d79010ae76..aadce11eee6 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -1740,12 +1740,9 @@ ObjectFileELF::GetSectionHeaderInfo(SectionHeaderColl &section_headers,
{
DataExtractor data;
- if (sheader.sh_type != SHT_ARM_ATTRIBUTES)
- continue;
- if (section_size == 0 || set_data(data, sheader.sh_offset, section_size) != section_size)
- continue;
-
- ParseARMAttributes(data, section_size, arch_spec);
+ if (sheader.sh_type == SHT_ARM_ATTRIBUTES && section_size != 0 &&
+ set_data(data, sheader.sh_offset, section_size) == section_size)
+ ParseARMAttributes(data, section_size, arch_spec);
}
if (name == g_sect_name_gnu_debuglink)
OpenPOWER on IntegriCloud