This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

[PATCH] Add dummy args to no_inferior_hook


This patch fixes a small error with the no_inferior_hook in the console
window. Not going to be needed by next week, but, well...

Keith

ChangeLog:
2001-06-01  Keith Seitz  <keiths@redhat.com>

	* library/console.itb (constructor): Pass dummy argument
	to idle method.
	(destructor): Ditto.

Patch:
Index: library/console.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/console.itb,v
retrieving revision 1.10
diff -u -p -r1.10 console.itb
--- console.itb	2001/05/31 20:32:57	1.10
+++ console.itb	2001/06/01 20:05:30
@@ -19,7 +19,7 @@ body Console::constructor {args} {
   debug "$args"
   _build_win
   eval itk_initialize $args
-  add_hook gdb_no_inferior_hook [list $this idle]
+  add_hook gdb_no_inferior_hook [list $this idle dummy]

   # Right now the preferences window directly uses preference
   # variables.  This means that if we track the preference changes
@@ -38,7 +38,7 @@ body Console::constructor {args} {
 body Console::destructor {} {
   global gdbtk_state
   set gdbtk_state(console) ""
-  remove_hook gdb_no_inferior_hook [list $this idle]
+  remove_hook gdb_no_inferior_hook [list $this idle dummy]

   # foreach option {gdb/console/wrap gdb/console/prompt_fg \
   # 		    gdb/console/error_fg gdb/console/font} {


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