commit | 5f32207a3db0bea3ca1c7f4b2b563c11b895f276 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Thu Oct 15 16:07:43 2009 -0700 |
committer | Andy McFadden <fadden@android.com> | Thu Oct 15 16:29:22 2009 -0700 |
tree | a9a966a87f56d00f0682a66ae8451bcd6d8c2dd4 | |
parent | 5c32826841460294cfba98ff713b4804512bacd1 [diff] |
Wrap ARM abort() to improve stack trace. The code generated for Thumb and Thumb2 targets has different handling for abort(). Because abort() is "noreturn", it doesn't need to preserve the callee-save registers. The Thumb2 version trashes LR and makes it impossible to figure out who called abort(). This inserts a trivial stub function; net effect is stack traces are reasonable after an abort(). For bug 2191452.