From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26915 invoked by alias); 7 Sep 2012 13:14:01 -0000 Received: (qmail 26855 invoked by uid 22791); 7 Sep 2012 13:14:00 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Sep 2012 13:13:47 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1T9yNV-0000UN-TO from Yao_Qi@mentor.com ; Fri, 07 Sep 2012 06:13:45 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 7 Sep 2012 06:13:45 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Fri, 7 Sep 2012 06:13:44 -0700 Message-ID: <5049F2D6.1040807@codesourcery.com> Date: Fri, 07 Sep 2012 13:14:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Eli Zaretskii CC: , , Subject: Re: [RFC] Don't allow setting register in non-innermost frame 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> In-Reply-To: <83r4qeax91.fsf@gnu.org> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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/msg00066.txt.bz2 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. -- Yao