public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] fix for gdbtk_call_command
@ 2002-07-03 10:40 Martin M. Hunt
  0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2002-07-03 10:40 UTC (permalink / raw)
  To: insight

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-03 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-03 10:40 [patch] fix for gdbtk_call_command Martin M. Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).