* i386-stub.c, sparc-stub.c (getpacket): Actually check checksums.
authorJohn Gilmore <gnu@cygnus>
Thu, 10 Sep 1992 19:18:05 +0000 (19:18 +0000)
committerJohn Gilmore <gnu@cygnus>
Thu, 10 Sep 1992 19:18:05 +0000 (19:18 +0000)
* m68k-stub.c:  Remove a few extraneous ANSI-isms.
* remote-nindy.c (nindy_prepare_to_store):  Only fetch regs if
they aren't already there.
* remote-vx.c (vx_prepare_to_store):  Ditto.
* xcoffread.c:  Surround forward struct defns with #ifdef __STDC__.

gdb/ChangeLog
gdb/remote-nindy.c
gdb/remote-vx.c
gdb/sparc-stub.c
gdb/xcoffread.c

index 0670994bbe4c145673331d6199f13e19bf4fac00..b5c6487c733a940599cbf6e1813e29181cd53d88 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep  9 17:36:53 1992  John Gilmore  (gnu@cygnus.com)
+
+       * i386-stub.c, sparc-stub.c (getpacket):  Actually check checksums.
+       * m68k-stub.c:  Remove a few extraneous ANSI-isms.
+       * remote-nindy.c (nindy_prepare_to_store):  Only fetch regs if 
+       they aren't already there.
+       * remote-vx.c (vx_prepare_to_store):  Ditto.
+       * xcoffread.c:  Surround forward struct defns with #ifdef __STDC__.
+
 Wed Sep  9 16:50:22 1992  John Gilmore  (gnu@cygnus.com)
 
        Removed a large number of changes inserted by Per Bothner
index d07a515dc3e719cd370e4826e50a9c4295cd25fb..1e38f3d3bd412f4117582a6fddc53f8358a9890a 100644 (file)
@@ -502,7 +502,8 @@ nindy_fetch_registers(regno)
 static void
 nindy_prepare_to_store()
 {
-  nindy_fetch_registers(-1);
+  /* Fetch all regs if they aren't already here.  */
+  read_register_bytes (0, NULL, REGISTER_BYTES);
 }
 
 static void
index 3ba3b88c6809818606de5386f82d070d27028588..b9a74fea5eea34221f73ae40c8faf52640520356 100644 (file)
@@ -474,7 +474,8 @@ vx_read_register (regno)
 static void
 vx_prepare_to_store ()
 {
-  vx_read_register (-1);
+  /* Fetch all registers, if any of them are not yet fetched.  */
+  read_register_bytes (0, NULL, REGISTER_BYTES);
 }
 
 
index 62636c2cad7f780b3530bb75d7bd0a873ebe64a2..47b98109d73a43733946ce424609c558940aebbe 100644 (file)
@@ -289,11 +289,6 @@ getpacket(buffer)
        {
          xmitcsum = hex(getDebugChar()) << 4;
          xmitcsum |= hex(getDebugChar());
-#if 1
-         /* Humans shouldn't have to figure out checksums to type to it. */
-         putDebugChar ('+');
-         return;
-#endif
          if (checksum != xmitcsum)
            putDebugChar('-');  /* failed checksum */
          else
index 579ed3083e383b2dbe6d889b29c423d666e277f3..2710ce5a20be1538c6819728ce6192fda0cf5795 100644 (file)
@@ -182,7 +182,9 @@ xcoff_symfile_init PARAMS ((struct objfile *));
 static void
 xcoff_new_init PARAMS ((struct objfile *));
 
+#ifdef __STDC__
 struct section_offset;
+#endif
 
 static void
 xcoff_symfile_read PARAMS ((struct objfile *, struct section_offset *, int));