This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [djgpp/RFA] Fix crashes due to invalid numregs
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: eliz at gnu dot org
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 30 Apr 2009 23:37:48 +0200 (CEST)
- Subject: Re: [djgpp/RFA] Fix crashes due to invalid numregs
- References: <83iqkmdkkb.fsf@gnu.org>
> Date: Thu, 30 Apr 2009 22:10:28 +0300
> From: Eli Zaretskii <eliz@gnu.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?
Looks fine to me.
> 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);
> }
>
>
>