]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdbserver: regcache: Update comment in supply_regblock
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sat, 5 Apr 2025 23:40:08 +0000 (20:40 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sat, 5 Apr 2025 23:40:08 +0000 (20:40 -0300)
Since commit 84da4a1ea0ae ("gdbserver: refactor the definition and uses of
supply_regblock") there is no case where supply_regblock is passed a
nullptr for the BUF argument, and there is even a gdb_assert to make
sure of it.

Therefore remove that part of the documentation comment.

gdbserver/regcache.cc

index c08c9ae06c14dbf2a6e938369dd469023faa70a0..96855f03c3e53e444fbd343a3891deaed682f764 100644 (file)
@@ -353,8 +353,7 @@ supply_register_by_name_zeroed (struct regcache *regcache,
 #endif
 
 /* Supply the whole register set whose contents are stored in BUF, to
-   REGCACHE.  If BUF is NULL, all the registers' values are recorded
-   as unavailable.  */
+   REGCACHE.  */
 
 void
 supply_regblock (struct regcache *regcache, const void *buf)