This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: H8300 - Addition of Pseudo registers has broken displaying of CCR and EXR registers
- From: "Dhananjay R. Deshpande" <dhananjayd at KPITCummins dot com>
- To: "Andrew Cagney" <cagney at gnu dot org>
- Cc: <gdb at sources dot redhat dot com>
- Date: Tue, 2 Dec 2003 18:39:02 +0530
- Subject: RE: H8300 - Addition of Pseudo registers has broken displaying of CCR and EXR registers
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