summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-10 19:18:05 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-10 19:18:05 +0000
commit4ddd278ffa3e6fb6aa2e956aa0c2a25b58bf56b7 (patch)
treec4d9e392e104317115969459cd0aaec7adae266a /gdb
parentf68be6f0888b3b506857929192abfa0900cbca22 (diff)
downloadbinutils-gdb-4ddd278ffa3e6fb6aa2e956aa0c2a25b58bf56b7.tar.gz
* 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__.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/remote-nindy.c3
-rw-r--r--gdb/remote-vx.c3
-rw-r--r--gdb/sparc-stub.c5
-rw-r--r--gdb/xcoffread.c2
5 files changed, 15 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0670994bbe4..b5c6487c733 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c
index d07a515dc3e..1e38f3d3bd4 100644
--- a/gdb/remote-nindy.c
+++ b/gdb/remote-nindy.c
@@ -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
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c
index 3ba3b88c680..b9a74fea5ee 100644
--- a/gdb/remote-vx.c
+++ b/gdb/remote-vx.c
@@ -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);
}
diff --git a/gdb/sparc-stub.c b/gdb/sparc-stub.c
index 62636c2cad7..47b98109d73 100644
--- a/gdb/sparc-stub.c
+++ b/gdb/sparc-stub.c
@@ -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
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 579ed3083e3..2710ce5a20b 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -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));