From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29912 invoked by alias); 27 Jul 2006 09:01:18 -0000 Received: (qmail 29903 invoked by uid 22791); 27 Jul 2006 09:01:17 -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; Thu, 27 Jul 2006 09:01:15 +0000 Received: from [127.0.0.1] (213-205-88-139.net.novis.pt [213.205.88.139]) by gollum.portugalmail.pt (Postfix) with ESMTP id 3117EE9D11; Thu, 27 Jul 2006 09:59:47 +0100 (WEST) Message-ID: <44C880EE.8050907@portugalmail.pt> Date: Thu, 27 Jul 2006 11:37:00 -0000 From: Pedro Alves User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Jim Blandy Cc: gdb@sources.redhat.com Subject: Re: DWARF for arm-wince-pe. References: <44C7DE1C.8080404@portugalmail.pt> In-Reply-To: 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/msg00195.txt.bz2 Jim Blandy wrote: > Hi, Pedro. I looked into this a little further. I think you just > need to extend this function in bfd/bfd.c appropriately: > > int > bfd_get_sign_extend_vma (bfd *abfd) > { > char *name; > > if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) > return get_elf_backend_data (abfd)->sign_extend_vma; > > name = bfd_get_target (abfd); > > /* Return a proper value for DJGPP & PE COFF (x86 COFF variants). > This function is required for DWARF2 support, but there is > no place to store this information in the COFF back end. > Should enough other COFF targets add support for DWARF2, > a place will have to be found. Until then, this hack will do. */ > if (strncmp (name, "coff-go32", sizeof ("coff-go32") - 1) == 0 > || strcmp (name, "pe-i386") == 0 > || strcmp (name, "pei-i386") == 0) > return 1; > > bfd_set_error (bfd_error_wrong_format); > return -1; > } > > Gasp, it was so easy. I looked everywhere else but where I should have. Since bfd_get_sign_extend_vma only works for elf, I didn't look inside... Thank you. Cheers, Pedro Alves