* gdb.texinfo (Continuing and Stepping): When talking about "step"
[deliverable/binutils-gdb.git] / gdb / remote-z8k.c
index 744bc46b79b5cf627551b1babb19ec5d35fe8706..20d340dbaf7989ece8311aea405fa912572ab101 100644 (file)
@@ -38,11 +38,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 extern int stop_soon_quietly;  /* for wait_for_inferior */
 
 /* Forward data declarations */
-extern struct target_ops sim_ops;      /* Forward declaration */
+/*extern struct target_ops sim_ops;    /* Forward declaration */
 
 void sim_store_register ();
 void sim_set_oc ();
 
+int inferior_pid;
 int
 sim_write_inferior_memory (memaddr, myaddr, len)
      CORE_ADDR memaddr;
@@ -75,14 +76,13 @@ sim_kill (arg, from_tty)
      char *arg;
      int from_tty;
 {
-
 }
 
 /*
  * Download a file specified in 'args', to the sim.
  */
 static void
-sim_load (args, fromtty)
+sasassim_load (args, fromtty)
      char *args;
      int fromtty;
 {
@@ -125,7 +125,7 @@ sim_load (args, fromtty)
              bfd_get_section_contents (abfd, s, buffer, i, sub_delta);
              sim_write_inferior_memory (s->vma + i, buffer, sub_delta);
              printf_filtered ("*");
-             fflush (stdout);
+             gdb_flush (gdb_stdout);
            }
          printf_filtered ("\n");
          free (buffer);
@@ -158,9 +158,9 @@ sim_create_inferior (execfile, args, env)
   sim_clear_breakpoints ();
   init_wait_for_inferior ();
   insert_breakpoints ();
-  proceed (entry_pt, -1, 0);
+  proceed (entry_pt, TARGET_SIGNAL_DEFAULT, 0);
 }
-
+#if 0
 static void
 sim_open (name, from_tty)
      char *name;
@@ -203,20 +203,22 @@ sim_detach (args, from_tty)
   if (from_tty)
     printf_filtered ("Ending remote %s debugging\n", target_shortname);
 }
-
+#endif
 /* Tell the remote machine to resume.  */
 
 /* Wait until the remote machine stops, then return,
    storing status in STATUS just as `wait' would.  */
-
+#if 0
+/* See remote-sim.c for how this is done now.  */
 int
-sim_wait (status)
+sim_wait (pid, status)
+     int pid;
      WAITTYPE *status;
 {
-  *status = sim_stop_signal ();
-  return 0;
+  sim_stop_reason (&reason, &sigrc);
+  return inferior_pid;
 }
-
+#endif
 /* Get ready to modify the registers array.  On machines which store
    individual registers, this doesn't need to do anything.  On machines
    which store all the registers in one fell swoop, this makes sure
@@ -294,30 +296,35 @@ sim_files_info ()
    target specified yet, this will loop prompting the user to do so.
 */
 
+#if 0
 void
 sim_before_main_loop ()
 {
   push_target (&sim_ops);
 }
 
+
 /* Clear the sims notion of what the break points are */
 static void
 sim_mourn ()
 {
   sim_clear_breakpoints ();
+  unpush_target (&sim_ops);
   generic_mourn_inferior ();
 }
-
+#endif
 static void 
-rem_resume (a, b)
+rem_resume (pid, a, b)
+     int pid;
      int a;
-     int b;
+     enum target_signal siggnal;
 {
-  sim_resume (a, b);
+  sim_resume (a, target_signal_to_host (siggnal));
 }
 
-/* Define the target subroutine names */
 
+/* Define the target subroutine names */
+#if 0
 struct target_ops sim_ops =
 {
   "sim", "Remote SIM monitor",
@@ -348,9 +355,6 @@ struct target_ops sim_ops =
 void
 _initialize_remote_sim ()
 {
-  extern int sim_z8001_mode;
-
-  sim_z8001_mode = z8001_mode;
   add_target (&sim_ops);
-
 }
+#endif
This page took 0.02479 seconds and 4 git commands to generate.