This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix regcache_raw_supply
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 29 Aug 2003 15:05:12 +0200 (CEST)
- Subject: [PATCH] Fix regcache_raw_supply
Oops. I messed up and made the assertion a bit too struct.
Fixed by this patch.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
null pointer. Fix typo in comment.
Index: regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/regcache.c,v
retrieving revision 1.96
diff -u -p -r1.96 regcache.c
--- regcache.c 29 Aug 2003 11:48:04 -0000 1.96
+++ regcache.c 29 Aug 2003 13:04:00 -0000
@@ -1241,7 +1241,7 @@ regcache_collect (int regnum, void *buf)
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)
@@ -1249,7 +1249,7 @@ regcache_raw_supply (struct regcache *re
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);