Hi,
I'm trying to debug U-Boot on a Pandaboard (Cortex-A9) using the latest 
OpenOCD release (0.8.0).
My problem is that, after setting a breakpoint, I'm not able to single 
step anymore.

Basically what I do is:

1) launch OpenOCD:
$ openocd -s -f interface/ftdi/jtagkey.cfg -f board/imx53loco.cfg

2) open a telnet session:
$ telnet localhost 4444
 > halt
 > load_image /home/asem/develop/u-boot/spl/u-boot-spl.bin 0x40300000
 > reg pc 0x40300000
 > reg cpsr 0x1d3

3) launch gdb:
$ arm-linux-gnueabihf-gdb u-boot-spl
(gdb) target remote localhost:3333
(gdb) b s_init
(gdb) c


then, when the breakpoint is hit, the target correctly halts, but after 
this point, even if I issue an "s" or "n" command I'm stuck at the same 
instruction and the pc register isn't incremented.

This is the output:
--------------------begin --------------------
(gdb) b s_init
Breakpoint 1 at 0x403003ec: file 
arch/arm/cpu/armv7/omap-common/hwinit-common.c, line 113.
(gdb) c
Continuing.

Breakpoint 1, s_init () at 
arch/arm/cpu/armv7/omap-common/hwinit-common.c:113
113    {
(gdb) i r pc
pc             0x403003ec    0x403003ec <s_init>
(gdb) i r cpsr
cpsr           0x1f3    499
(gdb) n

Breakpoint 1, s_init () at 
arch/arm/cpu/armv7/omap-common/hwinit-common.c:113
113    {
(gdb) s

Breakpoint 1, s_init () at 
arch/arm/cpu/armv7/omap-common/hwinit-common.c:113
113    {
(gdb) n

Breakpoint 1, s_init () at 
arch/arm/cpu/armv7/omap-common/hwinit-common.c:113
113    {
(gdb) i r pc
pc             0x403003ec    0x403003ec <s_init>

(gdb)
-------------------- end  --------------------

I've also tried to force hardware breakpoint:
 > gdb_breakpoint_override hard
but the results were the same.

Has anyone faced this issue?
Thank you

regards
Luca



------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to