vim
vim copied to clipboard
Gdb latest mi interface is version 3. Why termdebug uses version 2?
I have noticed that the latest mi interface is mi3 whereas termdebug uses mi2. Is there any reason for that?
I tried to update termdebug to mi3 and all the tests in the github workflow have passed.
Shall we update to mi3?
What's the difference between those two versions? Perhaps it wasn't available when the termplugin was developed?
What's the difference between those two versions?
Good question. I tried to make a search but I find only few highlights. I also asked on SO, maybe we will get some answers.
Perhaps it wasn't available when the termplugin was developed?
It could be. According to the official guide mi3 has been introduced in gdb 9.1.
According to the official guide mi3 has been introduced in gdb 9.1.
gdb 9.1 is February 2020. I wonder about some tiny/old single board computer over a serial line that might not have an up to date gdb. Of course, an older version of vim could be used.
I hesitate to mention that if it would turn out there is some good stuff in mi3, like escaping blanks, both version could be supported. But supporting both is the stuff of nightmares.
I hesitate to mention that if it would turn out there is some good stuff in mi3, like escaping blanks,
If you are referring to https://github.com/vim/vim/issues/12357#issuecomment-2222592786 then I tested it and mi3 won't solve the problem. I could dare to guess that other than adding few commands, with mi3 it may be perhaps easier to parse the messages sent over the pty. And some possible bugfix. But it is just a guess.
FYI: https://stackoverflow.com/questions/78744538/gdb-what-are-the-differences-between-mi2-and-mi3-interface/78745041#78745041