From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16724 invoked by alias); 1 Dec 2003 16:03:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16700 invoked from network); 1 Dec 2003 16:03:21 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 1 Dec 2003 16:03:21 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 2D3542B8F; Mon, 1 Dec 2003 11:03:21 -0500 (EST) Message-ID: <3FCB6649.70003@gnu.org> Date: Mon, 01 Dec 2003 16:03:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Dhananjay R. Deshpande" Cc: gdb@sources.redhat.com Subject: Re: H8300 - Addition of Pseudo registers has broken displaying of CCR and EXR registers References: <69595093233BB547BB70CF5E492B63F202FBC7A0@sohm.kpit.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00004.txt.bz2 > Hi, > > With the addition of Pseudo registers, "info reg" command doesn't show correct values of CCR and EXR registers. If you set these registers from GDB ( set $ccr = 0x55 )then it shows correct value but when the register is modified by instruction it always shows "0". This fails both with SIM and remote target ( stub ) Sounds like it is never fetched, or being fetched from the wrong place :-( What does "maint print raw-registers" (which dumps the raw state of the register cache) display? Are you seeing calls to the simulator for that register? A testsuite/gdb.arch/ testcase is going to help here. Especially to ensure that it doesn't break again. enjoy, Andrew