diff options
author | primiano@chromium.org <primiano@chromium.org> | 2015-05-15 08:43:01 +0000 |
---|---|---|
committer | primiano@chromium.org <primiano@chromium.org> | 2015-05-15 08:43:01 +0000 |
commit | 90cbb27528a69b9fb19d9f8a01f8fabc16e4a687 (patch) | |
tree | cde355f082391d9ba0b76d3cb89e2beb9c782576 /src/client/linux/microdump_writer/microdump_writer.h | |
parent | Switch code review server to codereview.chromium.org. (diff) | |
download | breakpad-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/microdump_writer/microdump_writer.h')
-rw-r--r-- | src/client/linux/microdump_writer/microdump_writer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/linux/microdump_writer/microdump_writer.h b/src/client/linux/microdump_writer/microdump_writer.h index 3c19f3d0..e2185583 100644 --- a/src/client/linux/microdump_writer/microdump_writer.h +++ b/src/client/linux/microdump_writer/microdump_writer.h @@ -46,12 +46,18 @@ namespace google_breakpad { // blob: a blob of data from the crashing process. See exception_handler.h // blob_size: the length of |blob| in bytes. // mappings: a list of additional mappings provided by the application. +// build_fingerprint: a (optional) C string which determines the OS +// build fingerprint (e.g., aosp/occam/mako:5.1.1/LMY47W/1234:eng/dev-keys). +// product_info: a (optional) C string which determines the product name and +// version (e.g., WebView:42.0.2311.136). // // Returns true iff successful. bool WriteMicrodump(pid_t crashing_process, const void* blob, size_t blob_size, - const MappingList& mappings); + const MappingList& mappings, + const char* build_fingerprint, + const char* product_info); } // namespace google_breakpad |