aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/handler/exception_handler.cc
diff options
context:
space:
mode:
authorprimiano@chromium.org <primiano@chromium.org>2015-05-15 08:43:01 +0000
committerprimiano@chromium.org <primiano@chromium.org>2015-05-15 08:43:01 +0000
commit90cbb27528a69b9fb19d9f8a01f8fabc16e4a687 (patch)
treecde355f082391d9ba0b76d3cb89e2beb9c782576 /src/client/linux/handler/exception_handler.cc
parentSwitch code review server to codereview.chromium.org. (diff)
downloadbreakpad-90cbb27528a69b9fb19d9f8a01f8fabc16e4a687.tar.xz
[microdump] Add build fingerprint and product info metadata.
This is to add build fingerprint and product name/version to microdumps. Conversely to what happens in the case of minidumps with MIME fields, due to the nature of minidumps, extra metadata cannot be reliably injected after the dump is completed. This CL adds the plumbing to inject two optional fields plus the corresponding tests. BUG=chromium:410294 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1125153008 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1456 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/linux/handler/exception_handler.cc')
-rw-r--r--src/client/linux/handler/exception_handler.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc
index e515a73b..dca7e7f0 100644
--- a/src/client/linux/handler/exception_handler.cc
+++ b/src/client/linux/handler/exception_handler.cc
@@ -570,10 +570,13 @@ void ExceptionHandler::WaitForContinueSignal() {
bool ExceptionHandler::DoDump(pid_t crashing_process, const void* context,
size_t context_size) {
if (minidump_descriptor_.IsMicrodumpOnConsole()) {
- return google_breakpad::WriteMicrodump(crashing_process,
- context,
- context_size,
- mapping_list_);
+ return google_breakpad::WriteMicrodump(
+ crashing_process,
+ context,
+ context_size,
+ mapping_list_,
+ minidump_descriptor_.microdump_build_fingerprint(),
+ minidump_descriptor_.microdump_product_info());
}
if (minidump_descriptor_.IsFD()) {
return google_breakpad::WriteMinidump(minidump_descriptor_.fd(),