diff options
author | Primiano Tucci <primiano@chromium.org> | 2016-07-19 17:44:10 +0100 |
---|---|---|
committer | Primiano Tucci <primiano@chromium.org> | 2016-07-19 17:44:10 +0100 |
commit | 5adeef6117c5577949438e1061b6894dfcbe7133 (patch) | |
tree | 376bdc8010a74833f640ca96ec9d53bbe26c5cb4 /src/client/linux/microdump_writer | |
parent | Don't define |r_debug| and |link_map| on Android releases 21 and later (diff) | |
download | breakpad-5adeef6117c5577949438e1061b6894dfcbe7133.tar.xz |
Add process type to MicroDumpExtraInfo
BUG=616774
R=primiano@chromium.org, torne@chromium.org
Review URL: https://codereview.chromium.org/2087413002 .
Diffstat (limited to 'src/client/linux/microdump_writer')
-rw-r--r-- | src/client/linux/microdump_writer/microdump_writer.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/linux/microdump_writer/microdump_writer.cc b/src/client/linux/microdump_writer/microdump_writer.cc index 26f7250f..6f5b4355 100644 --- a/src/client/linux/microdump_writer/microdump_writer.cc +++ b/src/client/linux/microdump_writer/microdump_writer.cc @@ -164,6 +164,7 @@ class MicrodumpWriter { LogLine("-----BEGIN BREAKPAD MICRODUMP-----"); DumpProductInformation(); DumpOSInformation(); + DumpProcessType(); DumpGPUInformation(); #if !defined(__LP64__) DumpFreeSpace(); @@ -233,6 +234,16 @@ class MicrodumpWriter { LogCommitLine(); } + void DumpProcessType() { + LogAppend("P "); + if (microdump_extra_info_.process_type) { + LogAppend(microdump_extra_info_.process_type); + } else { + LogAppend("UNKNOWN"); + } + LogCommitLine(); + } + void DumpOSInformation() { const uint8_t n_cpus = static_cast<uint8_t>(sysconf(_SC_NPROCESSORS_CONF)); |