Insight (probably gdb) crashes on thumb-2 startup assembly code

Gene Smith <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
When I step into my very early startup code I quickly see this crash in 
gdb or insight:

(gdb) lodnew  #<-- my gdbinit macro to load my code
Loading section .isr_vector, size 0x260 lma 0x0
Loading section .bmark, size 0x24 lma 0x260
Loading section .text, size 0x3888 lma 0x10030000
Loading section .data, size 0x4 lma 0x10033888
Loading section .init_array, size 0x4 lma 0x10040004
Start address 0x0, load size 15124
Transfer rate: 51 KB/sec, 1008 bytes/write.
Loading section .sec1, size 0x10000 lma 0x10030000
Start address 0x0, load size 65536
Transfer rate: 52 KB/sec, 1365 bytes/write.
(gdb) si
0x0000009c in SET_UP ()
(gdb) si
0x0000009e in SET_UP ()
(gdb) si
../../insight_sources/gdb/regcache.c:182: internal-error: register_size: 
Assertion `regnum >= 0 && regnum < (gdbarch_num_regs (gdbarch) + 
gdbarch_num_pseudo_regs (gdbarch))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

This is running the insight or gdb built from a recent insight cvs 
snapshot:GNU gdb (GDB) 7.2.50.20110121-cvs
This GDB was configured as "--host=x86_64-unknown-linux-gnu 
--target=arm-none-eabi".

Assembly code associated with C instructions (also thumb-2) has no 
problem, just the startup pure assembly code.

I can step through the same startup code with insight 6.8.1 with no 
crash but it has problems decoding it as thumb-2.

I suspect this is a gdb problem and not really related to insight, but 
thought I would ask here first.

-gene
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.