This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[djgpp/RFA] Fix crashes due to invalid numregs
- From: Eli Zaretskii <eliz at gnu dot org>
- To: gdb-patches at sourceware dot org
- Date: Thu, 30 Apr 2009 22:10:28 +0300
- Subject: [djgpp/RFA] Fix crashes due to invalid numregs
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
This patch avoids internal_error's in the DJGPP port in places like
"finish", when GDB refills its regcache and tries to request too many
registers.
OK to commit?
2009-04-29 Eli Zaretskii <eliz@gnu.org>
* i386-tdep.c (i386_go32_init_abi): Override the number of
registers due to non-support of SSE.
--- i386-tdep.c~ 2009-02-17 10:14:16.000000000 +0200
+++ i386-tdep.c 2009-04-29 13:40:00.314875000 +0300
@@ -2594,6 +2594,10 @@
tdep->sigtramp_p = NULL;
tdep->jb_pc_offset = 36;
+
+ /* DJGPP does not support the SSE registers. */
+ tdep->num_xmm_regs = 0;
+ set_gdbarch_num_regs (gdbarch, I386_NUM_GREGS + I386_NUM_FREGS);
}