diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2003-02-17 18:49:11 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2003-02-17 18:49:11 +0000 |
commit | 4ad4b34e53544596563782c976f1b6a508a0e9ce (patch) | |
tree | 334604a8b8a04ab8cb87d5975e4fd51d271365cc /gdb | |
parent | 4e1dab7d1757e4f9555323877a68a7b6c277b53a (diff) | |
download | gdb-4ad4b34e53544596563782c976f1b6a508a0e9ce.tar.gz |
Revert below change.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbtk/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbtk/generic/gdbtk.c | 23 |
2 files changed, 16 insertions, 11 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog index 46018c108da..4efc84f9503 100644 --- a/gdb/gdbtk/ChangeLog +++ b/gdb/gdbtk/ChangeLog @@ -1,5 +1,9 @@ 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. diff --git a/gdb/gdbtk/generic/gdbtk.c b/gdb/gdbtk/generic/gdbtk.c index fe244891288..3fb975b04f0 100644 --- a/gdb/gdbtk/generic/gdbtk.c +++ b/gdb/gdbtk/generic/gdbtk.c @@ -69,7 +69,6 @@ extern void _initialize_gdbtk (void); 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) @@ -594,7 +593,6 @@ gdbtk_init (char *argv0) 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 (); @@ -751,19 +749,22 @@ gdbtk_command_loop (void *data) } /* 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) |