diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-29 18:29:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-29 18:29:51 +0200 |
commit | f3ba14ffd32faa1856a99cf657c426bf9d1204ae (patch) | |
tree | 873fa6d2fe50ad75666cccde7a55733c3d11892d /runtime/pack/dist | |
parent | ab943431d8fcd856008a025b0e5652dd4b8007fc (diff) |
patch 8.0.1655: outdated gdb message in terminal debugger unclearv8.0.1655
Problem: Outdated gdb message in terminal debugger unclear.
Solution: Specifically mention the required gdb version. Avoid getting
stuck on pagination.
Diffstat (limited to 'runtime/pack/dist')
-rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 65765bb31b..086a8f1ecf 100644 --- 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 <return> 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 |