3 ms·
When you install a mach exception handler you can get the port of the previous exception handler, which you can use to forward the messages your newly installed
by lgg 7y ago
When you install a mach exception handler you can get the port of the previous exception handler, which you can use to forward the messages your newly installed exception handler receives. Of course (as with all raw mach APIs) it is poorly documented and error prone.
- saagarjha 7y agoInterestingly, it seems like Breakpad does a task_get/set_exception_ports dance instead of using task_swap_exception_ports: https://chromium.googlesource.com/breakpad/breakpad/+/refs/heads/master/src/client/mac/handler/exception_handler.cc#675 https://chromium.googlesource.com/breakpad/breakpad/+/refs/h.... Doesn't this break if someone registers a handler between the two lines?