This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]