* target.c (target_read_until_error): New.

* target.h (target_read_until_error): Declare.
        * mi/mi-main.c (mi_cmd_data_read_memory): Use
        target_read_until_error.
This commit is contained in:
Vladimir Prus
2008-06-26 15:10:48 +00:00
parent 54cde45796
commit d50867903f
5 changed files with 81 additions and 3 deletions

View File

@@ -230,6 +230,11 @@ extern LONGEST target_read (struct target_ops *ops,
const char *annex, gdb_byte *buf,
ULONGEST offset, LONGEST len);
extern LONGEST target_read_until_error (struct target_ops *ops,
enum target_object object,
const char *annex, gdb_byte *buf,
ULONGEST offset, LONGEST len);
extern LONGEST target_write (struct target_ops *ops,
enum target_object object,
const char *annex, const gdb_byte *buf,