This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Register setting problem
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: GDB Mailing List <gdb at sources dot redhat dot com>
- Date: Tue, 17 Sep 2002 17:15:44 -0400
- Subject: Re: Register setting problem
- References: <20020917171141.A17795@sikorsky.com>
On Tue, Sep 17, 2002 at 05:11:41PM -0400, Ron McCall wrote:
> Hi,
>
> I am using GDB from CVS on August 12th, targeted to powerpc-eabi. No
> matter which general purpose register I try to set, r0 gets set instead.
> For example, both "set $r3=15" and "set var $r3=15" result in r0==15 and
> r3 unchanged. In case it matters, I am using target remote. With
> remote debugging turned on, I can see 'P' packets go out in these cases
> but always with register number 0. If I disable the 'P' packet, a 'G'
> packet goes out instead but the modified value is still the first 8 hex
> digits (register r0).
>
> Has anyone else seen this?
Yes. I believe you need a newer snapshot; Andrew fixed it soon after.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer