* config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
[deliverable/binutils-gdb.git] / gdb / remote-es.c
index 66a62dae3df81cb9184d8773812bd438a1556095..8f4e01b85f7b0e72d6a0168b0f4dfc649947bfae 100644 (file)
@@ -90,6 +90,10 @@ STP
 */
 
 
+#if 0
+/* Comment out entire file until it can be fixed (need to clean up
+   TERMINAL, etc.).  */
+
 #include <stdio.h>
 #include <signal.h>
 #include <sys/ioctl.h>
@@ -161,8 +165,7 @@ es1800_prepare_to_store PARAMS ((void));
 static int
 es1800_wait PARAMS ((WAITTYPE *));
 
-static void
-es1800_resume PARAMS ((int, int, int));
+static void es1800_resume PARAMS ((int, int, enum target_signal));
 
 static void
 es1800_detach PARAMS ((char *, int));
@@ -654,7 +657,7 @@ static void
 es1800_resume (pid, step, siggnal)
      int pid;
      int step;
-     int siggnal;
+     enum target_signal siggnal;
 {
   char buf[PBUFSIZ];
 
@@ -679,12 +682,14 @@ es1800_resume (pid, step, siggnal)
  
 static int
 es1800_wait (status)
-     WAITTYPE *status;
+     struct target_waitstatus *status;
 {
   unsigned char buf[PBUFSIZ];
   int old_timeout = timeout;
 
-  WSETEXIT ((*status), 0);
+  status->kind = TARGET_WAITKIND_EXITED;
+  status->value.integer = 0;
+
   timeout = 0;         /* Don't time out -- user program is running. */
   if (!setjmp (interrupt))
     {
@@ -694,7 +699,8 @@ es1800_wait (status)
          getmessage (buf, sizeof(buf));
          if (strncmp ( buf, "\r\n* BREAK *", 11) == 0) 
            {
-             WSETSTOP ((*status), SIGTRAP);
+             status->kind = TARGET_WAITKIND_STOPPED;
+             status->value.sig = TARGET_SIGNAL_TRAP;
              send_command ("STP");     /* Restore stack and PC and such */
              if (m68020)
                {
@@ -704,7 +710,8 @@ es1800_wait (status)
            }
          if (strncmp (buf, "STP\r\n ", 6) == 0)
            {
-             WSETSTOP ((*status), SIGTRAP);
+             status->kind = TARGET_WAITKIND_STOPPED;
+             status->value.sig = TARGET_SIGNAL_TRAP;
              break;
            }
          if (buf[strlen (buf) - 2] == 'R')
@@ -714,7 +721,8 @@ es1800_wait (status)
          else
            {
              printf ("Unexpected stop: \n%s\n", buf);
-             WSETSTOP ((*status), SIGQUIT);
+             status->kind = TARGET_WAITKIND_STOPPED;
+             status->value.sig = TARGET_SIGNAL_QUIT;
              break;
            }
         }
@@ -728,7 +736,8 @@ es1800_wait (status)
          old_sigint = signal (SIGINT, es1800_request_quit);
          send_command ("STP");
          printf (" emulator stopped\n");
-         WSETSTOP ((*status), SIGINT);
+         status->kind = TARGET_WAITKIND_STOPPED;
+         status->value.sig = TARGET_SIGNAL_INT;
         }
       else
        {
@@ -1611,7 +1620,8 @@ es1800_create_inferior (execfile, args, env)
   /* trap_expected = 0; */
   /* insert_step_breakpoint ();  FIXME, do we need this?  */
 
-  proceed ((CORE_ADDR) entry_pt, -1, 0);               /* Let 'er rip... */
+  /* Let 'er rip... */
+  proceed ((CORE_ADDR) entry_pt, TARGET_SIGNAL_DEFAULT, 0);
 
 }
 
@@ -2249,16 +2259,17 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   NULL,                                /* to_sections_end */
   OPS_MAGIC                    /* to_magic (always last) */
 };
-
-/* _initialize_es1800 ()  */
+#endif /* 0 */
 
 void
 _initialize_es1800 ()
 {
+#if 0
   add_target (&es1800_ops);
   add_target (&es1800_child_ops);
   add_com ("transparent", class_support, es1800_transparent,
           "Start transparent communication with the ES 1800 emulator.");
   add_com ("init_break", class_support, es1800_init_break,
           "Download break routine and initialize break facility on ES 1800");
+#endif
 }
This page took 0.025002 seconds and 4 git commands to generate.