I have a Fortran program compiled with gfortran
with the -fcheck=bounds
compiler option. This causes the code to report "array out of bounds" errors and subsequently exit.
I would like to debug my program using gdb
to find the cause of the error. Unfortunately in gdb
the code will still just exit on an out of bounds error.
Is there a way to tell gdb
to stop execution when an out of bounds error occurs?