OSDN Git Service

Wrap ARM abort() to improve stack trace.
authorAndy McFadden <fadden@android.com>
Thu, 15 Oct 2009 23:07:43 +0000 (16:07 -0700)
committerAndy McFadden <fadden@android.com>
Wed, 21 Oct 2009 17:41:12 +0000 (10:41 -0700)
commit96bbbe21778fc3f4a932822c2436238d6ce5721b
tree6bbaa7c085c94feb041cf1c3e2314193c02971df
parent7e7d6c48a064af82f0ec39f47b9eb803a6e1df4c
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.

Eclair branch Dr. No approved by: hiroshi
libc/unistd/abort.c