aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-08-29 13:04:44 +0000
committerMark Kettenis <kettenis@gnu.org>2003-08-29 13:04:44 +0000
commita16d75cc48137e18e4fded2e03fe1d535a5543a3 (patch)
treed8b963bfe49271a84081ce540e61422dada5d25e /gdb/regcache.c
parent7bace51ba7ef8771a61980c5283bb8fc980fdf38 (diff)
downloadgdb-a16d75cc48137e18e4fded2e03fe1d535a5543a3.zip
gdb-a16d75cc48137e18e4fded2e03fe1d535a5543a3.tar.gz
gdb-a16d75cc48137e18e4fded2e03fe1d535a5543a3.tar.bz2
* regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
null pointer. Fix typo in comment.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 36f3c56..d59b285 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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);