From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14906 invoked by alias); 8 Nov 2002 22:08:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14898 invoked from network); 8 Nov 2002 22:08:07 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.129.200.2) by sources.redhat.com with SMTP; 8 Nov 2002 22:08:07 -0000 Received: from redhat.com (toocool.toronto.redhat.com [172.16.14.72]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 9509C8001CF; Fri, 8 Nov 2002 16:42:14 -0500 (EST) Message-ID: <3DCC2FB6.9FEC8C6@redhat.com> Date: Fri, 08 Nov 2002 14:08:00 -0000 From: "J. Johnston" Organization: Red Hat Inc. X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cagney Cc: gdb-patches@sources.redhat.com, eliz@gnu.org Subject: Re: Patch for gdb/mi problem 702 References: <3DB7209F.B1AC2251@redhat.com> <3DB725FE.1000506@redhat.com> Content-Type: multipart/mixed; boundary="------------C0D55655FA904A6B402BBF0A" X-SW-Source: 2002-11/txt/msg00253.txt.bz2 This is a multi-part message in MIME format. --------------C0D55655FA904A6B402BBF0A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 912 Andrew Cagney wrote: > > > I have added test scenarios to gdb.mi testsuite to verify the new assign/update > > behavior. > > > > gdb/testsuite/gdb.mi/ChangeLog > > > > 2002-10-23 Jeff Johnston > > > > * mi-var-cmd.exp: Add tests to verify that a -var-assign that changes > > a value shows up in the changelist of a -var-update. > > * mi1-var-cmd.exp: Ditto. > > > > Andrew, are you satisfied with my answer to your previous question and may I commit > > the original patch plus these changes? > > Er, oops, PS: > > Can you please (separate) update the doco so that -var-assign has: > - an example (steal something from your test case) > - a note mentioning that the assigned object is intentionally included > with a very brief rationale. > > Just get an ok from Eli on this one. > > Andrew I have attached the requested doc change. Eli, ok to commit? -- Jeff J. --------------C0D55655FA904A6B402BBF0A Content-Type: text/plain; charset=us-ascii; name="702.doc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="702.doc.patch" Content-length: 914 Index: gdbmi.texinfo =================================================================== RCS file: /cvs/src/src/gdb/mi/gdbmi.texinfo,v retrieving revision 1.29 diff -u -r1.29 gdbmi.texinfo --- gdbmi.texinfo 3 Oct 2002 22:31:31 -0000 1.29 +++ gdbmi.texinfo 8 Nov 2002 21:34:52 -0000 @@ -3799,7 +3799,21 @@ @end example Assigns the value of @var{expression} to the variable object specified -by @var{name}. The object must be @samp{editable}. +by @var{name}. The object must be @samp{editable}. If the variable's +value is altered by the assign, the variable will show up in any +subsequent @code{-var-update} list. + +@subsubheading Example + +@example +(@value{GDBP}) +-var-assign var1 3 +^done,value="3" +(@value{GDBP}) +-var-update * +^done,changelist=[@{name="var1",in_scope="true",type_changed="false"@}] +(@value{GDBP}) +@end example @subheading The @code{-var-update} Command @findex -var-update --------------C0D55655FA904A6B402BBF0A--