This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
ppc405gpr On-Chip Memory (OCM) debugging
- From: Gene Smith <gds at chartertn dot net>
- To: insight at sources dot redhat dot com
- Date: Sun, 26 Sep 2004 01:10:22 -0400
- Subject: ppc405gpr On-Chip Memory (OCM) debugging
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