android_system_core/debuggerd/proto/Android.bp
Josh Gao 92317d82c9 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
2021-01-21 15:40:23 -08:00

28 lines
461 B
Text

cc_library {
name: "libtombstone_proto",
cflags: [
"-Wall",
"-Wextra",
"-Wthread-safety",
"-Werror",
],
compile_multilib: "both",
proto: {
export_proto_headers: true,
type: "lite",
},
srcs: [
"tombstone.proto",
],
stl: "libc++_static",
apex_available: [
"com.android.runtime",
],
recovery_available: true,
vendor_ramdisk_available: true,
}