2003-08-29 Mark Kettenis <kettenis@gnu.org>
+ * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
+ null pointer. Fix typo in comment.
+
* regcache.c (supply_register): Reimplement to call
regcache_raw_supply.
(regcache_collect): Reimplement by calling regcache_raw_collect.
regcache_raw_collect (current_regcache, regnum, buf);
}
-/* Supply register REGNUM, whose contents are store in BUF, to REGCACHE. */
+/* Supply register REGNUM, whose contents are stored in BUF, to REGCACHE. */
void
regcache_raw_supply (struct regcache *regcache, int regnum, const void *buf)
void *regbuf;
size_t size;
- gdb_assert (regcache != NULL && buf != NULL);
+ gdb_assert (regcache != NULL);
gdb_assert (regnum >= 0 && regnum < regcache->descr->nr_raw_registers);
gdb_assert (!regcache->readonly_p);