summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-28 03:10:12 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-28 03:10:12 +0000
commit0ef25c86a1fa8e76e2cebeefcd18ff3410d8b3dd (patch)
tree33b5969afc647051e04774734c298914644ab348
parent0a6fb0c8b8b6ce01ba6461b47ac866ddc78f0e5e (diff)
downloadgdb-0ef25c86a1fa8e76e2cebeefcd18ff3410d8b3dd.tar.gz
Cast function to correct type.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/target.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 15960069141..6818911e63c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
Thu Apr 27 10:06:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
* TODO: Document IRIX X ARM cross compile problems.
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");
}