From b8eb5af093e01c27b2b9f7977dc28b0173ee3f05 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 30 Sep 2004 14:16:20 +0000 Subject: [PATCH] 2004-09-30 Andrew Cagney * target.c (target_read_string): Use target_read_memory instead of target_xfer_memory. --- gdb/ChangeLog | 5 +++++ gdb/target.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 478fa638873..3d6faccdc7a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-09-30 Andrew Cagney + + * target.c (target_read_string): Use target_read_memory instead of + target_xfer_memory. + 2004-09-29 Andrew Cagney * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass diff --git a/gdb/target.c b/gdb/target.c index b3901149c98..38eb375a074 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; } -- 2.30.2