From 97063d76381cf3e594238cb2247b54dc2ee93647 Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Wed, 25 Jul 2007 01:06:54 +0000 Subject: [PATCH] Fix the path to launch the crashreporter on mac, which luser broke a couple days ago. Early checkin from bug 358082 git-svn-id: svn://10.0.0.236/trunk@230866 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/crashreporter/nsExceptionHandler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/toolkit/crashreporter/nsExceptionHandler.cpp b/mozilla/toolkit/crashreporter/nsExceptionHandler.cpp index b0d34b58f7a..1a294ddfe97 100755 --- a/mozilla/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/mozilla/toolkit/crashreporter/nsExceptionHandler.cpp @@ -131,6 +131,8 @@ bool MinidumpCallback(const XP_CHAR* dump_path, #endif bool succeeded) { + printf("Wrote minidump ID %s\n", minidump_id); + XP_CHAR minidumpPath[XP_PATH_MAX]; int size = XP_PATH_MAX; XP_CHAR* p = Concat(minidumpPath, dump_path, &size); @@ -249,6 +251,12 @@ nsresult SetExceptionHandler(nsILocalFile* aXREDirectory, rv = aXREDirectory->Clone(getter_AddRefs(exePath)); NS_ENSURE_SUCCESS(rv, rv); +#if defined(XP_MACOSX) + exePath->Append(NS_LITERAL_STRING("crashreporter.app")); + exePath->Append(NS_LITERAL_STRING("Contents")); + exePath->Append(NS_LITERAL_STRING("MacOS")); +#endif + exePath->Append(NS_LITERAL_STRING(CRASH_REPORTER_FILENAME)); nsString crashReporterPath_temp;