On Wed, Jan 11, 2012 at 11:19 AM, Sergio <hardma...@gmail.com> wrote:

> Hi list,
> >From las six months I'm trying to work with eclipse+cdt+openocd to
> debug a application. Googling, I can make some results but I don't
> know how continue. Please, help.
> I'm using openocd (try with devel version from hit repo and with las
> stable, the result is the same), debuging with gdb 7.2 (no patch), cdt
> + eclipse helios and I'm using "GDB hardware debuging" options to make
> the debug.
> The program is loaded in the target, openocd work, but I have this
> errors in the console when try to run te application:
>
> -------------   Problems begin
> ------------------------------------------------
> Error: address + size wrapped(0xfffffffe, 0x00000004)
> Error: JTAG-DP STICKY ERROR
> Error: MEM_AP_CSW 0x23000050, MEM_AP_TAR 0xab184abc
> ------------- End problems
> -----------------------------------------------------
> Info : Padding image section 0 with 4 bytes
> Info : Padding image section 1 with 808 bytes
> -------------   Problems begin
> ------------------------------------------------
> Error: address + size wrapped(0xfffffffe, 0x00000004)
> Error: JTAG-DP STICKY ERROR
> Error: MEM_AP_CSW 0x23000050, MEM_AP_TAR 0xab184abc
> ------------- End problems
> -----------------------------------------------------
>

These are not problems, the messages are caused by gdb trying to read
across the end of the address space, probably while backtracing through the
stack frames. Ignore the messages.

The more rare is:I can use break's, step, and more. But sometime, when
> trace or run and pause the are no sinchronization betwen the show code
> and the run code. It is the code running is not the code show in the
> editor.... I don't know
>

Use the gdb command 'compare-sections' to verify the image loaded in gdb
against the image loaded on the target. If it matches, and what you see is
the current position in the source jumping around apparently random (but
with some form of progress) when you single-step, it's normal behaviour
when debugging optimized code. Turn off optimization and see if it helps.

/Andreas
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to