gdb:mi2和mi3接口有什么区别?

问题描述 投票:0回答:1

官方news页面并没有说太多,R.Stallman的gdb调试书(链接到pdf)只说m3是在gdb 9.1中引入的。我尝试用谷歌搜索更多信息,但找不到更多信息。

gdb
1个回答
0
投票

了解更改内容的最佳位置是新闻文件。 这可以在线阅读这里

原来真的有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.
© www.soinside.com 2019 - 2024. All rights reserved.