From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25859 invoked by alias); 19 Apr 2004 02:06:44 -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 25848 invoked from network); 19 Apr 2004 02:06:42 -0000 Received: from unknown (HELO esds.vss.fsi.com) (66.136.174.212) by sources.redhat.com with SMTP; 19 Apr 2004 02:06:42 -0000 Received: from thing1.vss.fsi.com (thing1.vss.fsi.com [198.51.29.21]) by esds.vss.fsi.com (8.11.6+Sun/8.9.1) with ESMTP id i3J26cd21308 for ; Sun, 18 Apr 2004 21:06:38 -0500 (CDT) Received: from localhost (ford@localhost) by thing1.vss.fsi.com (8.11.6+Sun/8.11.6) with ESMTP id i3J26bb19861 for ; Sun, 18 Apr 2004 21:06:38 -0500 (CDT) X-Authentication-Warning: thing1-200.fsi.com: ford owned process doing -bs Date: Mon, 19 Apr 2004 02:06:00 -0000 From: Brian Ford X-X-Sender: ford@thing1-200 To: gdb-patches@sources.redhat.com Subject: ix86 PE/COFF DWARF register numbering (was Re: [PATCH] i386_stab_reg_to_regnum (4 <-> 5, ebp <-> esp)) In-Reply-To: <2914-Sun18Apr2004194339+0300-eliz@gnu.org> Message-ID: References: <8011-Fri02Apr2004094123+0300-eliz@gnu.org> <2719-Fri02Apr2004213907+0300-eliz@gnu.org> <2914-Sun18Apr2004194339+0300-eliz@gnu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-04/txt/msg00408.txt.bz2 On Sun, 18 Apr 2004, Eli Zaretskii wrote: > On 05 Apr 2004 at 17:44:14 -0500 Jim Blandy wrote: > > > > In fact, it looks to me as if DJGPP uses dbx_register_map for both > > STABS and Dwarf 2. (Eli, is this right?) > > No, that's not what I see. The file /config/i386/djgpp.h in the GCC > distribution says: > > #undef DBX_REGISTER_NUMBER > #define DBX_REGISTER_NUMBER(n) \ > ((write_symbols == DWARF2_DEBUG) ? svr4_dbx_register_map[n] : dbx_register_map[n]) Aha! > (This is from GCC 3.3.3 source distribution I find in the DJGPP > repository.) (We see in a later email that this distribution contains local patches which have not been included in the FSF source base. That explains the previous confusion.) > So DJGPP uses svr4_dbx_register_map[] for DWARF-2, dbx_register_map[] > otherwise. Look Jim (does this sound like a bad Star Trek episode, or what? :), yet another target that uses a different register map depending on the output debugging format. And note that for DWARF 2, it uses the svr4 map, just like every other ix86 target that I know of (except the current PE proposal). Now that the dbx_to_regnum bug has been fixed, it probably doesn't matter, but I'm still leary of using a different register map for DWARF on PE than every other ix86 target out there. I'd like to get this right up front since now is the time to avoid possibly major compatibility changes down the road. What do you think? Should I revert the i386_coff_init_abi patch for Cygwin and use the above method in gcc instead? I'm especially interested in input from Jim Blandy, CGF, and Corinna. Thanks. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444