[DO NOT MERGE] Improve signal catching and native stack dumps.

This works around the problem with abort(3) (and friends) on glibc,
and improves our ability to catch SIGSEGVs from the main thread, and
slightly improves our behavior if multiple threads are dying at once.
I think any remaining flakiness is only in this last case, and I'm
not sure whether we can actually improve that any further.

(cherry picked from commit dcaaea9d30f39622d0b1d9bbb68911173621e54b)

Conflicts:

	src/runtime_linux.cc

Change-Id: I9922f3ee4609799993635e1ed98a21363505a6ab
2 files changed
tree: e05a9fc25d9cc15c41d109af7a92b610b15fac7d
  1. build/
  2. jdwpspy/
  3. src/
  4. test/
  5. tools/
  6. .gitignore
  7. Android.mk