From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9164 invoked by alias); 7 Sep 2012 14:32:47 -0000 Received: (qmail 9154 invoked by uid 22791); 7 Sep 2012 14:32:46 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,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; Fri, 07 Sep 2012 14:32:33 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M9Z00000HMOO700@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Fri, 07 Sep 2012 17:32:31 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9Z00NQUHQ756E0@a-mtaout22.012.net.il>; Fri, 07 Sep 2012 17:32:31 +0300 (IDT) Date: Fri, 07 Sep 2012 14:32:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] Don't allow setting register in non-innermost frame In-reply-to: <5049F2D6.1040807@codesourcery.com> To: Yao Qi Cc: dje@google.com, tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83oblhc39h.fsf@gnu.org> References: <1345170040-25959-1-git-send-email-yao@codesourcery.com> <87hartpodt.fsf@fleche.redhat.com> <503DE604.5070904@codesourcery.com> <20550.33413.240311.774616@ruffy2.mtv.corp.google.com> <5049C5C5.6000004@codesourcery.com> <83vcfqb0st.fsf@gnu.org> <5049CA30.1040802@codesourcery.com> <83r4qeax91.fsf@gnu.org> <5049F2D6.1040807@codesourcery.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: 2012-09/txt/msg00068.txt.bz2 > Date: Fri, 7 Sep 2012 21:12:54 +0800 > From: Yao Qi > CC: , , > > On 09/07/2012 07:27 PM, Eli Zaretskii wrote: > >> >How about them below? > >> > > >> >* GDB will display a warning when assigning to registers, for example > >> > "set $eax=0x1", in non-innermost frames. > >> > > >> >or > >> > > >> >* GDB will display a warning when assigning to registers by command > >> > "set" in non-innermost frames. > > If "set" is the only command, then the second variant is better. But > > isn't the same true of the MI equivalent? > > It is true to the MI command "-var-assign". How about this? > > * GDB will display a warning when assigning to registers by CLI command > "set" or MI command "-var-assign" in non-innermost frames. Fine, thanks.