]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove obsolete assertion from regcache.c
authorTom Tromey <tom@tromey.com>
Tue, 17 Oct 2017 12:40:22 +0000 (06:40 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 17 Oct 2017 12:42:36 +0000 (06:42 -0600)
When building I got:

../../binutils-gdb/gdb/regcache.c:935:24: error: the address of ‘ssize_t read(int, void*, size_t)’ will never be NULL [-Werror=address]

This happens because "read" used to be a parameter to this function,
which was then removed; but the assertion wasn't updated.

I don't think the assertion is relevant any more, to this removes it.
I'm checking it in as obvious.

2017-10-17  Tom Tromey  <tom@tromey.com>

* regcache.c (regcache::xfer_part): Remove assertion.

gdb/ChangeLog
gdb/regcache.c

index 65952c465b50ddcb042a94e5f394463b3e7994c0..0487dab28f34254ea4c0491c081e30319cc7ffc5 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-17  Tom Tromey  <tom@tromey.com>
+
+       * regcache.c (regcache::xfer_part): Remove assertion.
+
 2017-10-17  Pedro Alves  <palves@redhat.com>
 
        * xml-support.c (xml_fetch_content_from_file): Call
index 555db578b6ea81cbee7e8ef9acc6cf2fde215b41..603d2f211c7dc08421ecd8262b96ec3c26e44b59 100644 (file)
@@ -932,7 +932,6 @@ regcache::xfer_part (int regnum, int offset, int len, void *in,
     {
       enum register_status status;
 
-      gdb_assert (read != NULL);
       if (is_raw)
        status = raw_read (regnum, reg);
       else