From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21060 invoked by alias); 12 May 2006 16:09:33 -0000 Received: (qmail 21006 invoked by uid 22791); 12 May 2006 16:09:32 -0000 X-Spam-Check-By: sourceware.org Received: from e4.ny.us.ibm.com (HELO e4.ny.us.ibm.com) (32.97.182.144) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 May 2006 16:09:26 +0000 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e4.ny.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k4CG9NJ7024539 for ; Fri, 12 May 2006 12:09:23 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k4CG9NvY229738 for ; Fri, 12 May 2006 12:09:23 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11/8.13.3) with ESMTP id k4CG9MdL020179 for ; Fri, 12 May 2006 12:09:22 -0400 Received: from dufur.beaverton.ibm.com (dufur.beaverton.ibm.com [9.47.22.20]) by d01av02.pok.ibm.com (8.12.11/8.12.11) with ESMTP id k4CG9LCA019972; Fri, 12 May 2006 12:09:21 -0400 Subject: Re: conditional breakpoint with (char* ) string condition From: PAUL GILLIAM Reply-To: pgilliam@us.ibm.com To: Daniel Jacobowitz Cc: Eli Zaretskii , Fabio De Bona , gdb@sources.redhat.com In-Reply-To: <20060512135420.GA6349@nevyn.them.org> References: <44645774.8060503@gmx.net> <44645774.8060503@gmx.net> <20060512124527.GB3460@nevyn.them.org> <20060512135420.GA6349@nevyn.them.org> Content-Type: text/plain Date: Fri, 12 May 2006 18:00:00 -0000 Message-Id: <1147446332.3672.51.camel@dufur.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 (2.2.2-5) Content-Transfer-Encoding: 7bit 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/msg00167.txt.bz2 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? -=# Paul #=-