aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-10-17 06:40:22 -0600
committerTom Tromey <tom@tromey.com>2017-10-17 06:42:36 -0600
commit57e12da97f8dbe2ad5b4f59bf89c709c4d66600d (patch)
tree3384ac539a1b393d23a09dcb3080a0e7ebfd2ab5 /gdb/regcache.c
parentcf54ebff3b7361989712fd9c0128a9b255578163 (diff)
downloadgdb-57e12da97f8dbe2ad5b4f59bf89c709c4d66600d.zip
gdb-57e12da97f8dbe2ad5b4f59bf89c709c4d66600d.tar.gz
gdb-57e12da97f8dbe2ad5b4f59bf89c709c4d66600d.tar.bz2
Remove obsolete assertion from regcache.c
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.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 555db57..603d2f2 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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