aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/microdump_writer
diff options
context:
space:
mode:
authorLei Zhang <thestig@google.com>2018-04-02 22:29:08 -0700
committerLei Zhang <thestig@chromium.org>2018-04-03 16:35:14 +0000
commitadcc90ddb8c9ebc13a4312116ad92d8628b691c3 (patch)
treedbbb720156554b0078598fcd612718b01d9eb912 /src/client/linux/microdump_writer
parentAdd missing header for free function (diff)
downloadbreakpad-adcc90ddb8c9ebc13a4312116ad92d8628b691c3.tar.xz
Linux: Write out si_code for SIGBUS exceptions.
Store the information in the exception record's exception_information field. Change-Id: Ie215cae2f070fdab63c3d05cc1bc4fb4b7b095fa Reviewed-on: https://chromium-review.googlesource.com/990799 Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/client/linux/microdump_writer')
-rw-r--r--src/client/linux/microdump_writer/microdump_writer.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/linux/microdump_writer/microdump_writer.cc b/src/client/linux/microdump_writer/microdump_writer.cc
index 180873f4..fa3c1713 100644
--- a/src/client/linux/microdump_writer/microdump_writer.cc
+++ b/src/client/linux/microdump_writer/microdump_writer.cc
@@ -648,9 +648,7 @@ bool WriteMicrodump(pid_t crashing_process,
if (blob_size != sizeof(ExceptionHandler::CrashContext))
return false;
context = reinterpret_cast<const ExceptionHandler::CrashContext*>(blob);
- dumper.set_crash_address(
- reinterpret_cast<uintptr_t>(context->siginfo.si_addr));
- dumper.set_crash_signal(context->siginfo.si_signo);
+ dumper.SetCrashInfoFromSigInfo(context->siginfo);
dumper.set_crash_thread(context->tid);
}
MicrodumpWriter writer(context, mappings,