aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-06-26 15:10:48 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-06-26 15:10:48 +0000
commitd50867903fea3ec5cb9a85874aa45a08844952a7 (patch)
treed2799565753bb10d8972b1126d5cc4ad0a887abe /gdb/target.h
parent54cde457963e524c3e8656dead262525a3d00130 (diff)
downloadgdb-d50867903fea3ec5cb9a85874aa45a08844952a7.zip
gdb-d50867903fea3ec5cb9a85874aa45a08844952a7.tar.gz
gdb-d50867903fea3ec5cb9a85874aa45a08844952a7.tar.bz2
* 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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 902d428..9641f0d 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -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,