Allow unwinding main thread in ThreadUnwinder.

The check in ThreadUnwinder was overly aggressive, it should only
disallow unwinding itself. Unfortunately, it only disallowed
unwinding the main thread.

Add new unit tests to verify this behavior.

Test: New unit tests pass that verify thread unwinding behavior.

Signed-off-by: Sim Sun <simsun@fb.com>
Change-Id: If75399911f2f98f3155592fc292341d7b9e5e023
2 files changed
tree: 65d7fd8a5b9f0183014df71e386c5b2aa2e4a6fb
  1. libbacktrace/
  2. libunwindstack/
  3. OWNERS
  4. PREUPLOAD.cfg