From: Cheng Zhao Date: Sun, 24 Nov 2013 15:42:54 +0000 (+0800) Subject: mac: Store crash dumps under /tmp/ProductName Crashes/. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b737e602b7db35bde45ec33ff31466be0723e582;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git mac: Store crash dumps under /tmp/ProductName Crashes/. If we put them under ~/Library/ then we need to clean them, which makes things more complicated. --- diff --git a/common/crash_reporter/crash_reporter_mac.mm b/common/crash_reporter/crash_reporter_mac.mm index dac77e7..e43b7bb 100644 --- a/common/crash_reporter/crash_reporter_mac.mm +++ b/common/crash_reporter/crash_reporter_mac.mm @@ -49,6 +49,11 @@ void CrashReporterMac::InitBreakpad(const std::string& product_name, // Report all crashes (important for testing the crash reporter). [parameters setValue:@"0" forKey:@BREAKPAD_REPORT_INTERVAL]; + // Put dump files under "/tmp/ProductName Crashes". + std::string dump_dir = "/tmp/" + product_name + " Crashes"; + [parameters setValue:base::SysUTF8ToNSString(dump_dir) + forKey:@BREAKPAD_DUMP_DIRECTORY]; + breakpad_ = BreakpadCreate(parameters); for (StringMap::const_iterator iter = upload_parameters_.begin();