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 |
||
---|---|---|
.. | ||
include/libdebuggerd | ||
test | ||
backtrace.cpp | ||
gwp_asan.cpp | ||
open_files_list.cpp | ||
scudo.cpp | ||
tombstone.cpp | ||
tombstone_proto.cpp | ||
tombstone_proto_to_text.cpp | ||
utility.cpp |