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]
Other format: [Raw text]

[patch] fix for gdbtk_call_command


This fixes a crash with some commands like "dump mem"

2002-07-03  Martin M. Hunt  <hunt@redhat.com>

	* generic/gdbtk-hooks.c (gdbtk_call_command): Use cmd_func().

Index: generic/gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.24
diff -u -u -r1.24 gdbtk-hooks.c
--- generic/gdbtk-hooks.c	23 Apr 2002 00:03:09 -0000	1.24
+++ generic/gdbtk-hooks.c	3 Jul 2002 17:37:46 -0000
@@ -525,13 +525,13 @@
       running_now = 1;
       if (!No_Update)
 	Tcl_Eval (gdbtk_interp, "gdbtk_tcl_busy");
-      (*cmdblk->function.cfunc) (arg, from_tty);
+      cmd_func (cmdblk, arg, from_tty);
       running_now = 0;
       if (!No_Update)
 	Tcl_Eval (gdbtk_interp, "gdbtk_tcl_idle");
     }
   else
-    (*cmdblk->function.cfunc) (arg, from_tty);
+    cmd_func (cmdblk, arg, from_tty);
 }
 
 /* Called after a `set' command succeeds.  Runs the Tcl hook


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