+2002-08-28 Keith Seitz <keiths@redhat.com>
+
+ * interps.c (interpreter_exec_cmd): Temporarily set
+ current interpreter to quiet, too, so that we don't get
+ too many prompts when switching interpreters.
+
2002-08-28 Keith Seitz <keiths@redhat.com>
* thread.c (do_captured_thread_select): Add context-changed
char **trule = NULL;
unsigned int nrules;
unsigned int i;
- int old_quiet;
+ int old_quiet, use_quiet;
prules = buildargv (args);
if (prules == NULL)
if (interp_to_use == NULL)
error ("Could not find interpreter \"%s\".", prules[0]);
- old_quiet = gdb_interpreter_set_quiet (interp_to_use, 1);
+ /* Temporarily set interpreters quiet */
+ old_quiet = gdb_interpreter_set_quiet (old_interp, 1);
+ use_quiet = gdb_interpreter_set_quiet (interp_to_use, 1);
if (!gdb_set_interpreter (interp_to_use))
error ("Could not switch to interpreter \"%s\".", prules[0]);
}
gdb_set_interpreter (old_interp);
- gdb_interpreter_set_quiet (interp_to_use, old_quiet);
+ gdb_interpreter_set_quiet (interp_to_use, use_quiet);
+ gdb_interpreter_set_quiet (old_interp, old_quiet);
}
/* List the possible interpreters which could complete the given text. */