From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20568 invoked by alias); 15 May 2006 19:18:15 -0000 Received: (qmail 20560 invoked by uid 22791); 15 May 2006 19:18:15 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 15 May 2006 19:18:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ffia0-0001id-Fn; Mon, 15 May 2006 15:18:08 -0400 Date: Mon, 15 May 2006 19:51:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: pgilliam@us.ibm.com, Eli Zaretskii , Fabio De Bona , gdb@sources.redhat.com Subject: Re: conditional breakpoint with (char* ) string condition Message-ID: <20060515191808.GB5918@nevyn.them.org> Mail-Followup-To: Jim Blandy , pgilliam@us.ibm.com, Eli Zaretskii , Fabio De Bona , gdb@sources.redhat.com 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> <20060515145842.GB28447@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060403 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/msg00216.txt.bz2 On Mon, May 15, 2006 at 11:50:30AM -0700, Jim Blandy wrote: > > Daniel Jacobowitz writes: > > On Fri, May 12, 2006 at 11:00:16AM -0700, Jim Blandy wrote: > >> Should we establish a convention of starting GDB-provided convenience > >> variable names with _, to avoid conflicting with script variables? > >> Thus, $_strcmp and $_strlen? > > > > Or should they have a $gdb_ prefix? Or $_gdb_? > > Or $this_is_a_gdb_variable_20060515_GNU_prvt_ISO_IEC_9989:1999_? :) > (There must be some way to get a UUID and 'http' in there...) Hey, I was serious about $gdb_... > Hey, maybe we could just take over some prefix like $- that doesn't > conflict with the user and register namespace at all. Nice try :-) (gdb) p 2 $1 = 2 (gdb) p $-1 $2 = 1 -- Daniel Jacobowitz CodeSourcery