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

Eli Zaretskii
2004-04-18T16:48:48Z

> 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.