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.
This commit is contained in:
parent
aaa9dc0170
commit
279a6fed95
3 changed files with 60 additions and 47 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue