Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brammool committed Mar 29, 2018
1 parent ab94343 commit f3ba14f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1655,
/**/
1654,
/**/
Expand Down

0 comments on commit f3ba14f

Please sign in to comment.