From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6802 invoked by alias); 30 Apr 2009 21:38:40 -0000 Received: (qmail 6788 invoked by uid 22791); 30 Apr 2009 21:38:39 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Apr 2009 21:38:35 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n3ULbmWs006147; Thu, 30 Apr 2009 23:37:48 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n3ULbmPt005631; Thu, 30 Apr 2009 23:37:48 +0200 (CEST) Date: Thu, 30 Apr 2009 21:38:00 -0000 Message-Id: <200904302137.n3ULbmPt005631@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: eliz@gnu.org CC: gdb-patches@sourceware.org In-reply-to: <83iqkmdkkb.fsf@gnu.org> (message from Eli Zaretskii on Thu, 30 Apr 2009 22:10:28 +0300) Subject: Re: [djgpp/RFA] Fix crashes due to invalid numregs References: <83iqkmdkkb.fsf@gnu.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00823.txt.bz2 > Date: Thu, 30 Apr 2009 22:10:28 +0300 > From: Eli Zaretskii > > 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 > > * 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); > } > > >