aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2001-04-19 05:28:12 +0000
committerMartin Hunt <hunt@redhat.com>2001-04-19 05:28:12 +0000
commit67e1e03acbf264a499229d0c6ba8a5e3ed8503d2 (patch)
tree79ddb6dabeb58b603c05340563b929b419fd8c4d
parentfbec36e2cbf8f334f1d813247220d6e43522cb15 (diff)
downloadgdb-67e1e03acbf264a499229d0c6ba8a5e3ed8503d2.zip
gdb-67e1e03acbf264a499229d0c6ba8a5e3ed8503d2.tar.gz
gdb-67e1e03acbf264a499229d0c6ba8a5e3ed8503d2.tar.bz2
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/top.c25
2 files changed, 19 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 843215b..8f311d1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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".
diff --git a/gdb/top.c b/gdb/top.c
index 785e4a6..4cb3476 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -704,17 +704,18 @@ gdb_init (char *argv0)
#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
@@ -733,8 +734,8 @@ execute_command (char *p, int from_tty)
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