This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Don't set to_query() to return_zero.
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 05 Dec 2001 17:28:16 -0500
- Subject: [patch] Don't set to_query() to return_zero.
Just FYI,
This updates to_query() so as to match the way it is actually used in
kod.c - kod guards against a NULL function.
Andrew
2001-12-05 Andrew Cagney <cagney@redhat.com>
* target.c (cleanup_target): Do not initialize to_query to
return_zero.
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.28
diff -p -r1.28 target.c
*** target.c 2001/07/19 18:09:11 1.28
--- target.c 2001/12/05 22:23:29
*************** cleanup_target (struct target_ops *t)
*** 488,496 ****
de_fault (to_stop,
(void (*) (void))
target_ignore);
- de_fault (to_query,
- (int (*) (int, char *, char *, int *))
- return_zero);
de_fault (to_rcmd,
(void (*) (char *, struct ui_file *))
tcomplain);
--- 488,493 ----