Usefulness of a panic() function?

Hello,

I was wondering, if a panic() function (like the one present in Unix systems, see http://en.wikipedia.org/wiki/Kernel_panic) wouldn't be an useful addition for low-level system developers: the idea is to freeze the system in the state that has provoked an unrecoverable error, with an error message.

It may be helpful when debugging the OS kernel, or (very) low-level code--like hardware drivers, or network MAC layer... Do you agree?

Hi K�vin,