AnsweredAssumed Answered

Stack trace/dump UserExceptionHandler

Question asked by tcmichals on Apr 28, 2014
Latest reply on May 5, 2014 by tcmichals

Is there a way to dump a stack trace from the KernelPantic that is called  UserExecptionHandler?

The goal is to be able to do some type of trace back when running in release without a JTAG USB emulator.  Also, is it possible to dump the internal trace buffer?  

 

For example:

 

UserExceptionHandler:

  R2 = SEQSTAT;
    R2 <<= 26;
    R2 >>= 26;

 

    R1.H = HI(_VDK_kUnhandledExceptionError_);
    R1.L = LO(_VDK_kUnhandledExceptionError_);
    R0 = _VDK_kUnhandledException_;
    CALL.X _ExceptionPanic;
    RTX;

UserExceptionHandler.end:

 

void KernelPanic(VDK::PanicCode inPanicCode, VDK::SystemError inError, const int inValue) 

{

<-- dump out a stack trace, to the serial port  and maybe trace buffer dump? 

}

Outcomes