2018-01-19 03:59:58 +08:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2023-05-04 22:06:35 +02:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
2018-01-19 03:59:58 +08:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
|
|
#ifndef mozilla_mozalloc_abort_h
|
|
|
|
|
#define mozilla_mozalloc_abort_h
|
|
|
|
|
|
|
|
|
|
#include "mozilla/Attributes.h"
|
|
|
|
|
#include "mozilla/Types.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Terminate this process in such a way that breakpad is triggered, if
|
|
|
|
|
* at all possible.
|
|
|
|
|
*
|
|
|
|
|
* Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
|
|
|
|
|
* use that annotation there.
|
|
|
|
|
*/
|
2026-04-19 19:28:17 -07:00
|
|
|
#define MOZALLOC_ABORT_API MFBT_API
|
2026-04-18 13:06:15 -07:00
|
|
|
|
|
|
|
|
MOZALLOC_ABORT_API
|
2018-01-19 03:59:58 +08:00
|
|
|
#if !defined(__arm__)
|
|
|
|
|
MOZ_NORETURN
|
|
|
|
|
#endif
|
|
|
|
|
void mozalloc_abort(const char* const msg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* ifndef mozilla_mozalloc_abort_h */
|