From: Jim Kingdon Date: Mon, 9 Aug 1993 21:12:01 +0000 (+0000) Subject: * remote-udi.c: Make udi_ops extern rather than trying forward X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=525390a20c1c9a7cfb2a7522e4f8fee80c152812;p=binutils-gdb.git * remote-udi.c: Make udi_ops extern rather than trying forward declaration of a static variable. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 466d8d7f95e..8d79c414c90 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 0dc5d953262..74efd098c67 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\