The application which takes the MI output and presents the state of the program being debugged to the user is called a front end.
Since GDB/MI is used by a variety of front ends to GDB, changes to the MI interface may break existing usage. This section describes how the protocol changes and how to request previous version of the protocol when it does.
Some changes in MI need not break a carefully designed front end, and for these the MI version will remain unchanged. The following is a list of changes that may occur within one level, so front ends should parse MI output in a way that can handle them:
in_scope(see -var-update) may be extended.
If the changes are likely to break front ends, the MI version level will be increased by one. The new versions of the MI protocol are not compatible with the old versions. Old versions of MI remain available, allowing front ends to keep using them until they are modified to use the latest MI version.
--interpreter=mi always points to the latest MI version, it is
recommended that front ends request a specific version of MI when launching
--interpreter=mi2) to make sure they get an
interpreter with the MI version they expect.
The following table gives a summary of the released versions of the MI interface: the version number, the version of GDB in which it first appeared and the breaking changes compared to the previous version.
|MI version||GDB version||Breaking changes|
If your front end cannot yet migrate to a more recent version of the MI protocol, you can nevertheless selectively enable specific features available in those recent MI versions, using the following commands:
Use the output for multi-location breakpoints which was introduced by MI 3, even when using MI versions 2 or 1. This command has no effect when using MI version 3 or later.
The best way to avoid unexpected changes in MI that might break your front end is to make your project known to GDB developers and follow development on firstname.lastname@example.org and email@example.com.