mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Deprecate MI version 1
MI version 1 is long since obsolete. Rather than remove it immediately (though I did send a patch for that), instead let's deprecate it in GDB 13 and then remove it for GDB 14. This version of the patch incorporates Simon's warning change, and Luis' recommendation to mention the gdb versions here.
This commit is contained in:
@ -170,11 +170,16 @@ 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. */
|
||||
@ -184,6 +189,11 @@ 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,
|
||||
|
Reference in New Issue
Block a user