This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: ppc405gpr On-Chip Memory (OCM) debugging - solving
- From: Gene Smith <gds at chartertn dot net>
- To: insight at sources dot redhat dot com
- Date: Sat, 02 Oct 2004 01:53:00 -0400
- Subject: Re: ppc405gpr On-Chip Memory (OCM) debugging - solving
- References: <cj5ivv$nnm$1@sea.gmane.org>
Gene Smith wrote, On 09/26/2004 01:10 AM:
My OCD/JTAG vendor (Macraigor) has supplied a simple c demo program you
can load to a ppc405gpr using GDB and their mpDemon box. It appears to
work fine in insight or gdb except that when you single step (s) around
in the code it often skip instructions in a somewhat random way.
Optimization was not not used when compiling the program which is
running entirely in the 4k on-chip ram memory of the processor which
gets located using .gdbinit at 0xfc000000. Single stepping by assembly
instructions (si) seems to work without any skipped instructions.
Any idea why I see skipped c instructions? I have tried gdb/insight
builds on cygwin and linux with the same result.
-gene
Turns out the problem is with Macraigor mpDemon itself. After a week of
being told "it works for us on our 405gp board" they tested it again and
saw the same problem. mpDemon firware fix is in the works.
-gene