The value printed by assert() cannot always be trusted to be correct, as it relies on the stack / stack pointer not being corrupt. The CPU register always points to the faulting instruction so print it out in the exception handler.
The value printed by assert() cannot always be trusted to be correct, as it relies on the stack / stack pointer not being corrupt. The CPU register always points to the faulting instruction so print it out in the exception handler.