了解更改内容的最佳位置是新闻文件。 这可以在线阅读这里。
原来真的有mi4! 我猜手册没有更新。
添加 mi3 和 mi4 后,NEWS 文件中也会有一个相应的条目,指示 Mi 输出中“修复”的内容。
这是添加 mi3 时的条目(在 GDB 9 中):
** The default version of the MI interpreter is now 3 (-i=mi3).
** The output of information about multi-location breakpoints (which is
syntactically incorrect in MI 2) has changed in MI 3. This affects
the following commands and events:
- -break-insert
- -break-info
- =breakpoint-created
- =breakpoint-modified
The -fix-multi-location-breakpoint-output command can be used to enable
this behavior with previous MI versions.
还有 mi4 的条目(在 GDB 12 中添加):
** The default version of the MI interpreter is now 4 (-i=mi4).
** The "script" field in breakpoint output (which is syntactically
incorrect in MI 3 and below) has changed in MI 4 to become a list.
This affects the following commands and events:
- -break-insert
- -break-info
- =breakpoint-created
- =breakpoint-modified
The -fix-breakpoint-script-output command can be used to enable
this behavior with previous MI versions.