This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] i386_stab_reg_to_regnum (4 <-> 5, ebp <-> esp)
- From: Mark Kettenis <kettenis at chello dot nl>
- To: ford at vss dot fsi dot com
- Cc: jimb at redhat dot com, eliz at gnu dot org, gdb-patches at sources dot redhat dot com
- Date: Wed, 7 Apr 2004 01:24:40 +0200 (CEST)
- Subject: Re: [PATCH] i386_stab_reg_to_regnum (4 <-> 5, ebp <-> esp)
- References: <8011-Fri02Apr2004094123+0300-eliz@gnu.org><Pine dot GSO dot 4 dot 58 dot 0404021000390 dot 21204 at thing1-200> <2719-Fri02Apr2004213907+0300-eliz at gnu dot org><Pine dot GSO dot 4 dot 58 dot 0404021648050 dot 21204 at thing1-200> <vt2ptam2gg1 dot fsf at zenia dot home> <Pine.GSO.4.58.0404051748340.21204@thing1-200>
Date: Mon, 5 Apr 2004 18:19:09 -0500 (CDT)
From: Brian Ford <ford@vss.fsi.com>
> The big question is, "Why wasn't it noticed before?" but there's an
> answer to that which seems pretty solid to me:
>
> - GCC's dbx_register_map and GDB's i386_stab_reg_to_regnum simply
> aren't used on many modern systems. Every ELF target that I see in
> GCC (except for i[34567]86-*-nto-qnx*) uses gcc/config/i386/i386.c's
> svr4_dbx_register_map. That agrees with i386-tdep.c's
> i386_dwarf_reg_to_regnum.
[snip]
> So just about every ELF target uses gdb/i386.c's
> i386_dwarf_reg_to_regnum for both STABS and Dwarf 2. So they never
> see the broken numbering.
Agreed. I still propose we rename the _to_regnum functions, replacing
stabs and dwarf with dbx and svr4 to reduce confusion. I'll be happy to
make a patch :-).
Please do so.
Mark