This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: problem with conditional breakpoints
Tom,
Thank you!! So the good command is:
(gdb) b 55 if ((i.eq.2).and.(j.eq.2))
David
2009/9/2 Tom Tromey <tromey@redhat.com>:
>>>>>> "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
>