aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/microdump_writer/microdump_writer.cc
diff options
context:
space:
mode:
authorTobias Sargeant <tobiasjs@google.com>2017-08-11 18:11:16 +0100
committerTobias Sargeant <tobiasjs@chromium.org>2017-08-14 09:49:51 +0000
commit38cbbfed71efcb28931b5e4a83e3c0d4661f1548 (patch)
tree7a21f99fee8243fc344e70f0ef5b371849864ebf /src/client/linux/microdump_writer/microdump_writer.cc
parentIncrease maximum number of regions for minidump_stackwalk. (diff)
downloadbreakpad-38cbbfed71efcb28931b5e4a83e3c0d4661f1548.tar.xz
Add crash reason and address to microdumps.
This will allow us to provide the right information for webview renderer crashes. At the moment the crash information for the browser process is captured (from the debuggerd output) instead. BUG=754715 Change-Id: I409546311b6e38fe1cf804097c18d7bb2a015d83 Reviewed-on: https://chromium-review.googlesource.com/612381 Reviewed-by: Robert Sesek <rsesek@chromium.org>
Diffstat (limited to 'src/client/linux/microdump_writer/microdump_writer.cc')
-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 3764eec2..5c3c751d 100644
--- a/src/client/linux/microdump_writer/microdump_writer.cc
+++ b/src/client/linux/microdump_writer/microdump_writer.cc
@@ -181,6 +181,7 @@ class MicrodumpWriter {
DumpProductInformation();
DumpOSInformation();
DumpProcessType();
+ DumpCrashReason();
DumpGPUInformation();
#if !defined(__LP64__)
DumpFreeSpace();
@@ -298,6 +299,16 @@ class MicrodumpWriter {
LogCommitLine();
}
+ void DumpCrashReason() {
+ LogAppend("R ");
+ LogAppend(dumper_->crash_signal());
+ LogAppend(" ");
+ LogAppend(dumper_->GetCrashSignalString());
+ LogAppend(" ");
+ LogAppend(dumper_->crash_address());
+ LogCommitLine();
+ }
+
void DumpOSInformation() {
const uint8_t n_cpus = static_cast<uint8_t>(sysconf(_SC_NPROCESSORS_CONF));