This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]