From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27160 invoked by alias); 2 Dec 2003 13:10:03 -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 27150 invoked from network); 2 Dec 2003 13:10:01 -0000 Received: from unknown (HELO sohm.kpit.com) (203.129.230.82) by sources.redhat.com with SMTP; 2 Dec 2003 13:10:01 -0000 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: H8300 - Addition of Pseudo registers has broken displaying of CCR and EXR registers X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Tue, 02 Dec 2003 13:10:00 -0000 Message-ID: <69595093233BB547BB70CF5E492B63F202FBCD62@sohm.kpit.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Dhananjay R. Deshpande" To: "Andrew Cagney" Cc: X-SW-Source: 2003-12/txt/msg00016.txt.bz2 Hi Andrew, > -----Original Message----- > From: Andrew Cagney [mailto:cagney@gnu.org] > Sounds like it is never fetched, or being fetched from the=20 > wrong place=20 > :-(=20=20 I think this is because difference in raw and pseudo register size.=20 The pseudo registers are of one byte and due to big endian we are getting=20 wrong byte. >What does "maint print raw-registers" (which dumps the=20 > raw state of=20 > the register cache) display?=20=20 It display for CCR and print cooked-registers displays zero. > Are you seeing calls to the=20 > simulator for=20 > that register? Yes. >=20 > A testsuite/gdb.arch/ testcase is going to help here. Especially to=20 > ensure that it doesn't break again. I will try but its going to take some time to understand the test framework. Here is the C code which can be used for testing -=20 int main() { asm("mov #0x55, r0l"); asm("ldc r0l, ccr"); asm("stc ccr, r1l"); } Regards, Dhananjay