From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10314 invoked by alias); 2 Sep 2009 15:31:48 -0000 Received: (qmail 10303 invoked by uid 22791); 2 Sep 2009 15:31:45 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_41,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f208.google.com (HELO mail-bw0-f208.google.com) (209.85.218.208) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Sep 2009 15:31:39 +0000 Received: by bwz4 with SMTP id 4so817569bwz.24 for ; Wed, 02 Sep 2009 08:31:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.127.34 with SMTP id e34mr3645200mun.108.1251905496079; Wed, 02 Sep 2009 08:31:36 -0700 (PDT) In-Reply-To: References: <9309543c0909020009r7a0831afj23fa2ad42871421c@mail.gmail.com> Date: Wed, 02 Sep 2009 15:31:00 -0000 Message-ID: <9309543c0909020831g7a760c0fne4936a01830e6bc@mail.gmail.com> Subject: Re: problem with conditional breakpoints From: David Froger To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00021.txt.bz2 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 : >>>>>> "David" =3D=3D David Froger 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=3D=3D2 && j=3D=3D2 > David> A syntax error in expression, near `=3D2 && j=3D=3D2'. > > At this point the current language is fortran, so you need to use > fortran syntax. =A0Try "show language" at various points to see what is > going on. > > Tom >