summaryrefslogtreecommitdiff
path: root/src/UnwindCursor.hpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2019-10-18 19:59:22 +0000
committerRyan Prichard <rprichard@google.com>2019-10-18 19:59:22 +0000
commit3e6ec2ae9afaa3683269b690612f84d907943ea2 (patch)
tree458badb72f1d2cca8744ec41de5d04c37f10097f /src/UnwindCursor.hpp
parent4454bbf4cac4083a180edc71f15aeba9697265f3 (diff)
[libunwind][Android] Fix findUnwindSections for ARM EHABI BionicHEADmaster
Summary: Fix the arm_section_length count. The meaning of the arm_section_length field changed from num-of-elements to num-of-bytes when the dl_unwind_find_exidx special case was removed (D30306 and D30681). The special case was restored in D39468, but that patch didn't account for the change in arm_section_length's meaning. That patch worked when it was applied to the NDK's fork of libunwind, because it never removed the special case in the first place, and the special case is probably disabled in the Android platform's copy of libunwind, because __ANDROID_API__ is greater than 21. Turn the dl_unwind_find_exidx special case on unconditionally for Bionic. Bionic's dl_unwind_find_exidx is much faster than using dl_iterate_phdr. (e.g. Bionic stores exidx info on an internal soinfo object.) Reviewers: thomasanderson, srhines, danalbert, ed, keith.walker.arm, mclow.lists, compnerd Reviewed By: srhines, danalbert Subscribers: srhines, kristof.beyls, christof, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D68972 git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@375275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/UnwindCursor.hpp')
-rw-r--r--src/UnwindCursor.hpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/UnwindCursor.hpp b/src/UnwindCursor.hpp
index 488c317..b4d44e1 100644
--- a/src/UnwindCursor.hpp
+++ b/src/UnwindCursor.hpp
@@ -1222,11 +1222,6 @@ template <typename A, typename R> bool UnwindCursor<A, R>::isSignalFrame() {
#endif // defined(_LIBUNWIND_SUPPORT_SEH_UNWIND)
#if defined(_LIBUNWIND_ARM_EHABI)
-struct EHABIIndexEntry {
- uint32_t functionOffset;
- uint32_t data;
-};
-
template<typename A>
struct EHABISectionIterator {
typedef EHABISectionIterator _Self;