* regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
authorMark Kettenis <kettenis@gnu.org>
Fri, 29 Aug 2003 13:04:44 +0000 (13:04 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 29 Aug 2003 13:04:44 +0000 (13:04 +0000)
null pointer.  Fix typo in comment.

gdb/ChangeLog
gdb/regcache.c

index 32c6819f5509e6bb57b2c7857a4f07e9418b44de..e7d670d7bf63218f75d3f2abdf5e36d08b9153b6 100644 (file)
@@ -1,5 +1,8 @@
 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.
index 36f3c56ed4444819d08ba8a991927b2a566d3969..d59b285e1f75ac982db5841e53ebe5c517021333 100644 (file)
@@ -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 *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);
 
This page took 0.029883 seconds and 4 git commands to generate.