Re: Writing regs to corefile

Daniel Jacobowitz
2005-04-25T21:48:46Z

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