Shall I use bdi telnet interface to set hardware break point or use
gdb, or they are the same? I set break point mode into "HARD", then
using gdb set break point, it never stops; if I use bdi interface to
set, I saw following message when continue in gdb:<br>
<br>
(gdb) c<br>
Continuing.<br>
Warning:<br>
Cannot insert breakpoint -31.<br>
Error accessing memory address 0xfff00100: Unknown error 4294967295.<br>
<br>
I think we should be able to use software break point in RAM image,
right? I really appreciate if you could give a hand on this issue. I
need it urgently to debug further issues.<br>
<br>
Regards,<br>
<br>
- Reeve<br><br><div><span class="gmail_quote">On 10/13/06, <b class="gmail_sendername">Reeve Yang</b> &lt;<a href="mailto:yang.reeve@gmail.com">yang.reeve@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My CPU is MPC8345E, it's same as MPC8349E with e300 core. Yes, it only
supports on hardware break point. I tried it and it didn't work either.
When I try to single step the code, I got following message on gdb
session:<br>
<br>
Cannot find bounds of current function<br>
<br>
Is it possible to debug ROM image? Can bdi2000 debug ram image
directly? I assume the &quot;load&quot; command is to load image into any memory
space, including ram, right?<div><span class="e" id="q_10e42dfae7155234_1"><br><br><div><span class="gmail_quote">On 10/13/06, <b class="gmail_sendername">Ben Warren</b> &lt;<a href="mailto:bwarren@qstreams.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
bwarren@qstreams.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 2006-10-13 at 17:41 +0000, Reeve Yang wrote:<br>&gt; I'm trying to use bdi2000+gdb to debug u-boot. The image is ROM image<br>&gt; on flash, whenever I connect gdb to bdi, I saw execution stops at:<br>&gt;<br>&gt; _start: /* time t 0 */
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; li&nbsp;&nbsp;&nbsp;&nbsp;r21, BOOTFLAG_COLD&nbsp;&nbsp;/* Normal Power-On: Boot from FLASH*/<br>&gt; ===&gt;here<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; nop<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; b&nbsp;&nbsp;&nbsp;&nbsp;boot_cold<br>&gt;<br>&gt; Then though I can set break point, e.g. cpu_init_f, but when continue
<br>&gt; running break point never stops execution and u-boot just runs by<br>&gt; itself.<br>&gt;<br>&gt; Does it mean I can only debug ram image? does anyone has experience on<br>&gt; this could shed some lights?<br>&gt;
<br>&gt; Thanks.<br>&gt;<br>&gt; - Reeve<br>Remember to use hardware breakpoints, and that your CPU (you didn't<br>mention what type) may only have one.&nbsp;&nbsp;You'll have to clear it after<br>reaching each breakpoint.&nbsp;&nbsp;Read the BREAKMODE and STEPMODE entries
<br>(TARGET chapter) in your BDI manual.&nbsp;&nbsp;Also, can you single step through<br>the ROM code?<br><br>regards,<br>Ben<br><br><br></blockquote></div><br>

</span></div></blockquote></div><br>