cleanup and run it after every issued gdb command. Apparently
some commands depend on this. [This should really be part of
main gdb...]
+2002-11-06 Keith Seitz <keiths@redhat.com>
+
+ * generic/gdbtk-hooks.c (gdbtk_call_command): Make a null
+ cleanup and run it after every issued gdb command. Apparently
+ some commands depend on this. [This should really be part of
+ main gdb...]
+
2002-10-15 Martin M. Hunt <hunt@redhat.com>
* library/tclIndex: Rebuilt.
gdbtk_call_command (struct cmd_list_element *cmdblk,
char *arg, int from_tty)
{
+ struct cleanup *old_chain;
+
+ old_chain = make_cleanup (null_cleanup, 0);
running_now = 0;
if (cmdblk->class == class_run || cmdblk->class == class_trace)
{
}
else
cmd_func (cmdblk, arg, from_tty);
+
+ do_cleanups (old_chain);
}
/* Called after a `set' command succeeds. Runs the Tcl hook