From: Andrew Cagney Date: Fri, 28 Apr 2000 03:10:44 +0000 (+0000) Subject: Cast function to correct type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b5fe715f594881f50316f6622d9a5e37768f234;p=binutils-gdb.git Cast function to correct type. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 04b9f00b6c0..a603fdf1cd3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Fri Apr 28 12:21:28 2000 Andrew Cagney + + From Tim Mooney : + * target.c (do_monitor_command): Cast tcomplain to correct + function type in comparison. + +Fri Apr 28 11:43:05 2000 Andrew Cagney + + From 2000-04-25 Guy Harris : + * config/alpha/alpha-osf3.mh (XDEPFILES): Add ser-tcp.o and + ser-pipe.o + 2000-04-27 Michael Snyder * jv-valprint.c (java_val_print): Add arg declaration, diff --git a/gdb/config/alpha/alpha-osf3.mh b/gdb/config/alpha/alpha-osf3.mh index 6de8bca8e3a..61594a772b4 100644 --- a/gdb/config/alpha/alpha-osf3.mh +++ b/gdb/config/alpha/alpha-osf3.mh @@ -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 \ diff --git a/gdb/target.c b/gdb/target.c index a755f330376..02ccc25da31 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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"); }