diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-12 17:02:44 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-12 17:03:19 -0400 |
commit | d309493c38fcef624f6f85aee4aa37f4f9e3e62a (patch) | |
tree | ba4610e81e6553b93f5d75bd9b54962b421b2acf /gdb/ChangeLog | |
parent | 3374165f51fa3cc3ce1b1bf8c72293464da9d511 (diff) | |
download | gdb-d309493c38fcef624f6f85aee4aa37f4f9e3e62a.zip gdb-d309493c38fcef624f6f85aee4aa37f4f9e3e62a.tar.gz gdb-d309493c38fcef624f6f85aee4aa37f4f9e3e62a.tar.bz2 |
target: consider addressable unit size when reading/writing memory
If we are reading/writing from a memory object, the length represents
the number of "addresses" to read/write, so the addressable unit size
needs to be taken into account when allocating memory on gdb's side.
gdb/ChangeLog:
* target.c (target_read): Consider addressable unit size when
reading from a memory object.
(read_memory_robust): Same.
(read_whatever_is_readable): Same.
(target_write_with_progress): Consider addressable unit size
when writing to a memory object.
* target.h (target_read): Update documentation.
(target_write): Add documentation.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1b28992..bc30a8c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,16 @@ 2015-06-12 Simon Marchi <simon.marchi@ericsson.com> + * target.c (target_read): Consider addressable unit size when + reading from a memory object. + (read_memory_robust): Same. + (read_whatever_is_readable): Same. + (target_write_with_progress): Consider addressable unit size + when writing to a memory object. + * target.h (target_read): Update documentation. + (target_write): Add documentation. + +2015-06-12 Simon Marchi <simon.marchi@ericsson.com> + * arch-utils.h (default_addressable_memory_unit_size): New. * arch-utils.c (default_addressable_memory_unit_size): New. * gdbarch.sh (addressable_memory_unit_size): New. |