I suspect there is a problem with ARM11 debugging for version
v0.4.0-rc1-128-g0c3a4b4. It seems I cannot insert  breakpoints:

Here I single step, to prove that I can reach the address I want to
set the breakpoint at:

(gdb) moni reset init
JTAG tap: imx31.etb tap/device found: 0x2b900f0f (mfg: 0x787, part:
0xb900, ver: 0x2)
JTAG tap: imx31.cpu tap/device found: 0x07b3601d (mfg: 0x00e, part:
0x7b36, ver: 0x0)
TAP imx31.whatchacallit does not have IDCODE
JTAG tap: imx31.smda tap/device found: 0x2190101d (mfg: 0x00e, part:
0x1901, ver: 0x2)
found ARM1136
imx31.cpu: ran after reset and before halt ...
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x200001d3 pc: 0x0040560c
Target Setup: initialize DRAM controller and peripherals
set p15 0x0001, 0x00050078
configuring CP15 for enabling the peripheral bus
set p15 0x042f, 0x40000015
(gdb) load
Loading section .rom_vectors, size 0x40 lma 0x87f00000
Loading section .text, size 0x3cc98 lma 0x87f00040
Loading section .rodata, size 0x91a4 lma 0x87f3ccd8
Loading section .exidx, size 0x10 lma 0x87f45e7c
Loading section .data, size 0xd8c lma 0x87f45e8c
Start address 0x87f000e0, load size 289816
Transfer rate: 46 KB/sec, 13173 bytes/write.
(gdb) stepi
stepi ignored. GDB will now fetch the register state from the target.

Program received signal SIGINT, Interrupt.
reset_vector () at
/home/edgar/imx35/IMX35PDK/L2_6_26_3_4_2_SDK_source/L2.6.26_3.4.2_SDK_032009_source/redboot_200910/build/install/include/cyg/hal/hal_platform_setup.h:244
244     
(gdb) stepi
0x87f000e4      244     
(gdb) stepi
0x87f000e8      244     
(gdb) stepi
0x87f000ec      244     
(gdb) stepi
0x87f000f0      244     
(gdb) stepi
0x87f000f4      244     
(gdb) stepi
0x87f000f8      244     
(gdb) stepi
0x87f000fc      244     

Here I reset everything, load, insert the breakpoint and continue:

(gdb) moni gdb_breakpoint_override hard
force hard breakpoints
(gdb) load
Loading section .rom_vectors, size 0x40 lma 0x87f00000
Loading section .text, size 0x3cc98 lma 0x87f00040
Loading section .rodata, size 0x91a4 lma 0x87f3ccd8
sLoading section .exidx, size 0x10 lma 0x87f45e7c
Loading section .data, size 0xd8c lma 0x87f45e8c
Start address 0x87f000e0, load size 289816
Transfer rate: 46 KB/sec, 13173 bytes/write.
(gdb) stepi
0x87f000e4      244     
(gdb)
0x87f000e8      244     
(gdb) b *0x87f000f8
Breakpoint 1 at 0x87f000f8: file
/home/edgar/imx35/IMX35PDK/L2_6_26_3_4_2_SDK_source/L2.6.26_3.4.2_SDK_032009_source/redboot_200910/build/install/include/cyg/hal/hal_platform_setup.h,
line 244.
(gdb) c
Continuing.

And it never hits the breakpoint. If I Ctrl+C, I can see the breakpoint:

(gdb) i b
Num     Type           Disp Enb  Address    What
1       breakpoint     keep y    0x87f000f8
/home/edgar/imx35/IMX35PDK/L2_6_26_3_4_2_SDK_source/L2.6.26_3.4.2_SDK_032009_source/redboot_200910/build/install/include/cyg/hal/hal_platform_setup.h:244

Regards,
Edgar

-- 
Edgar Grimberg
System Developer
Zylin AS
ZY1000 JTAG Debugger http://www.zylin.com/zy1000.html
Phone: (+47) 51 63 25 00
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to