This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [djgpp/RFA] Fix crashes due to invalid numregs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]