c7cc571fa1
The only way to get a bad architecture value in the protobuf is if the data was corrupted or an unsupported architecture was added without the register support. If the protobuf is corrupted, this is strictly better since it still produces a tombstone with the data present. If there is an unsupported architecture, it will still result in a tombstone, only the registers would not be present. It would also be very obviously a problem that needs to be fixed. Again, this is strictly better since the crash in generation is not necessarily visible unless you look at the log. Here, the data is in the log and in the tombstone. This also removes the only dependency in this file on the async_safe library. Test: Ran unit tests. Test: Forced an invalid architecture and verified tombstone is present Test: with error message, and error message printed in the log. Change-Id: I8e4a2e3f778fafb5b7241c2f23d5f867f1341ed8 |
||
---|---|---|
.. | ||
client | ||
common/include | ||
crasher | ||
handler | ||
include/debuggerd | ||
libdebuggerd | ||
proto | ||
rust/tombstoned_client | ||
seccomp_policy | ||
test_permissive_mte | ||
tombstoned | ||
.clang-format | ||
Android.bp | ||
crash_dump.cpp | ||
crash_test.cpp | ||
crash_test.h | ||
debuggerd.cpp | ||
debuggerd_benchmark.cpp | ||
debuggerd_test.cpp | ||
MODULE_LICENSE_APACHE2 | ||
OWNERS | ||
pbtombstone.cpp | ||
protocol.h | ||
TEST_MAPPING | ||
tombstone_handler.cpp | ||
tombstone_handler.h | ||
util.cpp | ||
util.h |