+2001-04-18 Martin M. Hunt <hunt@redhat.com>
+
+ * top.c (gdb_init): Don't call cli_out_new() to
+ create global uiout if init_ui_hook is set. uiout will
+ have to be initialized there.
+
2001-04-18 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c: Include "regcache.h".
#ifdef UI_OUT
/* Install the default UI */
- uiout = cli_out_new (gdb_stdout);
-#endif
-
-#ifdef UI_OUT
- /* All the interpreters should have had a look at things by now.
- Initialize the selected interpreter. */
- if (interpreter_p && !init_ui_hook)
+ if (!init_ui_hook)
{
- fprintf_unfiltered (gdb_stderr, "Interpreter `%s' unrecognized.\n",
- interpreter_p);
- exit (1);
+ uiout = cli_out_new (gdb_stdout);
+
+ /* All the interpreters should have had a look at things by now.
+ Initialize the selected interpreter. */
+ if (interpreter_p)
+ {
+ fprintf_unfiltered (gdb_stderr, "Interpreter `%s' unrecognized.\n",
+ interpreter_p);
+ exit (1);
+ }
}
#endif
static int warned = 0;
char *line;
/* FIXME: These should really be in an appropriate header file */
-extern void serial_log_command (const char *);
-
+ extern void serial_log_command (const char *);
+
free_all_values ();
/* Force cleanup of any alloca areas if using C alloca instead of