Various cleanups in target read/write code
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 12 Jun 2015 17:08:12 +0000 (13:08 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 12 Jun 2015 17:08:12 +0000 (13:08 -0400)
commit279a6fed95275b480d50f6f1d80a4f3970a9c5bc
treebcb7a25e0ef532d2cadaa62f28ab26b5853fc8dc
parentaaa9dc0170d5a2c09712f65f38dd308e7cfd4df0
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.
gdb/ChangeLog
gdb/target.c
gdb/target.h