mips gdbserver reports R0 != 0

Atsushi Nemoto anemo@mba.ocn.ne.jp
Thu Jan 29 01:51:00 GMT 2004


>>>>> On Wed, 28 Jan 2004 10:34:15 +0900 (JST), Atsushi Nemoto <anemo@mba.ocn.ne.jp> said:
drow> Explicitly zeroing the register cache should fix this, so I'd be
drow> happier with that solution.

drow> [Do you have a copyright assignment on file for GDB, btw?  If
drow> not, I'll make the patch myself for you to test, to spare us the
drow> legal dance.]

anemo> No, I don't.  Please make the patch for me.  Then I will try
anemo> it.  Thank you.

I just inserted a line:

  memset (regcache->registers, 0, register_bytes);

to new_register_cache() (regcache.c:108) and it fixed my problem.  I
don't think anybody can do the legal dance on this line :-)

---
Atsushi Nemoto



More information about the Gdb-patches mailing list