AnsweredAssumed Answered

Debug of program exit

Question asked by Ole Asbjorn Fadum on Jan 16, 2015
Latest reply on Feb 9, 2015 by James Vasil

In my world I don't use exit() at all, but sometimes a nasty error could happen inside a library func

which calls exit(). In the comp.c this function is implemented as this:

 

void _exit(int status)

{

// disable all interrupts, run infinite loop

    __asm("cpsid i");

    while(1);

}

 

What would be much nicer is if the sw could just enter the debugger. Do I have to patch the source, or is there a

non intrusive way of do this?

Outcomes