* BDI2000 gdb register display
@ 2004-12-08 3:48 Robin Gilks
0 siblings, 0 replies; 3+ messages in thread
From: Robin Gilks @ 2004-12-08 3:48 UTC (permalink / raw)
To: ppc embedded list
Greetings
Just been debugging some exception handling stuff and I'm sure that the
combination of bdi2000, gdb & ddd I have is suffering an 'off by one'
error in the register display
e.g. I see this
srr0 0x818000
srr1 0x3fca360
tbl 0x9002
But the sensible values of srr0 & srr1 should be
srr0 0x3fca360
srr1 0x9002
so that fault address is in srr0 and the bits from MSR (EE, ME and RI)
are set in srr1.
Anyone seen this and where is the slippage coming from (r0 to r31 look
OK as far as I can see but don't really know about the others!!).
I've tried both REGLIST ALL and REGLIST SPR in the bdi2000 config but it
doesn't appear to make a difference.
bdi2000 code=1.13, fpga=1.02
mpc8xx target
gdb 5.3
ddd 3.3.1
Many thanks
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks@tait.co.nz
New Zealand
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BDI2000 gdb register display
@ 2004-12-08 5:06 MuthuGanesh M
2004-12-08 20:13 ` Robin Gilks
0 siblings, 1 reply; 3+ messages in thread
From: MuthuGanesh M @ 2004-12-08 5:06 UTC (permalink / raw)
To: linuxppc-embedded
What is there in your reg8xx.def?
Regards,
Muthuganesh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BDI2000 gdb register display
2004-12-08 5:06 MuthuGanesh M
@ 2004-12-08 20:13 ` Robin Gilks
0 siblings, 0 replies; 3+ messages in thread
From: Robin Gilks @ 2004-12-08 20:13 UTC (permalink / raw)
To: MuthuGanesh M; +Cc: linuxppc-embedded
MuthuGanesh M wrote:
> What is there in your reg8xx.def?
>
> Regards,
> Muthuganesh
Many thanks for the reply - I'd forgotten about that file!
I'm using the standard reg860.def file as supplied with the Abatron
debugger. Sample below:
sp GPR 1
pc SPR 26 ; is SRR0
;
xer SPR 1
lr SPR 8
ctr SPR 9
dsisr SPR 18
dar SPR 19
dec SPR 22
srr0 SPR 26
srr1 SPR 27
;
cmpa SPR 144
[snip]
I hope this provides sufficient to verify...
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks@tait.co.nz
New Zealand
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-08 20:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 3:48 BDI2000 gdb register display Robin Gilks
-- strict thread matches above, loose matches on Subject: below --
2004-12-08 5:06 MuthuGanesh M
2004-12-08 20:13 ` Robin Gilks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).