]> Git Repo - binutils.git/blobdiff - gdb/remote-nindy.c
Fix miscellaneous comparisons of integer with NULL that elicit compiler
[binutils.git] / gdb / remote-nindy.c
index 5724f423977fdeb8ff96f8637543fd7c49dd1b7c..f4b3436677aa8c695306b43298a0a86f44d66b9c 100644 (file)
@@ -101,7 +101,6 @@ NINDY ROM monitor at the other end of the line.
 #include <setjmp.h>
 
 #include "defs.h"
-#include "param.h"
 #include "frame.h"
 #include "inferior.h"
 #include "target.h"
@@ -124,14 +123,13 @@ extern char *getenv();
 extern char *mktemp();
 
 extern char *coffstrip();
-extern void add_syms_addr_command ();
 extern value call_function_by_hand ();
 extern void generic_mourn_inferior ();
 
 extern struct target_ops nindy_ops;
 extern jmp_buf to_top_level;
 extern FILE *instream;
-extern struct ext_format ext_format_i960[];    /* i960-tdep.c */
+extern struct ext_format ext_format_i960;      /* i960-tdep.c */
 
 extern char ninStopWhy ();
 
@@ -220,6 +218,8 @@ nindy_open (name, from_tty)
   if (!name)
     error_no_arg ("serial port device name");
 
+  target_preopen (from_tty);
+  
   nindy_close (0);
 
        have_regs = regs_changed = 0;
@@ -250,7 +250,6 @@ nindy_detach (name, from_tty)
      char *name;
      int from_tty;
 {
-  dont_repeat ();
   if (name)
     error ("Too many arguments");
   pop_target ();
@@ -495,7 +494,7 @@ nindy_fetch_registers(regno)
                         &nindy_regs.fp_as_double[8 * (regnum - FP0_REGNUM)],
                         &inv);
     /* dub now in host byte order */
-    double_to_ieee_extended (ext_format_i960, &dub,
+    double_to_ieee_extended (&ext_format_i960, &dub,
                             &registers[REGISTER_BYTE (regnum)]);
   }
 
@@ -524,7 +523,7 @@ nindy_store_registers(regno)
   bcopy (&registers[REGISTER_BYTE (TCW_REGNUM)], nindy_regs.tcw,         1*4);
   /* Float regs.  Only works on IEEE_FLOAT hosts.  */
   for (regnum = FP0_REGNUM; regnum < FP0_REGNUM + 4; regnum++) {
-    ieee_extended_to_double (ext_format_i960,
+    ieee_extended_to_double (&ext_format_i960,
                             &registers[REGISTER_BYTE (regnum)], &dub);
     /* dub now in host byte order */
     /* FIXME-someday, the arguments to unpack_double are backward.
@@ -572,11 +571,12 @@ nindy_store_word (addr, word)
    FIXME, rewrite this to not use the word-oriented routines.  */
 
 int
-nindy_xfer_inferior_memory(memaddr, myaddr, len, write)
+nindy_xfer_inferior_memory(memaddr, myaddr, len, write, target)
      CORE_ADDR memaddr;
      char *myaddr;
      int len;
      int write;
+     struct target_ops *target;                        /* ignored */
 {
   register int i;
   /* Round starting address down to longword boundary.  */
@@ -933,6 +933,11 @@ nindy_before_main_loop ()
 
 struct target_ops nindy_ops = {
        "nindy", "Remote serial target in i960 NINDY-specific protocol",
+       "Use a remote i960 system running NINDY connected by a serial line.\n\
+Specify the name of the device the serial line is connected to.\n\
+The speed (baud rate), whether to use the old NINDY protocol,\n\
+and whether to send a break on startup, are controlled by options\n\
+specified when you started GDB.",
        nindy_open, nindy_close,
        0, nindy_detach, nindy_resume, nindy_wait,
        nindy_fetch_registers, nindy_store_registers,
@@ -941,13 +946,14 @@ struct target_ops nindy_ops = {
        0, 0, /* insert_breakpoint, remove_breakpoint, */
        0, 0, 0, 0, 0,  /* Terminal crud */
        nindy_kill,
-       nindy_load, add_syms_addr_command,
+       nindy_load,
        call_function_by_hand,
        0, /* lookup_symbol */
        nindy_create_inferior,
        nindy_mourn_inferior,
        process_stratum, 0, /* next */
        1, 1, 1, 1, 1,  /* all mem, mem, stack, regs, exec */
+       0, 0,                   /* Section pointers */
        OPS_MAGIC,              /* Always the last thing */
 };
 
This page took 0.027018 seconds and 4 git commands to generate.