[PATCH] i386_stab_reg_to_regnum (4 <-> 5, ebp <-> esp)

Jim Blandy jimb@redhat.com
Mon Apr 19 12:42:00 GMT 2004


"Eli Zaretskii" <eliz@gnu.org> writes:

> > From: Jim Blandy <jimb@redhat.com>
> > Date: 05 Apr 2004 17:44:14 -0500
> > 
> > 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])
> 
> (This is from GCC 3.3.3 source distribution I find in the DJGPP
> repository.)
> 
> So DJGPP uses svr4_dbx_register_map[] for DWARF-2, dbx_register_map[]
> otherwise.

Okay.  That text is not present in the public GCC sources, or in the
GCC 3.3 release's sources.  (I *thought* I had looked carefully for
such things.)  Is this a change that needs to be pushed upstream?



More information about the Gdb-patches mailing list