[djgpp/RFA] Fix crashes due to invalid numregs

Mark Kettenis mark.kettenis@xs4all.nl
Thu Apr 30 21:38:00 GMT 2009


> 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);
>  }
>  
>  
> 



More information about the Gdb-patches mailing list