0

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...

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

André Puel
  • 8,741
  • 9
  • 52
  • 83

1 Answers1

1

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.

Marco van de Voort
  • 25,628
  • 5
  • 56
  • 89