[PATCH] [libcxxabi] Make _Unwind_Backtrace() work on ARM.

Jon Roelofs jonathan at codesourcery.com
Fri Aug 29 06:18:58 PDT 2014


================
Comment at: src/Unwind/Unwind-EHABI.cpp:223
@@ +222,3 @@
+    *len = (((data[1] >> 24) & 0xff) + 1) * 4;
+    data++; // Skip the first word, which is the prel31 offset.
+  } else {
----------------
piman wrote:
> Mmh, this makes assumptions about the personality routine doesn't it?
> The generic model is supposed to be compatible with a variety of languages and I'm not sure we can assume the generic data is the same as what the C++ personality routine expects, can we?
In the generic model, the unwind opcodes come first, and then the LSDA comes after... this looks correct to me.

http://reviews.llvm.org/D5112






More information about the cfe-commits mailing list