From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4983 invoked by alias); 26 Jul 2006 21:26:54 -0000 Received: (qmail 4975 invoked by uid 22791); 26 Jul 2006 21:26:53 -0000 X-Spam-Check-By: sourceware.org Received: from gollum.portugalmail.pt (HELO gollum.portugalmail.pt) (195.245.179.77) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Jul 2006 21:26:52 +0000 Received: from [127.0.0.1] (195-23-225-206.net.novis.pt [195.23.225.206]) by gollum.portugalmail.pt (Postfix) with ESMTP id 2772DE9EB3 for ; Wed, 26 Jul 2006 22:25:25 +0100 (WEST) Message-ID: <44C7DE1C.8080404@portugalmail.pt> Date: Thu, 27 Jul 2006 00:42:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: DWARF for arm-wince-pe. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0630-2, 26-07-2006), Outbound message X-Antivirus-Status: Clean X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00192.txt.bz2 Hi, I'm trying to add dwarf support for arm-wince-pe. I have implemented the binutils and the gcc part. I am now looking into gdb support. Gdb is issuing this internan-error: "/cygdrive/d/cegcc/trunk/cegcc/src/gdb-cvs/gdb/dwarf2read.c:1293: internal-error: read_comp_unit_head: dwarf from non elf file A problem internal to GDB has been detected, further debugging may prove unreliable." Looking at warf2read.c:read_comp_unit_head around line 1293, I see: signed_addr = bfd_get_sign_extend_vma (abfd); if (signed_addr < 0) internal_error (__FILE__, __LINE__, _("read_comp_unit_head: dwarf from non elf file")); I'm trying to find out what cygwin does to support dwarf 2 on coff, and do the same, but my limited knowledge of gdb internals is not helping here. Can anyone please give me a pointer at where should I be looking at to fix this? Cheers, Pedro Alves