From ae87844d7b1bab4184590aa40fcf6b4ff59cdf75 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 11 Aug 1993 23:12:02 +0000 Subject: [PATCH] * remote-{monitor,bug}.c: Make bug_ops not static (forward declaration of statics doesn't work with SunOS4 /bin/cc). Rename the occurrence in remote-monitor.c to monitor_bug_ops. --- gdb/ChangeLog | 6 ++++++ gdb/remote-bug.c | 4 ++-- gdb/remote-monitor.c | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8fd7147d4b9..135dfc42bd3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Wed Aug 11 17:54:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * remote-{monitor,bug}.c: Make bug_ops not static (forward declaration + of statics doesn't work with SunOS4 /bin/cc). + Rename the occurrence in remote-monitor.c to monitor_bug_ops. + Tue Aug 10 13:07:14 1993 Jim Kingdon (kingdon@deneb.cygnus.com) * blockframe.c (find_pc_partial_function), diff --git a/gdb/remote-bug.c b/gdb/remote-bug.c index 43c4cd345e9..af447a4143f 100644 --- a/gdb/remote-bug.c +++ b/gdb/remote-bug.c @@ -39,7 +39,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ extern int stop_soon_quietly; /* for wait_for_inferior */ /* Forward data declarations */ -static struct target_ops bug_ops; /* Forward declaration */ +extern struct target_ops bug_ops; /* Forward declaration */ /* Forward function declarations */ static void bug_fetch_registers (); @@ -1436,7 +1436,7 @@ bug_speed (s) } #endif /* 0 */ -static struct target_ops bug_ops = +struct target_ops bug_ops = { "bug", "Remote BUG monitor", "Use the mvme187 board running the BUG monitor connected\n\ diff --git a/gdb/remote-monitor.c b/gdb/remote-monitor.c index d6e4f54030b..d9367a8517d 100644 --- a/gdb/remote-monitor.c +++ b/gdb/remote-monitor.c @@ -59,7 +59,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ struct monitor_ops *current_monitor; extern struct target_ops rom68k_ops; /* Forward declaration */ extern struct target_ops mon68_ops; /* Forward declaration */ -static struct target_ops bug_ops; /* Forward declaration */ +extern struct target_ops monitor_bug_ops; /* Forward declaration */ extern struct monitor_ops rom68k_cmds; /* Forward declaration */ extern struct monitor_ops mon68_cmds; /* Forward declaration */ extern struct monitor_ops bug_cmds; /* Forward declaration */ @@ -394,7 +394,7 @@ bug_open(args, from_tty) char *args; int from_tty; { - push_target(&bug_ops); + push_target(&monitor_bug_ops); push_monitor (&bug_cmds); general_open (args, "bug", from_tty); @@ -1092,7 +1092,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).", OPS_MAGIC, /* Always the last thing */ }; -static struct target_ops bug_ops = { +struct target_ops monitor_bug_ops = { "bug", "Motorola's BUG remote serial debug monitor", "Use a remote computer running Motorola's BUG debug monitor.\n\ @@ -1205,5 +1205,5 @@ Use ~. or ~^D to break out."); add_target (&rom68k_ops); /* add_target (&mon68_ops); */ - add_target (&bug_ops); + add_target (&monitor_bug_ops); } -- 2.30.2