Bug 1718819 - Export gBreakpadEnabled symbol to fix minidump suppression mechanism. r=gsvelto

Differential Revision: https://phabricator.services.mozilla.com/D119467
This commit is contained in:
Steve Fink 2021-07-10 14:17:31 +00:00
Родитель 154e460466
Коммит 09c0d66bcc
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -8,7 +8,9 @@ using google_breakpad::ExceptionHandler;
static ExceptionHandler* gExceptionHandler = nullptr;
bool gBreakpadInjectorEnabled = true;
// Flag saying whether to generate a minidump. Can be (probably temporarily) set
// to false when a crash is expected.
bool __attribute__((visibility("default"))) gBreakpadInjectorEnabled = true;
bool TestEnabled(void* /* context */) { return gBreakpadInjectorEnabled; }