开发者

Catching FreePascal Exception in GDB

开发者 https://www.devze.com 2023-03-15 06:29 出处:网络
I have a huge pascal code compiled with fpc. I am getting random \"EInOutError\" exception and I am trying to debug it using gdb.

I have a huge pascal code compiled with fpc. I am getting random "EInOutError" exception and I am trying to debug it using gdb.

I already tried break fpc_raiseexception, catch throw, catch exception, catch catch. Nothign seems to work..开发者_StackOverflow.

How can I break (to have a backtrace at gdb) when a exception is raisen?


A breakpoint on fpc_raiseexception should be a good thing.

Don't use gdb "catch" functionality relating to exceptions. Those are for GCC C++ exceptions, not for FPC.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号