android_system_core/debuggerd/libdebuggerd
Christopher Ferris 2d5d46ca85 Fix check for thread unwind.
If a process requires executing fallback unwinder and the thread
crashing is not the main thread, the wrong unwinder is used.
Fix this case, and add a new unit test that causes an abort in
the non main thread.

Bug: 233721755

Test: New unit test passes with fix and fails without.
Test: Ran debuggerd on swcodec process and it still dumps all threads.
Change-Id: I70fffc5d680256ce867e7a1d427593b584259160
2022-05-24 21:31:03 -07:00
..
include/libdebuggerd Remove dead non-proto tombstone reporting code. 2022-03-07 17:03:18 -08:00
test Remove dead non-proto tombstone reporting code. 2022-03-07 17:03:18 -08:00
backtrace.cpp debuggerd: store commandline instead of process name. 2021-03-30 12:15:56 -07:00
gwp_asan.cpp [GWP-ASan] Enable debuggerd to pull more allocation metadata. 2022-04-14 11:30:05 -07:00
open_files_list.cpp libdebuggerd: decode fdsan owner tags. 2018-08-28 13:48:08 -07:00
scudo.cpp Remove dead non-proto tombstone reporting code. 2022-03-07 17:03:18 -08:00
tombstone.cpp Update for SetProcessMemory removal. 2022-04-19 22:06:58 -07:00
tombstone_proto.cpp Fix check for thread unwind. 2022-05-24 21:31:03 -07:00
tombstone_proto_to_text.cpp debuggerd: add the PAC keys to the tombstones. 2022-01-13 15:03:19 -08:00
utility.cpp Update for accurate unreadable elf files. 2022-03-15 09:50:48 -07:00