summaryrefslogtreecommitdiff
path: root/src/Unwind/UnwindCursor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Unwind/UnwindCursor.hpp')
-rw-r--r--src/Unwind/UnwindCursor.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Unwind/UnwindCursor.hpp b/src/Unwind/UnwindCursor.hpp
index 235922f..035e471 100644
--- a/src/Unwind/UnwindCursor.hpp
+++ b/src/Unwind/UnwindCursor.hpp
@@ -151,10 +151,12 @@ void DwarfFDECache<A>::removeAllIn(pint_t mh) {
_LIBUNWIND_LOG_NON_ZERO(::pthread_rwlock_unlock(&_lock));
}
+#if __APPLE__
template <typename A>
void DwarfFDECache<A>::dyldUnloadHook(const struct mach_header *mh, intptr_t ) {
removeAllIn((pint_t) mh);
}
+#endif
template <typename A>
void DwarfFDECache<A>::iterateCacheEntries(void (*func)(
@@ -363,6 +365,7 @@ private:
class _LIBUNWIND_HIDDEN AbstractUnwindCursor {
public:
+ virtual ~AbstractUnwindCursor() {}
virtual bool validReg(int) = 0;
virtual unw_word_t getReg(int) = 0;
virtual void setReg(int, unw_word_t) = 0;