public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Insight (probably gdb) crashes on thumb-2 startup assembly code
@ 2011-02-26  7:40 Gene Smith
  2011-02-26 18:57 ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Gene Smith @ 2011-02-26  7:40 UTC (permalink / raw)
  To: insight

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-27 19:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-26  7:40 Insight (probably gdb) crashes on thumb-2 startup assembly code Gene Smith
2011-02-26 18:57 ` Keith Seitz
2011-02-27 19:44   ` Gene Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).