aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-08-09 21:12:01 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-08-09 21:12:01 +0000
commit525390a20c1c9a7cfb2a7522e4f8fee80c152812 (patch)
treeb18d2e49cdc9182613c53e1dfe8e954d1de73eb0
parente5c5fbca679679672ac8b07788f5ba23f39ccde0 (diff)
downloadbinutils-525390a20c1c9a7cfb2a7522e4f8fee80c152812.zip
binutils-525390a20c1c9a7cfb2a7522e4f8fee80c152812.tar.gz
binutils-525390a20c1c9a7cfb2a7522e4f8fee80c152812.tar.bz2
* remote-udi.c: Make udi_ops extern rather than trying forward
declaration of a static variable.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/remote-udi.c11
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 466d8d7..8d79c41 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Mon Aug 9 09:53:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * remote-udi.c: Make udi_ops extern rather than trying forward
+ declaration of a static variable.
+
* hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg
there, rather than using an ANSI C specific macro.
diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c
index 0dc5d95..74efd09 100644
--- a/gdb/remote-udi.c
+++ b/gdb/remote-udi.c
@@ -1476,12 +1476,13 @@ void convert16() {;}
void convert32() {;}
FILE* EchoFile = 0; /* used for debugging */
int QuietMode = 0; /* used for debugging */
+
+/* Target_ops vector. Not static because there does not seem to be
+ any portable way to do a forward declaration of a static variable.
+ The RS/6000 doesn't like "extern" followed by "static"; SunOS
+ /bin/cc doesn't like "static" twice. */
-/****************************************************************************/
-/*
- * Define the target subroutine names
- */
-static struct target_ops udi_ops = {
+struct target_ops udi_ops = {
"udi",
"Remote UDI connected TIP",
"Remote debug an AMD 29k using UDI socket connection to TIP process.\n\