From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28397 invoked by alias); 17 Dec 2004 22:45:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28377 invoked from network); 17 Dec 2004 22:45:45 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 17 Dec 2004 22:45:45 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CfQqy-0000JI-NQ; Fri, 17 Dec 2004 17:45:40 -0500 Date: Sat, 18 Dec 2004 01:24:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: Recognize 'x' in response to 'p' packet Message-ID: <20041217224540.GA1084@nevyn.them.org> Mail-Followup-To: Jim Blandy , gdb-patches@sources.redhat.com References: <20041217193240.GA19185@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-12/txt/msg00406.txt.bz2 On Fri, Dec 17, 2004 at 05:35:23PM -0500, Jim Blandy wrote: > Daniel Jacobowitz writes: > > I know this came up a bit already, but could you elaborate on why you > > had to silently provide a value of 0? We do have a defined interface > > for 'currently not available', though we do not use it well. This > > isn't support for the xx response, just a workaround. > > I just missed it. Is this (untested!) what you're looking for? > > 2004-12-17 Jim Blandy > > * remote.c (fetch_register_using_p): Recognize a register value > starting with 'x' as indicating an unfetchable register. More or less. Spelling, formatting, and the fallthrough here: > ! /* If this register is unfetchable, tell the regcache. */ > ! if (buf[0] == 'x') > ! { > ! regcache_raw_supply (current_regcache, regnum, NULL); > ! set_register_cached (regnum, -1); return ; > } > > ! /* Otherwise, parse and supply the value. */ My real question, though, is what you needed this for - and whether marking the register unavailable fixes it. -- Daniel Jacobowitz