Cast function to correct type.
authorAndrew Cagney <cagney@redhat.com>
Fri, 28 Apr 2000 03:10:44 +0000 (03:10 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 28 Apr 2000 03:10:44 +0000 (03:10 +0000)
gdb/ChangeLog
gdb/config/alpha/alpha-osf3.mh
gdb/target.c

index 04b9f00..a603fdf 100644 (file)
@@ -1,3 +1,15 @@
+Fri Apr 28 12:21:28 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>:
+       * target.c (do_monitor_command): Cast tcomplain to correct
+       function type in comparison.
+
+Fri Apr 28 11:43:05 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From 2000-04-25 Guy Harris <guy@netapp.com>:
+       * config/alpha/alpha-osf3.mh (XDEPFILES): Add ser-tcp.o and
+       ser-pipe.o
+
 2000-04-27  Michael Snyder  <msnyder@seadog.cygnus.com>
 
        * jv-valprint.c (java_val_print): Add arg declaration, 
index 6de8bca..61594a7 100644 (file)
@@ -1,5 +1,5 @@
 # Host: Little-endian Alpha running OSF/1-3.x and higher using procfs
-XDEPFILES= 
+XDEPFILES= ser-tcp.o ser-pipe.o
 XM_FILE= xm-alphaosf.h
 NAT_FILE= nm-osf3.h
 NATDEPFILES= infptrace.o inftarg.o corelow.o alpha-nat.o fork-child.o \
index a755f33..02ccc25 100644 (file)
@@ -3063,9 +3063,11 @@ static void
 do_monitor_command (char *cmd,
                 int from_tty)
 {
-  if ((current_target.to_rcmd == (void*) tcomplain)
+  if ((current_target.to_rcmd
+       == (void (*) (char *, struct ui_file *)) tcomplain)
       || (current_target.to_rcmd == debug_to_rcmd
-         && (debug_target.to_rcmd == (void*) tcomplain)))
+         && (debug_target.to_rcmd
+             == (void (*) (char *, struct ui_file *)) tcomplain)))
     {
       error ("\"monitor\" command not supported by this target.\n");
     }