From 5db7cc25b83463e187321d88b1456684326ba511 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 1 Nov 1996 15:53:28 +0000 Subject: [PATCH] Make gdb compile & link cleanly on powerpc-linux --- gdb/ChangeLog | 9 +++++++++ gdb/monitor.c | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0725fe..336c669 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +Fri Nov 1 10:50:51 1996 Michael Meissner + + * config/powerpc/linux.mh (NATDEPFILES): Fix up things so that it + links. + (GDBSERVER_DEPFILES,TERMCAP): Ditto. + + * monitor.c (dev_name,targ_ops): Move static variables before + first use, to avoid compiler warnings. + start-sanitize-m32r Thu Oct 31 16:37:17 1996 Michael Snyder diff --git a/gdb/monitor.c b/gdb/monitor.c index f343f98..1b5553a 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -59,6 +59,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "dcache.h" #include "srec.h" +static char *dev_name; +static struct target_ops *targ_ops; + static int readchar PARAMS ((int timeout)); static void monitor_command PARAMS ((char *args, int fromtty)); @@ -527,9 +530,6 @@ compile_pattern (pattern, compiled_pattern, fastmap) /* Open a connection to a remote debugger. NAME is the filename used for communication. */ -static char *dev_name; -static struct target_ops *targ_ops; - void monitor_open (args, mon_ops, from_tty) char *args; -- 2.7.4