gdb/
[deliverable/binutils-gdb.git] / gdb / cli / cli-dump.c
index 79d468ed19db4801fb412e8051d897360a6ade14..5072b29503356385c932117ffb2fb460c0e9107c 100644 (file)
@@ -30,6 +30,7 @@
 #include <ctype.h>
 #include "target.h"
 #include "readline/readline.h"
+#include "gdbcore.h"
 
 #define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE)))
 
@@ -246,7 +247,7 @@ dump_memory_to_file (char *cmd, char *mode, char *file_format)
      value.  */
   buf = xmalloc (count);
   make_cleanup (xfree, buf);
-  target_read_memory (lo, buf, count);
+  read_memory (lo, buf, count);
   
   /* Have everything.  Open/write the data.  */
   if (file_format == NULL || strcmp (file_format, "binary") == 0)
This page took 0.024094 seconds and 4 git commands to generate.