From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30139 invoked by alias); 2 Sep 2009 15:10:40 -0000 Received: (qmail 30131 invoked by uid 22791); 2 Sep 2009 15:10:39 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_41,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Sep 2009 15:10:30 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n82FAQKV020775; Wed, 2 Sep 2009 11:10:26 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n82FAPpI001699; Wed, 2 Sep 2009 11:10:25 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n82FAOCX010831; Wed, 2 Sep 2009 11:10:24 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id D7CD6378242; Wed, 2 Sep 2009 09:10:23 -0600 (MDT) From: Tom Tromey To: David Froger Cc: gdb@sourceware.org Subject: Re: problem with conditional breakpoints References: <9309543c0909020009r7a0831afj23fa2ad42871421c@mail.gmail.com> Reply-To: tromey@redhat.com Date: Wed, 02 Sep 2009 15:10:00 -0000 In-Reply-To: <9309543c0909020009r7a0831afj23fa2ad42871421c@mail.gmail.com> (David Froger's message of "Wed, 2 Sep 2009 09:09:27 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00017.txt.bz2 >>>>> "David" == 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==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