From: Eli Zaretskii Date: Fri, 29 May 2009 11:38:39 +0000 (+0000) Subject: * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d22076f965f5faf9f2cf9f2302227513db7f80a;p=binutils-gdb.git * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering for stabs and COFF debug info. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f3a579b80b7..9af938df543 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-05-29 Eli Zaretskii + + * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering + for stabs and COFF debug info. + 2009-05-28 Pedro Alves * infrun.c (handle_inferior_event): When thread hoping, switch diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index bfd2bab9344..60526b069d2 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -2601,6 +2601,13 @@ i386_go32_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* DJGPP does not support the SSE registers. */ tdep->num_xmm_regs = 0; set_gdbarch_num_regs (gdbarch, I386_NUM_GREGS + I386_NUM_FREGS); + + /* Native compiler is GCC, which uses the SVR4 register numbering + even in COFF and STABS. See the comment in i386_gdbarch_init, + before the calls to set_gdbarch_stab_reg_to_regnum and + set_gdbarch_sdb_reg_to_regnum. */ + set_gdbarch_stab_reg_to_regnum (gdbarch, i386_svr4_reg_to_regnum); + set_gdbarch_sdb_reg_to_regnum (gdbarch, i386_svr4_reg_to_regnum); }