From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13142 invoked by alias); 16 Jun 2010 18:27:49 -0000 Received: (qmail 13128 invoked by uid 22791); 16 Jun 2010 18:27:48 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Jun 2010 18:27:34 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5GIRMAE023339 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Jun 2010 14:27:22 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5GIRLQ1001730; Wed, 16 Jun 2010 14:27:21 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o5GIRKD4023893; Wed, 16 Jun 2010 14:27:20 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 2D2783782E3; Wed, 16 Jun 2010 12:27:19 -0600 (MDT) From: Tom Tromey To: Stan Shebs Cc: Doug Evans , "gdb\@sourceware.org" Subject: Re: [RFC] Collecting strings at tracepoints References: <4C0983C3.6000604@codesourcery.com> <4C18163D.5090802@codesourcery.com> <4C191555.5060404@codesourcery.com> Reply-To: tromey@redhat.com Date: Wed, 16 Jun 2010 18:27:00 -0000 In-Reply-To: <4C191555.5060404@codesourcery.com> (Stan Shebs's message of "Wed, 16 Jun 2010 11:17:57 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-06/txt/msg00063.txt.bz2 >>>>> "Stan" == Stan Shebs writes: Stan> That's right. Partly because the expedient for string collection Stan> right now is "*str@40", so it extends a known behavior, and partly Stan> because '@' is about the only character that isn't already claimed by Stan> language and/or GDB command syntax. Not to bikeshed this too much, but another idea would be to extend the current syntax: *str @ -1 /* find the \0 */ *str @ { -1, 80 } /* find the \0, or stop at 80 */ Tom