diff options
author | Josh Gao <jmgao@google.com> | 2020-11-09 14:42:01 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2021-01-21 15:40:23 -0800 |
commit | 92317d82c970cea68884c3e9efbb5d6441dd6fa2 (patch) | |
tree | 645cf2815080af43bcb156fc7a9dda5258084ec2 /debuggerd/handler/debuggerd_handler.cpp | |
parent | 1091d24c162572c31e716d97b01a306ebce4d377 (diff) |
libdebuggerd: add protobuf implementation.
This commit implements protobuf output for tombstones, along with a
translator that should emit bytewise identical output to the existing
tombstone dumping code, except for ancillary data from GWP-ASan and
Scudo, which haven't been implemented yet.
Test: setprop debug.debuggerd.translate.translate_proto_to_text 1 &&
/data/nativetest64/debuggerd_test/debuggerd_test
Test: for TOMBSTONE in /data/tombstones/tombstone_??; do
pbtombstone $TOMBSTONE.pb | diff $TOMBSTONE -
done
Change-Id: Ieeece6e6d1c26eb608b00ec24e2e725e161c8c92
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
-rw-r--r-- | debuggerd/handler/debuggerd_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debuggerd/handler/debuggerd_handler.cpp b/debuggerd/handler/debuggerd_handler.cpp index 85ffc982a..735f692c2 100644 --- a/debuggerd/handler/debuggerd_handler.cpp +++ b/debuggerd/handler/debuggerd_handler.cpp @@ -313,7 +313,7 @@ static DebuggerdDumpType get_dump_type(const debugger_thread_info* thread_info) return kDebuggerdNativeBacktrace; } - return kDebuggerdTombstone; + return kDebuggerdTombstoneProto; } static int debuggerd_dispatch_pseudothread(void* arg) { |