mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
sandbox: Add support for calling abort()
This function is useful to signal that the application needs to exit immediate. It can be caught with a debugger (e.g. gdb). Add a stub for it so that it can be called from within sandbox when an internal error occurs. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
613185023f
commit
fe938fb0df
@@ -652,3 +652,8 @@ void os_longjmp(ulong *jmp, int ret)
|
|||||||
{
|
{
|
||||||
longjmp((struct __jmp_buf_tag *)jmp, ret);
|
longjmp((struct __jmp_buf_tag *)jmp, ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void os_abort(void)
|
||||||
|
{
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
@@ -351,4 +351,8 @@ int os_setjmp(ulong *jmp, int size);
|
|||||||
*/
|
*/
|
||||||
void os_longjmp(ulong *jmp, int ret);
|
void os_longjmp(ulong *jmp, int ret);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* os_abort() - Raise SIGABRT to exit sandbox (e.g. to debugger)
|
||||||
|
*/
|
||||||
|
void os_abort(void);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user