summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-06-21 12:49:44 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-06-23 13:27:39 (GMT)
commit7f0fe603be200c09c74cf9cc295a972f3c3dbdfd (patch)
tree6541fe19808b03a6f0d719e2a25cbf1cc1fa6a11 /3rdParty/Breakpad/src/client/windows/handler/exception_handler.h
parentfbc02ab3b96fb46231458d2e283cfdd191185fb5 (diff)
downloadswift-7f0fe603be200c09c74cf9cc295a972f3c3dbdfd.zip
swift-7f0fe603be200c09c74cf9cc295a972f3c3dbdfd.tar.bz2
Change minidump filename format to include version and date
The new format is VERSION_DATE_UUID.dmp. Included the diff for the Breakpad modification. Test-Information: Tested by adding crashing code and verified the filename of the created minidump file on Windows 8 with VS 2013. Change-Id: I963e7913fadf4787742439da590e12e121ef3435
Diffstat (limited to '3rdParty/Breakpad/src/client/windows/handler/exception_handler.h')
-rw-r--r--3rdParty/Breakpad/src/client/windows/handler/exception_handler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/3rdParty/Breakpad/src/client/windows/handler/exception_handler.h b/3rdParty/Breakpad/src/client/windows/handler/exception_handler.h
index 09f5177..6f59348 100644
--- a/3rdParty/Breakpad/src/client/windows/handler/exception_handler.h
+++ b/3rdParty/Breakpad/src/client/windows/handler/exception_handler.h
@@ -188,6 +188,12 @@ class ExceptionHandler {
UpdateNextID(); // Necessary to put dump_path_ in next_minidump_path_.
}
+ void set_dump_filename_prefix(const wstring& dump_prefix) {
+ dump_filename_prefix_ = dump_prefix;
+ dump_filename_prefix_c_ = dump_filename_prefix_.c_str();
+ UpdateNextID();
+ }
+
// Requests that a previously reported crash be uploaded.
bool RequestUpload(DWORD crash_id);
@@ -313,6 +319,9 @@ class ExceptionHandler {
// argument to the constructor, or set_dump_path.
wstring dump_path_;
+ // The filename prefix used for the minidump files.
+ wstring dump_filename_prefix_;
+
// The basename of the next minidump to be written, without the extension.
wstring next_minidump_id_;
@@ -327,6 +336,7 @@ class ExceptionHandler {
// should be equivalent to the lifetimes of the associated wstring, provided
// that the wstrings are not altered.
const wchar_t* dump_path_c_;
+ const wchar_t* dump_filename_prefix_c_;
const wchar_t* next_minidump_id_c_;
const wchar_t* next_minidump_path_c_;