platform_system_core/debuggerd/client
Kalesh Singh a9ea7e5b8e debuggerd_client: also log errors to the dump file.
Dumping stack in ANR can fail, but error message is only printed
to logcat. To allow easier debugging of such cases we add the
error messages in the ANR file as well.

Also factor out some duplication, inline single-call functions to
their call sites, and make some of the lambdas clearer by only having
implicit state unrelated to their primary purpose in captures but
passing as arguments things they fundamentally need to do their job
(and actually adding some duplication for time_left() which was subtle
enough to fool me into thinking that we only needed one call of
set_timeout(), which I've renamed to update_timeout()).

Bug: 191172191
Test: Manual
Change-Id: I39a50ca5b72059bfeff48b010d3be44f19eb32fa
2021-06-29 11:59:14 -07:00
..
debuggerd_client.cpp debuggerd_client: also log errors to the dump file. 2021-06-29 11:59:14 -07:00
debuggerd_client_test.cpp [GWP-ASan] Add GWP-ASan information to tombstones. 2020-02-18 16:49:50 -08:00