This is the mail archive of the
mailing list for the GDB project.
Re: mips gdbserver reports R0 != 0
>>>>> On Wed, 28 Jan 2004 10:34:15 +0900 (JST), Atsushi Nemoto <email@example.com> 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 :-)