From: Mark Kettenis Date: Fri, 29 Aug 2003 13:04:44 +0000 (+0000) Subject: * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a16d75cc48137e18e4fded2e03fe1d535a5543a3;p=binutils-gdb.git * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a null pointer. Fix typo in comment. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32c6819f550..e7d670d7bf6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2003-08-29 Mark Kettenis + * 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. diff --git a/gdb/regcache.c b/gdb/regcache.c index 36f3c56ed44..d59b285e1f7 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);