diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-12 13:08:12 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-12 13:08:12 -0400 |
commit | 279a6fed95275b480d50f6f1d80a4f3970a9c5bc (patch) | |
tree | bcb7a25e0ef532d2cadaa62f28ab26b5853fc8dc /gdb/target.h | |
parent | aaa9dc0170d5a2c09712f65f38dd308e7cfd4df0 (diff) | |
download | gdb-279a6fed95275b480d50f6f1d80a4f3970a9c5bc.zip gdb-279a6fed95275b480d50f6f1d80a4f3970a9c5bc.tar.gz gdb-279a6fed95275b480d50f6f1d80a4f3970a9c5bc.tar.bz2 |
Various cleanups in target read/write code
This contains various cleanups in the target memory read and write code.
They are not directly related to the non-8-bits changes, but they
clarify things a bit down the line.
gdb/ChangeLog:
* target.c (target_read): Rename variables and use
TARGET_XFER_E_IO.
(target_read_with_progress): Same.
(read_memory_robust): Constify parameters and rename
variables.
(read_whatever_is_readable): Constify parameters,
rename variables, adjust formatting.
* target.h (read_memory_robust): Constify parameters.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.h b/gdb/target.h index 909cc1d..c7046be 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -297,9 +297,9 @@ DEF_VEC_O(memory_read_result_s); extern void free_memory_read_result_vector (void *); extern VEC(memory_read_result_s)* read_memory_robust (struct target_ops *ops, - ULONGEST offset, - LONGEST len); - + const ULONGEST offset, + const LONGEST len); + extern LONGEST target_write (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, |