Or in another words: How do you throw a kernel fault through to a C++ exception?
Because C++ is able to throw most of the programming errors as an exception. But why not also the divide-by-zero fault? The segmentation fault? And the other kernel faults?
I understand how those faults are raised in kernel and handled by kernel. I also understand how an exception is created and handled in C++ with aid from the compiler. How do you see the dots between the two can be connected? Are there any solid work with this regard?
Thanks in advance for any ideas or hints.
Edit in response to possible-duplicate flag: As a similar question How to catch segmentation already asked about the capture
part of a segv, the recovery
is still missing. Moreover I'm looking for a systematic approach to recover from all kinds of kernel exceptions, not just the segv.
Edit again: I have explained why this question is different than the other question. Still 5 people voted to close.