]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/target.c
Clear non-significant bits of address on memory access
[thirdparty/binutils-gdb.git] / gdb / target.c
index 3b8b8ea2186ba61dc38b6af6b8e7c387e1a98f05..767a2ad45ac135b1c5150ea98481b53588f365c2 100644 (file)
@@ -1214,6 +1214,8 @@ memory_xfer_partial (struct target_ops *ops, enum target_object object,
   if (len == 0)
     return TARGET_XFER_EOF;
 
+  memaddr = address_significant (target_gdbarch (), memaddr);
+
   /* Fill in READBUF with breakpoint shadows, or WRITEBUF with
      breakpoint insns, thus hiding out from higher layers whether
      there are software breakpoints inserted in the code stream.  */