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

Antoine Labour piman at google.com
Thu Aug 28 18:48:48 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 {
----------------
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?

http://reviews.llvm.org/D5112






More information about the cfe-commits mailing list