This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[patch] fix for gdbtk_call_command
- From: "Martin M. Hunt" <hunt at redhat dot com>
- To: insight at sources dot redhat dot com
- Date: Wed, 3 Jul 2002 10:40:01 -0700
- Subject: [patch] fix for gdbtk_call_command
- Organization: Red Hat Inc
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