From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4596 invoked by alias); 26 Feb 2011 07:40:25 -0000 Received: (qmail 4586 invoked by uid 22791); 26 Feb 2011 07:40:22 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Feb 2011 07:40:16 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PtEl7-0002qs-Vv for insight@sources.redhat.com; Sat, 26 Feb 2011 08:40:09 +0100 Received: from 24-158-184-117.dhcp.jcsn.tn.charter.com ([24.158.184.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Feb 2011 08:40:09 +0100 Received: from gds by 24-158-184-117.dhcp.jcsn.tn.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Feb 2011 08:40:09 +0100 To: insight@sources.redhat.com From: Gene Smith Subject: Insight (probably gdb) crashes on thumb-2 startup assembly code Date: Sat, 26 Feb 2011 07:40:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2011-q1/txt/msg00013.txt.bz2 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