# HG changeset patch # User Christian Brabandt # Date 1522341009 -7200 # Node ID a036c2cf4024abe795c6b5702d078fc02a417b72 # Parent 5923f64c8f5bfea8d93ed933dc9b106128878c5c patch 8.0.1655: outdated gdb message in terminal debugger unclear commit https://github.com/vim/vim/commit/f3ba14ffd32faa1856a99cf657c426bf9d1204ae Author: Bram Moolenaar Date: Thu Mar 29 18:29:51 2018 +0200 patch 8.0.1655: outdated gdb message in terminal debugger unclear Problem: Outdated gdb message in terminal debugger unclear. Solution: Specifically mention the required gdb version. Avoid getting stuck on pagination. 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 @@ -116,7 +116,7 @@ func s:StartDebug(cmd) if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi ' let response = term_getline(s:gdbbuf, lnum + 1) if response =~ 'Undefined command' - echoerr 'Your gdb does not support the Machine Interface feature' + echoerr 'Sorry, your gdb is too old, gdb 7.12 is required' exe 'bwipe! ' . s:ptybuf exe 'bwipe! ' . s:commbuf return @@ -143,6 +143,10 @@ func s:StartDebug(cmd) " running. call s:SendCommand('-gdb-set mi-async on') + " Disable pagination, it causes everything to stop at the gdb + " "Type to continue" prompt. + call s:SendCommand('-gdb-set pagination off') + " Sign used to highlight the line where the program has stopped. " There can be only one. sign define debugPC linehl=debugPC diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1655, +/**/ 1654, /**/ 1653,