summaryrefslogtreecommitdiff
path: root/tools/incident_section_gen
diff options
context:
space:
mode:
authorKweku Adams <kwekua@google.com>2018-02-05 16:45:13 -0800
committerKweku Adams <kwekua@google.com>2018-03-07 21:50:12 +0000
commiteadd123d68850cb27aa6d030ade6190e30991b19 (patch)
tree28ee59bef758929559dde7b34a9dbe962f1196c9 /tools/incident_section_gen
parent0efaf2088d8e3ba8ec560aa5eb597ef456b5213e (diff)
Dumping stack traces to proto.
Bug: 72177715 Test: flash device and check incident.proto output Change-Id: Id2a15e0fc62b66efe875949af97f0eb651c7e322 (cherry picked from commit 5c804e2b9893c7892900148229cf19fa6268e7dc)
Diffstat (limited to 'tools/incident_section_gen')
-rw-r--r--tools/incident_section_gen/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp
index e396a638927e..8219150d3029 100644
--- a/tools/incident_section_gen/main.cpp
+++ b/tools/incident_section_gen/main.cpp
@@ -427,6 +427,8 @@ static bool generateSectionListCpp(Descriptor const* descriptor) {
printf(" new GZipSection(%d,", field->number());
splitAndPrint(s.args());
printf(" NULL),\n");
+ case SECTION_TOMBSTONE:
+ printf(" new TombstoneSection(%d, \"%s\"),\n", field->number(), s.args().c_str());
break;
}
}