1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar 2018-03-29 18:29:51 +02:00
parent ab943431d8
commit f3ba14ffd3
2 changed files with 7 additions and 1 deletions

View File

@ -116,7 +116,7 @@ func s:StartDebug(cmd)
if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi ' if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi '
let response = term_getline(s:gdbbuf, lnum + 1) let response = term_getline(s:gdbbuf, lnum + 1)
if response =~ 'Undefined command' 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:ptybuf
exe 'bwipe! ' . s:commbuf exe 'bwipe! ' . s:commbuf
return return
@ -143,6 +143,10 @@ func s:StartDebug(cmd)
" running. " running.
call s:SendCommand('-gdb-set mi-async on') 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. " Sign used to highlight the line where the program has stopped.
" There can be only one. " There can be only one.
sign define debugPC linehl=debugPC sign define debugPC linehl=debugPC

View File

@ -762,6 +762,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1655,
/**/ /**/
1654, 1654,
/**/ /**/