Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Dhananjay R. Deshpande" <dhananjayd@KPITCummins.com>
To: "Andrew Cagney" <cagney@gnu.org>
Cc: <gdb@sources.redhat.com>
Subject: RE: H8300 - Addition of Pseudo registers has broken displaying of CCR and EXR registers
Date: Tue, 02 Dec 2003 13:10:00 -0000	[thread overview]
Message-ID: <69595093233BB547BB70CF5E492B63F202FBCD62@sohm.kpit.com> (raw)

Hi Andrew,

> -----Original Message-----
> From: Andrew Cagney [mailto:cagney@gnu.org]

> Sounds like it is never fetched, or being fetched from the 
> wrong place 
> :-(  

I think this is because difference in raw and pseudo register size. 
The pseudo registers are of one byte and due to big endian we are getting 
wrong byte.

>What does "maint print raw-registers" (which dumps the 
> raw state of 
> the register cache) display?  

It display <cooked> for CCR and print cooked-registers displays zero.

> Are you seeing calls to the 
> simulator for 
> that register?

Yes.

> 
> A testsuite/gdb.arch/ testcase is going to help here.  Especially to 
> 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 - 

int main()
{
	asm("mov #0x55, r0l");
	asm("ldc r0l, ccr");
	asm("stc ccr, r1l");
}

Regards,
Dhananjay


             reply	other threads:[~2003-12-02 13:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-02 13:10 Dhananjay R. Deshpande [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-01 13:06 Dhananjay R. Deshpande
2003-12-01 16:03 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69595093233BB547BB70CF5E492B63F202FBCD62@sohm.kpit.com \
    --to=dhananjayd@kpitcummins.com \
    --cc=cagney@gnu.org \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox