]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-09-30 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Thu, 30 Sep 2004 14:16:20 +0000 (14:16 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 30 Sep 2004 14:16:20 +0000 (14:16 +0000)
* target.c (target_read_string): Use target_read_memory instead of
target_xfer_memory.

gdb/ChangeLog
gdb/target.c

index 478fa638873bc51672c0d7b005813049baa0a8e8..3d6faccdc7a01a06203c25a4675051956b383f35 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-30  Andrew Cagney  <cagney@gnu.org>
+
+       * target.c (target_read_string): Use target_read_memory instead of
+       target_xfer_memory.
+
 2004-09-29  Andrew Cagney  <cagney@gnu.org>
 
        * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
index b3901149c9805d10fa6abd2b931ad8ec3dc03d34..38eb375a074921295620b33f4e28c210e8c0922c 100644 (file)
@@ -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;
        }