From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21236 invoked by alias); 26 Sep 2002 06:40:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21227 invoked from network); 26 Sep 2002 06:40:10 -0000 Received: from unknown (HELO satan.diablo.localnet) (64.164.47.8) by sources.redhat.com with SMTP; 26 Sep 2002 06:40:10 -0000 Received: from p by satan.diablo.localnet with local (Exim 3.35 #1 (Debian)) id 17uSJi-0006dJ-00; Wed, 25 Sep 2002 23:40:06 -0700 Date: Wed, 25 Sep 2002 23:40:00 -0000 To: Eli Zaretskii Cc: Gdb Mailing List Subject: Re: rules for conditional breakpoints Message-ID: <20020926064006.GA25116@dirac.org> References: <20020926051031.GA24523@dirac.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Peter Jay Salzman X-SW-Source: 2002-09/txt/msg00426.txt.bz2 hi eli, unfortunately, the user manual doesn't really say much about this. the relevent section is 5.1.6 (break conditions) which references section 8.1 (expressions). in the first paragraph os 5.1.6: A condition is just a Boolean expression in your programming language (see section 8.1 Expressions). but this is where my confusion is coming from. here is a boolean expression: break main if cos(0.0) == 1.0 the condition "cos(0.0) == 1.0" is a boolean expression. it's either true or false. yet it's not valid in a conditional breakpoint. looking further down the section 5.1.6, it mentions that user defined functions are allowed in conditions. looking at section 8.1, it has something relevent: Any kind of constant, variable or operator defined by the programming language you are using is valid in an expression in GDB. This includes conditional expressions, function calls, casts and string constants. It unfortunately does no include symbols defined by preprocessor #define commands. this is kind of ambiguous whether "the programming language" includes glibc or not. if it doesn't, then i'm unsure what "functions" this paragraph is talking about. if it does, then it directly conflicts with my "cos(0.0) == 1.0" as an example of something that should work but doesn't. either way, i can appreciate the fact that the user's manual doesn't have examples. that's what books are for. but it seems to me that it leaves some details in an ambiguous state. this email was longer than i intended. thanks for reading down to here. :) peter begin Eli Zaretskii > > On Wed, 25 Sep 2002, Peter Jay Salzman wrote: > > > what exactly are the rules for conditional breakpoints? > > If that's not clear from reading the manual, I think we should fix the > manual. -- Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D