From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22340 invoked by alias); 9 Sep 2012 02:31:29 -0000 Received: (qmail 22331 invoked by uid 22791); 9 Sep 2012 02:31:28 -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; Sun, 09 Sep 2012 02:31:14 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TAXIn-0005OU-2v from Yao_Qi@mentor.com ; Sat, 08 Sep 2012 19:31:13 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 8 Sep 2012 19:31:13 -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; Sat, 8 Sep 2012 19:31:11 -0700 Message-ID: <504BFF3D.6090102@codesourcery.com> Date: Sun, 09 Sep 2012 02:31: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: Jan Kratochvil CC: Tom Tromey , Doug Evans , 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> <20120907164544.GA18234@host2.jankratochvil.net> In-Reply-To: <20120907164544.GA18234@host2.jankratochvil.net> 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/msg00088.txt.bz2 On 09/08/2012 12:45 AM, Jan Kratochvil wrote: > (gdb) set variable i=20 > warning: Assigning to register in non-innermost frame. > > Why? > That is a surprise to me. > I would find correct to print such warning for: > (gdb) set $rbx=20 > There it should happen only if user has explicitly specified the register > itself. That is my original motivation of this patch. I'll go back to see how to differentiate register and variables in evaluation. -- Yao