2003-02-17 Christopher Faylor <cgf@redhat.com>
+ Revert below change.
+
+2003-02-17 Christopher Faylor <cgf@redhat.com>
+
* gdbtk/gdbtk.c (tk_procs): Make file global. Declare at top.
(_initialize_gdbtk): Move interp_add from here.
(gdb_tk): Call interp_add here. Pass correct uiout to interp_new.
static sigset_t nullsigmask;
static struct sigaction act1, act2;
static struct itimerval it_on, it_off;
-static const struct interp_procs tk_procs;
static void
x_event_wrapper (int signo)
gdb_stdlog = gdbtk_fileopen ();
gdb_stdtarg = gdbtk_fileopen ();
uiout = cli_out_new (gdb_stdout);
- interp_add (interp_new ("gdbtk", NULL, uiout, &tk_procs));
#ifdef __CYGWIN32__
(void) FreeConsole ();
}
/* Come here during initialize_all_files () */
-static const struct interp_procs tk_procs =
-{
- tk_init,
- gdbtk_resume,
- gdbtk_suspend,
- gdbtk_exec,
- gdbtk_prompt_p,
- gdbtk_command_loop,
-};
void
_initialize_gdbtk ()
{
+ static const struct interp_procs tk_procs =
+ {
+ tk_init,
+ gdbtk_resume,
+ gdbtk_suspend,
+ gdbtk_exec,
+ gdbtk_prompt_p,
+ gdbtk_command_loop,
+ };
+
+ interp_add (interp_new ("gdbtk", NULL, NULL, &tk_procs));
+
/* FIXME: cagney/2003-02-12: This is wrong. The initialization
should be done via the init function. */
if (use_windows)