I am using gdb to debug a fortran90 program, myprog.f90, that uses some modules, say mod1 and mod2.
I launch gdb…
$ gdb ./program
and try to set a line break…
(gdb) break 80
but I receive the error “No line 80 in file ‘mod1.f90′”.
So although I am trying to set a line break in myprog.f90, it’s trying to set the line break in the first module of the program mod1.
How do I break a line in and step through myprog.f90?
Thank you.
Do this:
See also documentation on setting breakpoints, and on location specification.