diff options
author | Eli Zaretskii <eliz@gnu.org> | 2009-05-29 11:38:39 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2009-05-29 11:38:39 +0000 |
commit | 3d22076f965f5faf9f2cf9f2302227513db7f80a (patch) | |
tree | 492dbb362e8cf178f5ed199c75cc51e2e943daf7 /gdb/i386-tdep.c | |
parent | 0dc69033a0bf41ec851f19ca191949bf95e19b2c (diff) | |
download | gdb-3d22076f965f5faf9f2cf9f2302227513db7f80a.zip gdb-3d22076f965f5faf9f2cf9f2302227513db7f80a.tar.gz gdb-3d22076f965f5faf9f2cf9f2302227513db7f80a.tar.bz2 |
* 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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index bfd2bab..60526b0 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); } |