[ECOS] openocd - Unable to set thumb software breakpoint at address
Szentirmai Gergely
reg@t-online.hu
Tue Feb 17 23:51:00 GMT 2009
Hi
I have problems with debugging a AT91SAM7A3
It says: Unable to set thumb software breakpoint at address 00101ad8
According to the openocd source, this message dropped because it was
unable to write that address (write/read back missmatch)
According to the list file:
void cyg_user_start(void)
{
101ad4: b510 push {r4, lr}
101ad6: b086 sub sp, #24
diag_init();
101ad8: fcb0f002 bl 10443c <diag_init>
So, the address is right, because I want to break cyg_user_start.
Idx Name Size VMA LMA File off Algn
...
8 .text 0000c3dc 00100040 00100040 00008040 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
9 .fini 00000000 0010c41c 0010c41c 00114031 2**0
CONTENTS
10 .rodata 00003fac 0010c41c 0010c41c 0001441c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
It is in the text segment, ok. Everything seams to be ok. The target was
halted before the breakpoint was added, and there error is coming when
resumed/continued running.
Thank you!
Gergely Szentirmai
Here is the output of gdb:
GNU gdb 6.5.50.20060612-cvs
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-mingw32 --target=arm-elf"...
0x00000018 in ?? ()
Loading section .rom_vectors, size 0x40 lma 0x100000
Loading section .text, size 0xc3dc lma 0x100040
Loading section .rodata, size 0x3fac lma 0x10c41c
Loading section .data, size 0x71c lma 0x1103c8
Start address 0x100040, load size 68324
Transfer rate: 109318 bits/sec, 506 bytes/write.
Breakpoint 1 at 0x101ad8: file main.c, line 179.
software breakpoints enabled
(gdb) continue
Continuing.
Unable to set thumb software breakpoint at address 00101ad8
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list