From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32670 invoked by alias); 25 Apr 2005 21:48:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27978 invoked from network); 25 Apr 2005 21:45:29 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 25 Apr 2005 21:45:29 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DQBOS-0007Pp-JZ; Mon, 25 Apr 2005 17:45:28 -0400 Date: Tue, 26 Apr 2005 00:13:00 -0000 From: Daniel Jacobowitz To: Jon Ringle Cc: gdb@sources.redhat.com Subject: Re: Writing regs to corefile Message-ID: <20050425214527.GA28432@nevyn.them.org> Mail-Followup-To: Jon Ringle , gdb@sources.redhat.com References: <200504251636.13657.jon.ringle@comdial.com> <20050425204447.GA26391@nevyn.them.org> <200504251651.09929.jon.ringle@comdial.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504251651.09929.jon.ringle@comdial.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-04/txt/msg00185.txt.bz2 On Mon, Apr 25, 2005 at 04:51:09PM -0400, Jon Ringle wrote: > > > I can't seem to write directly to the core file register set from within > > > gdb (which is why I was hand editing the core file): > > > (gdb) set $r0 = 0xffffffe4 > > > You can't do that without a process to debug. > > > > Yeah. This is a bit unfortunate. Maybe we should allow the loaded > > copy of the registers to be changed. > > I was looking at corelow.c to see if I could add a core_ops.to_store_registers > function to do just that. However, the first problem I encountered is that > the to_store_registers definition seems to only have a regno parameter. How > do I get access to the value of regno to be stored? >From the register cache. You probably don't need to do anything in your dummy to_store_registers routine. -- Daniel Jacobowitz CodeSourcery, LLC