From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22627 invoked by alias); 15 Dec 2008 07:37:14 -0000 Received: (qmail 22617 invoked by uid 22791); 15 Dec 2008 07:37:14 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Dec 2008 07:36:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1A4B32A9651; Mon, 15 Dec 2008 02:36:37 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VycIcUoR1xfi; Mon, 15 Dec 2008 02:36:37 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 1D8E72A964B; Mon, 15 Dec 2008 02:36:36 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 11F3EE7ACD; Mon, 15 Dec 2008 08:36:29 +0100 (CET) Date: Mon, 15 Dec 2008 07:37:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: schwab@suse.de, gdb-patches@sourceware.org Subject: Re: [RFA/doco] Add missing parens around GDB prompt in example Message-ID: <20081215073628.GJ6866@adacore.com> References: <20081214142855.GG6866@adacore.com> <20081214180208.GH6866@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5G06lTa6Jq83wMTw" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i 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-12/txt/msg00270.txt.bz2 --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 389 OK, here is a new patch that adds all missing prompts in the Ada sections. 2008-12-15 Joel Brobecker * gdb.texinfo (Omissions from Ada): Add missing GDB prompt in examples. (Additions to Ada): Likewise. Add the missing opening and closing parenthesis of the GDB prompt in one of the examples. OK to commit? Thank you, -- Joel --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="doc-prompt.diff" Content-length: 2415 diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 29a55af..6ef124c 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -11334,12 +11334,12 @@ There is limited support for array and record aggregates. They are permitted only on the right sides of assignments, as in these examples: @smallexample -set An_Array := (1, 2, 3, 4, 5, 6) -set An_Array := (1, others => 0) -set An_Array := (0|4 => 1, 1..3 => 2, 5 => 6) -set A_2D_Array := ((1, 2, 3), (4, 5, 6), (7, 8, 9)) -set A_Record := (1, "Peter", True); -set A_Record := (Name => "Peter", Id => 1, Alive => True) +(@value{GDBP}) set An_Array := (1, 2, 3, 4, 5, 6) +(@value{GDBP}) set An_Array := (1, others => 0) +(@value{GDBP}) set An_Array := (0|4 => 1, 1..3 => 2, 5 => 6) +(@value{GDBP}) set A_2D_Array := ((1, 2, 3), (4, 5, 6), (7, 8, 9)) +(@value{GDBP}) set A_Record := (1, "Peter", True); +(@value{GDBP}) set A_Record := (Name => "Peter", Id => 1, Alive => True) @end smallexample Changing a @@ -11361,8 +11361,8 @@ you can assign a value with a different size of @code{Vals} with two assignments: @smallexample -set A_Rec.Len := 4 -set A_Rec := (Id => 42, Vals => (1, 2, 3, 4)) +(@value{GDBP}) set A_Rec.Len := 4 +(@value{GDBP}) set A_Rec := (Id => 42, Vals => (1, 2, 3, 4)) @end smallexample As this example also illustrates, @value{GDBN} is very loose about the usual @@ -11448,8 +11448,8 @@ The assignment statement is allowed as an expression, returning its right-hand operand as its value. Thus, you may enter @smallexample -set x := y + 3 -print A(tmp := y + 1) +(@value{GDBP}) set x := y + 3 +(@value{GDBP}) print A(tmp := y + 1) @end smallexample @item @@ -11459,8 +11459,8 @@ This allows, for example, complex conditional breaks: @smallexample -break f -condition 1 (report(i); k += 1; A(k) > 100) +(@value{GDBP}) break f +(@value{GDBP}) condition 1 (report(i); k += 1; A(k) > 100) @end smallexample @item @@ -11484,7 +11484,7 @@ The subtype used as a prefix for the attributes @t{'Pos}, @t{'Min}, and to write @smallexample -print 'max(x, y) +(@value{GDBP}) print 'max(x, y) @end smallexample @item @@ -11517,7 +11517,7 @@ For the rare occasions when you actually have to look at them, enclose them in angle brackets to avoid the lower-case mapping. For example, @smallexample -@value{GDBP} print [0] +(@value{GDBP}) print [0] @end smallexample @item --5G06lTa6Jq83wMTw--