From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5691 invoked by alias); 27 Jul 2006 00:45:29 -0000 Received: (qmail 5677 invoked by uid 22791); 27 Jul 2006 00:45:29 -0000 X-Spam-Check-By: sourceware.org Received: from potter.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Jul 2006 00:45:27 +0000 Received: (qmail 26558 invoked from network); 27 Jul 2006 00:45:24 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 Jul 2006 00:45:24 -0000 To: Pedro Alves Cc: gdb@sources.redhat.com Subject: Re: DWARF for arm-wince-pe. References: <44C7DE1C.8080404@portugalmail.pt> From: Jim Blandy Date: Thu, 27 Jul 2006 09:01:00 -0000 In-Reply-To: <44C7DE1C.8080404@portugalmail.pt> (Pedro Alves's message of "Wed, 26 Jul 2006 22:26:52 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00194.txt.bz2 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; }