mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-07 06:58:20 +01:00
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>
This commit is contained in:
parent
1b704857f1
commit
38cbbfed71
4 changed files with 111 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue