05cc2f37a3
Add option to raise a SIGTRAP on fatal error, making the debugger break instead of exiting. Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
13 lines
168 B
C
13 lines
168 B
C
/*
|
|
* Copyright (c) 2023 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <signal.h>
|
|
|
|
void nsi_raise_sigtrap(void)
|
|
{
|
|
raise(SIGTRAP);
|
|
}
|