aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-main.c
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/mi/mi-main.c
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/mi/mi-main.c')
-rw-r--r--gdb/mi/mi-main.c4
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 (&current_target, TARGET_OBJECT_MEMORY, NULL,
- mbuf, addr, total_bytes);
+ nr_bytes = target_read_until_error (&current_target, TARGET_OBJECT_MEMORY,
+ NULL, mbuf, addr, total_bytes);
if (nr_bytes <= 0)
error ("Unable to read memory.");