2010-04-21 00:12:02 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
* vim: sw=4 ts=4 et :
|
|
|
|
*/
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* 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/. */
|
2010-04-21 00:12:02 +04:00
|
|
|
|
|
|
|
#ifndef mozilla_mozalloc_abort_h
|
|
|
|
#define mozilla_mozalloc_abort_h
|
|
|
|
|
2011-12-18 01:45:29 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2015-02-27 08:00:15 +03:00
|
|
|
#include "mozilla/Types.h"
|
2010-04-21 00:12:02 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Terminate this process in such a way that breakpad is triggered, if
|
|
|
|
* at all possible.
|
2013-01-11 21:29:02 +04:00
|
|
|
*
|
|
|
|
* Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
|
|
|
|
* use that annotation there.
|
2010-04-21 00:12:02 +04:00
|
|
|
*/
|
2015-02-27 08:00:15 +03:00
|
|
|
MFBT_API
|
2013-01-11 21:29:02 +04:00
|
|
|
#if !defined(__arm__)
|
|
|
|
MOZ_NORETURN
|
|
|
|
#endif
|
|
|
|
void mozalloc_abort(const char* const msg);
|
2010-04-21 00:12:02 +04:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* ifndef mozilla_mozalloc_abort_h */
|