[libcxxabi] r233676 - Also use dl_iterate_phdr() on CloudABI.

Ed Schouten ed at nuxi.nl
Tue Mar 31 00:59:53 PDT 2015


Author: ed
Date: Tue Mar 31 02:59:53 2015
New Revision: 233676

URL: http://llvm.org/viewvc/llvm-project?rev=233676&view=rev
Log:
Also use dl_iterate_phdr() on CloudABI.

The unwinder now works on CloudABI. All exception-related libc++ tests
now pass.

This change was actually part of D8169, which also adds support for
FreeBSD. That, however, still requires some more polishing.

Modified:
    libcxxabi/trunk/src/Unwind/AddressSpace.hpp

Modified: libcxxabi/trunk/src/Unwind/AddressSpace.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/AddressSpace.hpp?rev=233676&r1=233675&r2=233676&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/AddressSpace.hpp (original)
+++ libcxxabi/trunk/src/Unwind/AddressSpace.hpp Tue Mar 31 02:59:53 2015
@@ -57,7 +57,7 @@ extern EHTEntry __exidx_end;
 #endif // !defined(_LIBUNWIND_IS_BAREMETAL)
 #endif  // LIBCXXABI_ARM_EHABI
 
-#if defined(__linux__)
+#if defined(__CloudABI__) || defined(__linux__)
 #if _LIBUNWIND_SUPPORT_DWARF_UNWIND && _LIBUNWIND_SUPPORT_DWARF_INDEX
 #include <link.h>
 #include "EHHeaderParser.hpp"





More information about the cfe-commits mailing list