Lint
authorJohn Gilmore <gnu@cygnus>
Tue, 15 Dec 1992 07:29:28 +0000 (07:29 +0000)
committerJohn Gilmore <gnu@cygnus>
Tue, 15 Dec 1992 07:29:28 +0000 (07:29 +0000)
gdb/ChangeLog
gdb/remote-nindy.c
gdb/tm-nindy960.h

index 29698d15de4819b2f4e4c10154bd6d41136a77b1..64803b7d249f417747047215ee26cf1474ac521d 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec 14 23:28:15 1992  John Gilmore  (gnu@cygnus.com)
+
+       * tm-nindy960.h, remote-nindy.c:  Lint.
+
 Mon Dec 14 18:48:52 1992  Fred Fish  (fnf@cygnus.com)
 
        * gdbtypes.c (create_array_type):  Complete rewrite.  Now requires
index 8081067ddd1bfb6dd0b4dddf8d4b914273dd37b5..d6f66770f045d73805eba0b62d22d921d0ab8d28 100644 (file)
@@ -351,7 +351,7 @@ nindy_resume (step, siggnal)
 
        dcache_flush();
        if ( regs_changed ){
-               nindy_store_registers ();
+               nindy_store_registers (-1);
                regs_changed = 0;
        }
        have_regs = 0;
@@ -429,9 +429,12 @@ nindy_wait( status )
                                        immediate_quit--;
                                } else {
                                        /* Get out of loop */
-                                       supply_register (IP_REGNUM, &ip_value);
-                                       supply_register (FP_REGNUM, &fp_value);
-                                       supply_register (SP_REGNUM, &sp_value);
+                                       supply_register (IP_REGNUM, 
+                                                        (char *)&ip_value);
+                                       supply_register (FP_REGNUM, 
+                                                        (char *)&fp_value);
+                                       supply_register (SP_REGNUM, 
+                                                        (char *)&sp_value);
                                        break;
                                }
                        }
@@ -530,7 +533,7 @@ nindy_store_registers(regno)
   bcopy (&registers[REGISTER_BYTE (PCW_REGNUM)], nindy_regs.pcw_acw,     2*4);
   bcopy (&registers[REGISTER_BYTE (IP_REGNUM)], nindy_regs.ip,           1*4);
   bcopy (&registers[REGISTER_BYTE (TCW_REGNUM)], nindy_regs.tcw,         1*4);
-  /* Float regs.  Only works on IEEE_FLOAT hosts.  */
+  /* Float regs.  Only works on IEEE_FLOAT hosts.  FIXME!  */
   for (regnum = FP0_REGNUM; regnum < FP0_REGNUM + 4; regnum++) {
     ieee_extended_to_double (&ext_format_i960,
                             &registers[REGISTER_BYTE (regnum)], &dub);
@@ -538,7 +541,7 @@ nindy_store_registers(regno)
     /* FIXME-someday, the arguments to unpack_double are backward.
        It expects a target double and returns a host; we pass the opposite.
        This mostly works but not quite.  */
-    dub = unpack_double (builtin_type_double, &dub, &inv);
+    dub = unpack_double (builtin_type_double, (char *)&dub, &inv);
     /* dub now in target byte order */
     bcopy ((char *)&dub, &nindy_regs.fp_as_double[8 * (regnum - FP0_REGNUM)],
        8);
@@ -893,6 +896,7 @@ nindy_mourn_inferior ()
    of this with a RETURN.  This is useful when e.g. simply examining
    an i960 object file on the host system.  */
 
+void
 nindy_before_main_loop ()
 {
   char ttyname[100];
index 7237278d971423d65a5edeb3b632a3d2d6a5fd93..b32eaa89a365670a5cf54c436b20cc6cb8c12c80 100644 (file)
@@ -70,6 +70,9 @@ extern char *nindy_ttyname;   /* Name of serial port to talk to nindy */
 #define        BEFORE_MAIN_LOOP_HOOK   \
   nindy_before_main_loop();
 
+extern void
+nindy_before_main_loop();              /* In remote-nindy.c */
+
 /* Address of end of stack space.
  *     This probably doesn't matter for nindy, because it's only used
  *     in manipulation of core files, which we don't support.
@@ -87,7 +90,8 @@ extern char *nindy_ttyname;   /* Name of serial port to talk to nindy */
 #define        FRAME_CHAIN_VALID(chain, thisframe) \
        nindy_frame_chain_valid (chain, thisframe)
 
-extern int nindy_frame_chain_valid();          /* See nindy-tdep.c */
+extern int
+nindy_frame_chain_valid();             /* See nindy-tdep.c */
 
 /* Sequence of bytes for breakpoint instruction */