From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20013 invoked by alias); 16 Oct 2010 20:01:01 -0000 Received: (qmail 19998 invoked by uid 22791); 16 Oct 2010 20:01:00 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_EG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Oct 2010 20:00:56 +0000 Received: (qmail 30427 invoked from network); 16 Oct 2010 20:00:54 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 16 Oct 2010 20:00:54 -0000 From: Pedro Alves To: "H.J. Lu" Subject: Re: PATCH: gdbserver: Clear regcache if buf is NULL Date: Sat, 16 Oct 2010 20:01:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.33-29-realtime; KDE/4.4.2; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <20100203174414.GA29948@lucon.org> <201009282123.29913.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010162100.47407.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2010-10/txt/msg00265.txt.bz2 On Friday 01 October 2010 02:51:07, H.J. Lu wrote: > On Tue, Sep 28, 2010 at 1:23 PM, Pedro Alves wrote: > > Hi H.J.. I'm looking at where in the current sources this > > ended up being used, and not finding it. Am I right in thinking > > that the need for this was obsoleted when you later tought > > gdbserver x86-linux about xml descriptions? > > > > i387-fp.c has > > if ((x86_xcr0 & I386_XSTATE_SSE)) > { > int xmm0_regnum = find_regno ("xmm0"); > > if ((clear_bv & I386_XSTATE_SSE)) > p = NULL; > else > p = (char *) buf; > > for (i = 0; i < num_xmm_registers; i++) > { > if (p) > p = ((char *) &fp->xmm_space[0]) + i * 16; > supply_register (regcache, i + xmm0_regnum, p); > } > } > Thanks, and sorry as for not coming back to this promptly. Hmm, I don't think I have a way to trigger that. So is the registers' value really zero, or should gdb ideally present them as not available (and zero is just a hack)? -- Pedro Alves