Converting floating point exceptions into C++ exceptions

前端 未结 5 903
栀梦
栀梦 2021-02-06 08:41

Is it possible to convert floating point exceptions (signals) into C++ exceptions on x86 Linux?

This is for debugging purposes, so nonportability and imperfection is oka

5条回答
  •  庸人自扰
    2021-02-06 09:24

    the gcc option -fnon-call-exceptions might be of some use to you. Couldn't find any documentation on it though so your mileage may vary.

提交回复
热议问题