diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-26 15:10:48 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-06-26 15:10:48 +0000 |
commit | d50867903fea3ec5cb9a85874aa45a08844952a7 (patch) | |
tree | d2799565753bb10d8972b1126d5cc4ad0a887abe /gdb/mi | |
parent | 54cde457963e524c3e8656dead262525a3d00130 (diff) | |
download | gdb-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/mi')
-rw-r--r-- | gdb/mi/mi-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 5d90c75..40e6cf5 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -782,8 +782,8 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc) mbuf = xcalloc (total_bytes, 1); make_cleanup (xfree, mbuf); - nr_bytes = target_read (¤t_target, TARGET_OBJECT_MEMORY, NULL, - mbuf, addr, total_bytes); + nr_bytes = target_read_until_error (¤t_target, TARGET_OBJECT_MEMORY, + NULL, mbuf, addr, total_bytes); if (nr_bytes <= 0) error ("Unable to read memory."); |