summaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-05-29 11:38:39 +0000
committerEli Zaretskii <eliz@gnu.org>2009-05-29 11:38:39 +0000
commit2ec3d727a7305d1dbb28f1fee1ef02450ee82845 (patch)
tree3a6f4d8f7ebc34e23d24f9b4b56d8349f0fd36c0 /gdb/i386-tdep.c
parent6959c5dd85756c341bf41599a3442c9e18d78746 (diff)
downloadgdb-2ec3d727a7305d1dbb28f1fee1ef02450ee82845.tar.gz
* i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
for stabs and COFF debug info.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c7
1 files changed, 7 insertions, 0 deletions
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);
}