From 878d2171da6c4e602c22f4fcc32cbd83c17f3785 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 23 Feb 2000 00:25:43 +0000 Subject: Add mi/ and testsuite/gdb.mi/ subdirectories. Add --enable-gdbmi option to configury. Add mi rules to Makefile.in Add mi conditional output to event-top.c infrun.c main.c top.c. Add -i=mi option. --- gdb/top.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gdb/top.c') diff --git a/gdb/top.c b/gdb/top.c index 9747d492912..6bd7648e08c 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -801,6 +801,17 @@ gdb_init (argv0) 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) + { + fprintf_unfiltered (gdb_stderr, "Interpreter `%s' unrecognized.\n", + interpreter_p); + exit (1); + } +#endif + if (init_ui_hook) init_ui_hook (argv0); } -- cgit v1.2.1