From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24323 invoked by alias); 9 Mar 2008 22:20:56 -0000 Received: (qmail 24315 invoked by uid 22791); 9 Mar 2008 22:20:55 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (213.8.233.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 09 Mar 2008 22:20:23 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-229-207-15.inter.net.il [84.229.207.15]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id JLV94147 (AUTH halo1); Mon, 10 Mar 2008 00:17:21 +0200 (IST) Date: Sun, 09 Mar 2008 22:20:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: gdb-patches@sourceware.org In-reply-to: <20080309161335.GA26917@caradoc.them.org> (message from Daniel Jacobowitz on Sun, 9 Mar 2008 12:13:35 -0400) Subject: Re: [RFC] Strings and arrays without malloc Reply-to: Eli Zaretskii References: <20080309161335.GA26917@caradoc.them.org> 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: 2008-03/txt/msg00080.txt.bz2 > Date: Sun, 9 Mar 2008 12:13:35 -0400 > From: Daniel Jacobowitz > > Index: doc/gdb.texinfo > =================================================================== > RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v > retrieving revision 1.472 > diff -u -p -r1.472 gdb.texinfo > --- doc/gdb.texinfo 3 Mar 2008 13:24:12 -0000 1.472 > +++ doc/gdb.texinfo 9 Mar 2008 15:47:34 -0000 > @@ -5567,8 +5567,10 @@ you compiled your program to include thi > @cindex arrays in expressions > @value{GDBN} supports array constants in expressions input by > the user. The syntax is @{@var{element}, @var{element}@dots{}@}. For example, > -you can use the command @code{print @{1, 2, 3@}} to build up an array in > -memory that is @code{malloc}ed in the target program. > +you can use the command @code{print @{1, 2, 3@}} to create an array > +of three integers. If you pass an array to a function or assign it > +to a program variable, @value{GDBN} copies the array to memory that > +is @code{malloc}ed in the target program. > > Because C is so widespread, most of the expressions shown in examples in > this manual are in C. @xref{Languages, , Using @value{GDBN} with Different This part is approved. Thanks.