Ok. I guess that the problem after MMU enabled is the same.
While I wait for someone with a fix, I will read the link you sent me and
try to figure out if I can do some kind of bubble gum.
I'll keep you posted.

Thank you.

On Tue, Oct 16, 2012 at 6:36 PM, Andreas Fritiofson <
[email protected]> wrote:

> On Tue, Oct 16, 2012 at 11:11 PM, Jorge Ventura
> <[email protected]> wrote:
> > I did a single step at first instruction (0x80008000) but not the next
> and
> > you will see that it seems to be because size=3.
> > I removed all arm thumb information from the kernel configuration for not
> > have mixed instructions.
> >
> > Make any sense for you gdb request read  physical memory with size = 3
> ???
> > Maybe the problem is not openocd but gdb !!!
>
> GDB sends the packet 'Z0,80008008,3', where 3 is the breakpoint
> "kind". Which is normally the length of the breakpoint. However, that
> is architecture-defined and according to
>
> http://sourceware.org/gdb/onlinedocs/gdb/ARM-Breakpoint-Kinds.html#ARM-Breakpoint-Kinds
> kind 3 is 32-bit Thumb-2 bp for ARM.
>
> I don't know if it makes sense or not for GDB to set a T2 bp in your
> case but OpenOCD doesn't handle kind 3 so that's wrong anyway. We
> erroneously refer to the parameter as "length" everywhere, and use it
> as such in the Cortex-A target.
>
> We need to fix that in cortex_a8_set_breakpoint() and
> cortex_a8_unset_breakpoint(). Patch welcome. I can probably come up
> with a reasonable fix, but it would be even better if someone with
> hardware to test it and better knowledge of armv7-a could do it.
>
> /Andreas
>
> > Debug: 1365 187001 gdb_server.c:2048 gdb_input_inner(): received packet:
> > 'Z0,80008008,3'
> > Debug: 1366 187001 gdb_server.c:1394 gdb_breakpoint_watchpoint_packet():
> -
> > Debug: 1367 187001 cortex_a.c:1986 cortex_a8_read_memory(): Reading
> memory
> > at address 0x80008008; size 3; count 1
> > Debug: 1368 187001 cortex_a.c:1939 cortex_a8_read_phys_memory(): Reading
> > memory at real address 0x80008008; size 3; count 1
> > Error: 1369 187001 cortex_a.c:1408 cortex_a8_set_breakpoint(): Error @
> > cortex_a8 read_memory:-601
> > Error: 1370 187001 breakpoints.c:96 breakpoint_add_internal(): can't add
> > breakpoint: unknown reason
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to