From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31430 invoked by alias); 5 Apr 2004 18:21:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31326 invoked from network); 5 Apr 2004 18:21:33 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Apr 2004 18:21:33 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i35ILX5D023555 for ; Mon, 5 Apr 2004 14:21:33 -0400 Received: from zenia.home.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i35ILVj30126; Mon, 5 Apr 2004 14:21:31 -0400 To: Eli Zaretskii Cc: Brian Ford , gdb-patches@sources.redhat.com Subject: Re: [PATCH] i386_stab_reg_to_regnum (4 <-> 5, ebp <-> esp) References: <8011-Fri02Apr2004094123+0300-eliz@gnu.org> <2719-Fri02Apr2004213907+0300-eliz@gnu.org> <6654-Sat03Apr2004110513+0300-eliz@gnu.org> From: Jim Blandy Date: Mon, 05 Apr 2004 18:21:00 -0000 In-Reply-To: <6654-Sat03Apr2004110513+0300-eliz@gnu.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-04/txt/msg00121.txt.bz2 "Eli Zaretskii" writes: > I cannot use readelf here, since DJGPP binaries are COFF files, not > ELF files. Is there a way to do this using objdump? No; objdump doesn't understand Dwarf 2. What you can do is compile with -gdwarf-2 -save-temps -dA, which will emit Dwarf 2, keep the assembly file, and annotate the Dwarf 2 with human-readable comments. For example: .uleb128 0x1f # (DIE (0x1174) DW_TAG_formal_parameter) .ascii "n\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file .byte 0x5 # DW_AT_decl_line .long 0xe1 # DW_AT_type .byte 0x1 # DW_AT_location .byte 0x55 # DW_OP_reg5 (This die shows register 'n' being allocated to register 5. Whatever that is. :) )