diff options
Diffstat (limited to 'gdbserver/regcache.cc')
-rw-r--r-- | gdbserver/regcache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/regcache.cc b/gdbserver/regcache.cc index ee0c1b3..c08c9ae 100644 --- a/gdbserver/regcache.cc +++ b/gdbserver/regcache.cc @@ -503,7 +503,7 @@ regcache::raw_compare (int regnum, const void *buf, int offset) const gdb_assert (buf != NULL); gdb::array_view<const gdb_byte> regbuf = register_data (this, regnum); - gdb_assert (offset < regbuf.size ()); + gdb_assert (offset <= regbuf.size ()); regbuf = regbuf.slice (offset); return memcmp (buf, regbuf.data (), regbuf.size ()) == 0; |