Bug 910248 - Add a crash report annotation indicating when the signal handler can't get the crash address. r=ted

This commit is contained in:
Mike Hommey 2013-08-30 11:15:08 +09:00
Родитель eb14682f30
Коммит 8b0794147b
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -240,6 +240,10 @@ static char **gQtOnlyArgv;
#endif
#include "BinaryPath.h"
#ifdef MOZ_LINKER
extern "C" MFBT_API bool IsSignalHandlingBroken();
#endif
namespace mozilla {
int (*RunGTest)() = 0;
}
@ -2997,6 +3001,11 @@ XREMain::XRE_mainInit(bool* aExitFlag)
nsDependentCString releaseChannel(NS_STRINGIFY(MOZ_UPDATE_CHANNEL));
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ReleaseChannel"),
releaseChannel);
#ifdef MOZ_LINKER
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("CrashAddressLikelyWrong"),
IsSignalHandlingBroken() ? NS_LITERAL_CSTRING("1")
: NS_LITERAL_CSTRING("0"));
#endif
CrashReporter::SetRestartArgs(gArgc, gArgv);
// annotate other data (user id etc)