include/opcode/
[deliverable/binutils-gdb.git] / gdb / target.c
index a9f92543e5b8320c5a0a8bca0bba6289db85faec..6b009a8e76cfb1322a9a0c28b44d2aee394dbfb7 100644 (file)
@@ -40,6 +40,7 @@
 #include "exceptions.h"
 #include "target-descriptions.h"
 #include "gdb_stdint.h"
+#include "gdbthread.h"
 
 static void target_info (char *, int);
 
@@ -1715,6 +1716,14 @@ target_disconnect (char *args, int from_tty)
   tcomplain ();
 }
 
+void
+target_resume (ptid_t ptid, int step, enum target_signal signal)
+{
+  dcache_invalidate (target_dcache);
+  (*current_target.to_resume) (ptid, step, signal);
+  set_running (ptid, 1);
+
+}
 /* Look through the list of possible targets for a target that can
    follow forks.  */
 
@@ -1788,7 +1797,7 @@ simple_search_memory (struct target_ops *ops,
 
   search_buf = malloc (search_buf_size);
   if (search_buf == NULL)
-    error (_("unable to allocate memory to perform the search"));
+    error (_("Unable to allocate memory to perform the search."));
   old_cleanups = make_cleanup (free_current_contents, &search_buf);
 
   /* Prime the search buffer.  */
@@ -1796,7 +1805,7 @@ simple_search_memory (struct target_ops *ops,
   if (target_read (ops, TARGET_OBJECT_MEMORY, NULL,
                   search_buf, start_addr, search_buf_size) != search_buf_size)
     {
-      warning (_("unable to access target memory at %s, halting search"),
+      warning (_("Unable to access target memory at %s, halting search."),
               hex_string (start_addr));
       do_cleanups (old_cleanups);
       return -1;
@@ -1849,7 +1858,7 @@ simple_search_memory (struct target_ops *ops,
                           search_buf + keep_len, read_addr,
                           nr_to_read) != nr_to_read)
            {
-             warning (_("unable to access target memory at %s, halting search"),
+             warning (_("Unable to access target memory at %s, halting search."),
                       hex_string (read_addr));
              do_cleanups (old_cleanups);
              return -1;
This page took 0.024728 seconds and 4 git commands to generate.