[libunwind] r282589 - Also use the proper register numbers on CloudABI.

Ed Schouten via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 06:51:24 PDT 2016


Author: ed
Date: Wed Sep 28 08:51:23 2016
New Revision: 282589

URL: http://llvm.org/viewvc/llvm-project?rev=282589&view=rev
Log:
Also use the proper register numbers on CloudABI.

Without this change applied, unw_step() fails to obtain the next frame
properly.

Modified:
    libunwind/trunk/include/libunwind.h

Modified: libunwind/trunk/include/libunwind.h
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/include/libunwind.h?rev=282589&r1=282588&r2=282589&view=diff
==============================================================================
--- libunwind/trunk/include/libunwind.h (original)
+++ libunwind/trunk/include/libunwind.h Wed Sep 28 08:51:23 2016
@@ -151,7 +151,7 @@ enum {
   UNW_X86_ECX = 1,
   UNW_X86_EDX = 2,
   UNW_X86_EBX = 3,
-#ifdef __FreeBSD__
+#if defined(__CloudABI__) || defined(__FreeBSD__)
   UNW_X86_ESP = 4,
   UNW_X86_EBP = 5,
 #else




More information about the cfe-commits mailing list