Bug 1547698 - Remove unused and non-public bits from the exception handler r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D31066

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gabriele Svelto 2019-05-15 13:09:31 +00:00
Родитель f7b311b4a9
Коммит ac81f9bda7
3 изменённых файлов: 13 добавлений и 21 удалений

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

@ -205,9 +205,6 @@ bool TakeMinidumpForChild(uint32_t childPid, nsIFile** dump,
return false;
}
void RenameAdditionalHangMinidump(nsIFile* minidump, nsIFile* childMinidump,
const nsACString& name) {}
ThreadId CurrentThreadId() { return -1; }
bool TakeMinidump(nsIFile** aResult, bool aMoveToPending) { return false; }

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

@ -182,8 +182,6 @@ typedef std::string xpstring;
static const XP_CHAR dumpFileExtension[] = XP_TEXT(".dmp");
#endif
static const XP_CHAR childCrashAnnotationBaseName[] =
XP_TEXT("GeckoChildCrash");
static const XP_CHAR extraFileExtension[] = XP_TEXT(".extra");
static const XP_CHAR memoryReportExtension[] = XP_TEXT(".memory.json.gz");
static xpstring* defaultMemoryReportPath = nullptr;
@ -3333,7 +3331,18 @@ bool TakeMinidumpForChild(uint32_t childPid, nsIFile** dump,
// CreatePairedMinidumps() and helpers
//
void RenameAdditionalHangMinidump(nsIFile* minidump, nsIFile* childMinidump,
/*
* Renames the stand alone dump file aDumpFile to:
* |aOwnerDumpFile-aDumpFileProcessType.dmp|
* and moves it into the same directory as aOwnerDumpFile. Does not
* modify aOwnerDumpFile in any way.
*
* @param aDumpFile - the dump file to associate with aOwnerDumpFile.
* @param aOwnerDumpFile - the new owner of aDumpFile.
* @param aDumpFileProcessType - process name associated with aDumpFile.
*/
static void RenameAdditionalHangMinidump(nsIFile* minidump,
nsIFile* childMinidump,
const nsACString& name) {
nsCOMPtr<nsIFile> directory;
childMinidump->GetParent(getter_AddRefs(directory));

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

@ -128,20 +128,6 @@ bool GetExtraFileForMinidump(nsIFile* minidump, nsIFile** extraFile);
bool AppendExtraData(const nsAString& id, const AnnotationTable& data);
bool AppendExtraData(nsIFile* extraFile, const AnnotationTable& data);
/*
* Renames the stand alone dump file aDumpFile to:
* |aOwnerDumpFile-aDumpFileProcessType.dmp|
* and moves it into the same directory as aOwnerDumpFile. Does not
* modify aOwnerDumpFile in any way.
*
* @param aDumpFile - the dump file to associate with aOwnerDumpFile.
* @param aOwnerDumpFile - the new owner of aDumpFile.
* @param aDumpFileProcessType - process name associated with aDumpFile.
*/
void RenameAdditionalHangMinidump(nsIFile* aDumpFile,
const nsIFile* aOwnerDumpFile,
const nsACString& aDumpFileProcessType);
#ifdef XP_WIN
nsresult WriteMinidumpForException(EXCEPTION_POINTERS* aExceptionInfo);
#endif