// ---------------------------------------------------------------------------- #include // ---------------------------------------------------------------------------- // Forward declaration void _exit(int code); // ---------------------------------------------------------------------------- // We just enter an infinite loop, to be used as landmark when halting // the debugger. // // It can be redefined in the application, if more functionality // is required. void __attribute__((weak)) _exit(int code __attribute__((unused))) { // TODO: write on trace while (1) ; } // ---------------------------------------------------------------------------- void __attribute__((weak,noreturn)) abort(void) { _exit(1); } // ----------------------------------------------------------------------------