# HG changeset patch # User Christian Brabandt # Date 1531966504 -7200 # Node ID 74470fae51f904407c2942159550e3ee3fb31f48 # Parent 0ea260db0c6e38d248cbef97be6a26c700dbb567 patch 8.1.0196: terminal debugger error with .gdbinit file commit https://github.com/vim/vim/commit/f63db65b2418140d1bdbc032511f530234bd2496 Author: Bram Moolenaar Date: Thu Jul 19 04:13:36 2018 +0200 patch 8.1.0196: terminal debugger error with .gdbinit file Problem: Terminal debugger error with .gdbinit file. Solution: Check two lines for the "new ui" response. (hint from Hirohito Higashi) diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -200,7 +200,8 @@ func s:StartDebug_term(dict) let response = '' for lnum in range(1,200) if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi ' - let response = term_getline(s:gdbbuf, lnum + 1) + " response can be in the same line or the next line + let response = term_getline(s:gdbbuf, lnum) . term_getline(s:gdbbuf, lnum + 1) if response =~ 'Undefined command' echoerr 'Sorry, your gdb is too old, gdb 7.12 is required' exe 'bwipe! ' . s:ptybuf diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -790,6 +790,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 196, +/**/ 195, /**/ 194,