This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Register setting problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]