X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17a1ebd101f0653e69736416a2a28d0ada423141..239eaa415414c5d978072af89772b12e74309e1d:/src/common/debugrpt.cpp?ds=sidebyside diff --git a/src/common/debugrpt.cpp b/src/common/debugrpt.cpp index 2428d18213..2391849334 100644 --- a/src/common/debugrpt.cpp +++ b/src/common/debugrpt.cpp @@ -80,8 +80,6 @@ protected: bool m_isOk; }; -#endif // wxUSE_STACKWALKER - // ---------------------------------------------------------------------------- // local functions // ---------------------------------------------------------------------------- @@ -116,8 +114,6 @@ HexElement(wxXmlNode *node, const wxChar *name, unsigned long value) #endif // wxUSE_CRASHREPORT -#if wxUSE_STACKWALKER - // ============================================================================ // XmlStackWalker implementation // ============================================================================ @@ -194,10 +190,16 @@ wxDebugReport::wxDebugReport() // of course, this doesn't protect us against malicious users... wxFileName fn; fn.AssignTempFileName(appname); +#if wxUSE_DATETIME m_dir.Printf(_T("%s%c%s_dbgrpt-%lu-%s"), fn.GetPath().c_str(), wxFILE_SEP_PATH, appname.c_str(), wxGetProcessId(), wxDateTime::Now().Format(_T("%Y%m%dT%H%M%S")).c_str()); +#else + m_dir.Printf(_T("%s%c%s_dbgrpt-%lu"), + fn.GetPath().c_str(), wxFILE_SEP_PATH, appname.c_str(), + wxGetProcessId()); +#endif // as we are going to save the process state there use restrictive // permissions