From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24144 invoked by alias); 3 Oct 2011 16:39:55 -0000 Received: (qmail 24128 invoked by uid 22791); 3 Oct 2011 16:39:54 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Oct 2011 16:39:36 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LSI00A000UR6P00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Mon, 03 Oct 2011 18:38:27 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.229.231]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSI009XB0W2OU80@a-mtaout22.012.net.il>; Mon, 03 Oct 2011 18:38:27 +0200 (IST) Date: Mon, 03 Oct 2011 16:39:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Collecting strings at tracepoints In-reply-to: <4E89D9D9.6050703@mentor.com> To: Stan Shebs Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83fwjarpx8.fsf@gnu.org> References: <4E89D9D9.6050703@mentor.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00024.txt.bz2 > Date: Mon, 03 Oct 2011 08:50:49 -0700 > From: Stan Shebs > > By default, when you ask to collect a char * at a tracepoint, only the > numeric address is collected, which is a problem if you really want the > string that the char * is pointing to. This patch adds a /s option to > the collect action that will dereference character pointers and collect > the bytes up to the first zero, just as the familiar print command > does. You can optionally add a limit to the collect, so for instance > "collect/s80 mystring" collects a maximum of 80 characters. Thanks, the documentation part is approved. Is this NEWS-worthy, btw?