From: Keith Seitz Date: Tue, 13 Aug 2002 16:49:06 +0000 (+0000) Subject: * interps.c (_initialize_interpreter): Remove ability to set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa8a4149afd2aea4583c7caf49702efa9f867bf;p=thirdparty%2Fbinutils-gdb.git * interps.c (_initialize_interpreter): Remove ability to set the interpreter. This could really undermine MI clients. * top.c (catcher): Don't worry about interpreter changes. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 005756d8073..5cd007086d4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-08-13 Keith Seitz + + * interps.c (_initialize_interpreter): Remove ability to set + the interpreter. This could really undermine MI clients. + * top.c (catcher): Don't worry about interpreter changes. + 2002-08-12 Keith Seitz * interps.c (_initialize_interpreter): Add completer function diff --git a/gdb/interps.c b/gdb/interps.c index 3ec27a8dd73..19b108ba3c5 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -649,17 +649,6 @@ _initialize_interpreter (void) { struct cmd_list_element *c; - c = add_set_cmd ("interpreter", class_support, - var_string, - &interpreter_p, "Set the interpreter for gdb.", &setlist); - set_cmd_sfunc (c, set_interpreter_cmd); - set_cmd_completer (c, interpreter_completer); - add_show_from_set (c, &showlist); - - add_cmd ("interpreters", class_support, - list_interpreter_cmd, - "List the interpreters currently available in gdb.", &infolist); - c = add_cmd ("interpreter-exec", class_support, interpreter_exec_cmd, "Execute a command in an interpreter. It takes two arguments:\n\ diff --git a/gdb/top.c b/gdb/top.c index 4572e133d79..48b3384d0b7 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -387,7 +387,6 @@ catcher (catch_exceptions_ftype *func, char *saved_error_pre_print; char *saved_quit_pre_print; struct ui_out *saved_uiout; - struct gdb_interpreter *saved_interp; /* Return value from SIGSETJMP(): enum return_reason if error or quit caught, 0 otherwise. */ @@ -410,7 +409,6 @@ catcher (catch_exceptions_ftype *func, /* Override the global ``struct ui_out'' builder. */ saved_uiout = uiout; - saved_interp = gdb_current_interpreter (); uiout = func_uiout; /* Prevent error/quit during FUNC from calling cleanups established @@ -441,24 +439,7 @@ catcher (catch_exceptions_ftype *func, restore_cleanups (saved_cleanup_chain); - /* - cases: - 1. interp1 calls using uiout1 - 2. interp1 calls using uiout1 calls using uiout2 - 3. interp1 calls using uiout1 calls interp2 using uiout2 - 4. more? - is it enough to note that the interpreter has changed and - reset saved_uiout - */ - if (gdb_current_interpreter () == saved_interp) - uiout = saved_uiout; - else - { - /* We've changed interpreters under this call. - Reset uiout to the current interpreter's uiout - and hope for the best. */ - uiout = gdb_interpreter_ui_out (NULL); - } + uiout = saved_uiout; if (mask & RETURN_MASK_QUIT) quit_pre_print = saved_quit_pre_print;