开发者

Catching FreePascal Exception in 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜