problem with conditional breakpoints

Tom Tromey tromey@redhat.com
Wed Sep 2 15:10:00 GMT 2009


>>>>> "David" == David Froger <david.froger@gmail.com> writes:

David> 3. It doesn't work:
David> $ gfortran -g -o main.x main.f90
David> $ gdb ./main.x
David> (gdb) b addmat
David> (gdb) run
David> (gdb) b 55 if i==2 && j==2
David> A syntax error in expression, near `=2 && j==2'.

At this point the current language is fortran, so you need to use
fortran syntax.  Try "show language" at various points to see what is
going on.

Tom



More information about the Gdb mailing list