From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29715 invoked by alias); 26 Jun 2007 01:25:13 -0000 Received: (qmail 29702 invoked by uid 22791); 26 Jun 2007 01:25:13 -0000 X-Spam-Check-By: sourceware.org Received: from shell4.bayarea.net (HELO shell4.bayarea.net) (209.128.82.1) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 26 Jun 2007 01:25:11 +0000 Received: (qmail 31487 invoked from network); 25 Jun 2007 18:25:09 -0700 Received: from 209-128-106-254.bayarea.net (HELO ?192.168.20.7?) (209.128.106.254) by shell4.bayarea.net with SMTP; 25 Jun 2007 18:25:09 -0700 Message-ID: <46806AF2.1000800@eagercon.com> Date: Tue, 26 Jun 2007 01:25:00 -0000 From: Michael Eager User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: matze999@gmx.net CC: Michael Snyder , gdb@sourceware.org Subject: Re: basic gdb usage question References: <467D4AE3.7020505@eagercon.com> <200706251708.34817.matze999@gmx.net> <655C3D4066B7954481633935A40BB36F041415@ussunex02.svl.access-company.com> <200706251736.22816.matze999@gmx.net> In-Reply-To: <200706251736.22816.matze999@gmx.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 2007-06/txt/msg00288.txt.bz2 Matt Funk wrote: > thanks for the reply first of all, > > well, with respect to the local scope this is what i thought i tried. In > particular this is what i did: > > break myfile_1.cpp:700 if (myfile_1.cpp:mylocalvar_1==1 && > myfile_2.cpp:myothervar==2) > > but gdb gave me: > "Junk at end of arguments." > So i figure something is wrong with my syntax. Yep. The expression is a simple C expression, evaluated in the scope where the breakpoint is placed. Leave off the myfile_1.cpp and myfile_2.cpp and the colons. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077