Handle multiple microdumps in system log.

Properly handle microdump processing, when the system_log file contains an incomplete microdump section at the top. The processor will process the first complete microdump section.

R=primiano@chromium.org

Review URL: https://codereview.chromium.org/1742843002 .
This commit is contained in:
Maria Mandlis 2016-02-26 16:40:40 -08:00 committed by Aaron Gable
parent f97e47e55e
commit f3d28e9c4a
3 changed files with 211 additions and 4 deletions

View file

@ -213,13 +213,12 @@ Microdump::Microdump(const string& contents)
in_microdump = true;
continue;
}
if (line.find(kMicrodumpEnd) != string::npos) {
break;
}
if (!in_microdump) {
continue;
}
if (line.find(kMicrodumpEnd) != string::npos) {
break;
}
size_t pos;
if ((pos = line.find(kOsKey)) != string::npos) {