diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-09-30 14:16:20 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-09-30 14:16:20 +0000 |
commit | b8eb5af093e01c27b2b9f7977dc28b0173ee3f05 (patch) | |
tree | 5f6d56b039cd2a8ed3d194cf3ada09087e38f765 /gdb/target.c | |
parent | 3631a3c82fe991ff19b1e3a41b0a6395c2ac4b60 (diff) | |
download | gdb-b8eb5af093e01c27b2b9f7977dc28b0173ee3f05.zip gdb-b8eb5af093e01c27b2b9f7977dc28b0173ee3f05.tar.gz gdb-b8eb5af093e01c27b2b9f7977dc28b0173ee3f05.tar.bz2 |
2004-09-30 Andrew Cagney <cagney@gnu.org>
* target.c (target_read_string): Use target_read_memory instead of
target_xfer_memory.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c index b390114..38eb375 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -781,7 +781,7 @@ target_read_string (CORE_ADDR memaddr, char **string, int len, int *errnop) tlen = MIN (len, 4 - (memaddr & 3)); offset = memaddr & 3; - errcode = target_xfer_memory (memaddr & ~3, buf, 4, 0); + errcode = target_read_memory (memaddr & ~3, buf, 4); if (errcode != 0) { /* The transfer request might have crossed the boundary to an @@ -789,7 +789,7 @@ target_read_string (CORE_ADDR memaddr, char **string, int len, int *errnop) a single byte. */ tlen = 1; offset = 0; - errcode = target_xfer_memory (memaddr, buf, 1, 0); + errcode = target_read_memory (memaddr, buf, 1); if (errcode != 0) goto done; } |