From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32215 invoked by alias); 12 May 2006 18:00:20 -0000 Received: (qmail 32206 invoked by uid 22791); 12 May 2006 18:00:20 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 May 2006 18:00:19 +0000 Received: (qmail 4695 invoked from network); 12 May 2006 18:00:17 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 12 May 2006 18:00:17 -0000 To: pgilliam@us.ibm.com Cc: Daniel Jacobowitz , Eli Zaretskii , Fabio De Bona , gdb@sources.redhat.com Subject: Re: conditional breakpoint with (char* ) string condition References: <44645774.8060503@gmx.net> <44645774.8060503@gmx.net> <20060512124527.GB3460@nevyn.them.org> <20060512135420.GA6349@nevyn.them.org> <1147446332.3672.51.camel@dufur.beaverton.ibm.com> From: Jim Blandy Date: Fri, 12 May 2006 18:59:00 -0000 In-Reply-To: <1147446332.3672.51.camel@dufur.beaverton.ibm.com> (PAUL GILLIAM's message of "Fri, 12 May 2006 08:05:32 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00169.txt.bz2 PAUL GILLIAM writes: > On Fri, 2006-05-12 at 09:54 -0400, Daniel Jacobowitz wrote: >> On Fri, May 12, 2006 at 04:49:49PM +0300, Eli Zaretskii wrote: >> > > Date: Fri, 12 May 2006 08:45:27 -0400 >> > > From: Daniel Jacobowitz >> > > Cc: gdb@sources.redhat.com >> > > >> > > I wonder. Should we add some common builtin functions to GDB? >> > > >> > > b gui/R.cpp:190 if $gdb_strcmp (cmd, "train") >> > >> > It would be nice, I think. `streq' might be a better name, though. >> >> Well, I'd rather have strcmp, but I agree that I botched it - I was >> going for something with the same semantics as C strcmp :-) >> > > IMHO, this is something that has been 'missing' from GDB from day 1. > Building in some common functions into GDB would be a big win. > > How about strlen as well? I'm definitely in favor of $strcmp and $strlen. Should we establish a convention of starting GDB-provided convenience variable names with _, to avoid conflicting with script variables? Thus, $_strcmp and $_strlen?