diff options
Diffstat (limited to 'gdb/interps.c')
-rw-r--r-- | gdb/interps.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/interps.c b/gdb/interps.c index 94a982e..59c4ec5 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -187,13 +187,16 @@ interp_lookup (struct ui *ui, const char *name) /* See interps.h. */ void -set_top_level_interpreter (const char *name) +set_top_level_interpreter (const char *name, bool for_new_ui) { /* Find it. */ struct interp *interp = interp_lookup (current_ui, name); if (interp == NULL) error (_("Interpreter `%s' unrecognized"), name); + if (for_new_ui && !interp->supports_new_ui ()) + error (_("interpreter '%s' cannot be used with a new UI"), name); + /* Install it. */ interp_set (interp, true); } |