From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30141 invoked by alias); 7 Jul 2009 19:28:31 -0000 Received: (qmail 30132 invoked by uid 22791); 7 Jul 2009 19:28:30 -0000 X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_56,RCVD_IN_JMF_BL,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout6.012.net.il (HELO mtaout6.012.net.il) (84.95.2.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Jul 2009 19:28:24 +0000 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KMF00200FBSPU00@i-mtaout6.012.net.il> for gdb-patches@sourceware.org; Tue, 07 Jul 2009 22:27:46 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.249.41]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KMF00LLDFE9S210@i-mtaout6.012.net.il>; Tue, 07 Jul 2009 22:27:46 +0300 (IDT) Date: Tue, 07 Jul 2009 19:28:00 -0000 From: Eli Zaretskii Subject: Re: [patch] Support counted strings and embedded nulls in value.string In-reply-to: <4A52FA05.9050607@redhat.com> To: Phil Muldoon Cc: tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83skh8z424.fsf@gnu.org> References: <4A4A3F27.9060401@redhat.com> <4A52FA05.9050607@redhat.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: 2009-07/txt/msg00212.txt.bz2 > Date: Tue, 07 Jul 2009 08:32:21 +0100 > From: Phil Muldoon > CC: gdb-patches@sourceware.org > > Pending Eli's response, I'll check this patch in. Sorry, I missed that because you sent the patch as binary attachment. The patch for the manual is okay, with one comment. I don't understand the last sentence in this hunk: For C-like languages, a value is a string if it is a pointer to or an array of characters or ints. The string is assumed to be terminated -by a zero of the appropriate width. +by a zero of the appropriate width. However if the optional length +argument is given, the string will be converted beyond any embedded +nulls up to the length specified. What does it mean ``converted beyond any embedded nulls''?