aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/microdump_writer
diff options
context:
space:
mode:
authorPrimiano Tucci <primiano@chromium.org>2016-07-19 17:44:10 +0100
committerPrimiano Tucci <primiano@chromium.org>2016-07-19 17:44:10 +0100
commit5adeef6117c5577949438e1061b6894dfcbe7133 (patch)
tree376bdc8010a74833f640ca96ec9d53bbe26c5cb4 /src/client/linux/microdump_writer
parentDon't define |r_debug| and |link_map| on Android releases 21 and later (diff)
downloadbreakpad-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.cc11
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));