aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-09-12 13:37:06 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-09-12 14:13:52 -0400
commit4bc4551bdc5cd8e0811e1c94b7367de00e3e4fb8 (patch)
tree60e45135660ea85ccf37dc9c5285e923ef9fa9f0
parentf8ab027008863bd06513053ea9f84e1116c1cf73 (diff)
downloadgdb-4bc4551bdc5cd8e0811e1c94b7367de00e3e4fb8.zip
gdb-4bc4551bdc5cd8e0811e1c94b7367de00e3e4fb8.tar.gz
gdb-4bc4551bdc5cd8e0811e1c94b7367de00e3e4fb8.tar.bz2
gdb/mi: remove warning about mi1
Remove a warning about mi1. mi1 was removed in 975249ff4e26 ("Remove MI version 1"). It is no longer possible to reach this warning, since trying to use interpreter mi1 bails out before: $ ./gdb -nx -q --data-directory=data-directory -i mi1 Interpreter `mi1' unrecognized Change-Id: Ie43b21e01bca1407995150c729531a70ee662003 Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r--gdb/interps.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/interps.c b/gdb/interps.c
index adac981..f91b2b6 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -132,16 +132,11 @@ interp_set (struct interp *interp, bool top_level)
if (interpreter_p != interp->name ())
interpreter_p = interp->name ();
- bool warn_about_mi1 = false;
-
/* Run the init proc. */
if (!interp->inited)
{
interp->init (top_level);
interp->inited = true;
-
- if (streq (interp->name (), "mi1"))
- warn_about_mi1 = true;
}
/* Do this only after the interpreter is initialized. */
@@ -151,11 +146,6 @@ interp_set (struct interp *interp, bool top_level)
clear_interpreter_hooks ();
interp->resume ();
-
- if (warn_about_mi1)
- warning (_("MI version 1 is deprecated in GDB 13 and "
- "will be removed in GDB 14. Please upgrade "
- "to a newer version of MI."));
}
/* Look up the interpreter for NAME. If no such interpreter exists,