Skip to content

Commit f3ba14f

Browse files
committed
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.
1 parent ab94343 commit f3ba14f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

+5-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func s:StartDebug(cmd)
116116
if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi '
117117
let response = term_getline(s:gdbbuf, lnum + 1)
118118
if response =~ 'Undefined command'
119-
echoerr 'Your gdb does not support the Machine Interface feature'
119+
echoerr 'Sorry, your gdb is too old, gdb 7.12 is required'
120120
exe 'bwipe! ' . s:ptybuf
121121
exe 'bwipe! ' . s:commbuf
122122
return
@@ -143,6 +143,10 @@ func s:StartDebug(cmd)
143143
" running.
144144
call s:SendCommand('-gdb-set mi-async on')
145145

146+
" Disable pagination, it causes everything to stop at the gdb
147+
" "Type <return> to continue" prompt.
148+
call s:SendCommand('-gdb-set pagination off')
149+
146150
" Sign used to highlight the line where the program has stopped.
147151
" There can be only one.
148152
sign define debugPC linehl=debugPC

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ static char *(features[]) =
762762

763763
static int included_patches[] =
764764
{ /* Add new patch number below this line */
765+
/**/
766+
1655,
765767
/**/
766768
1654,
767769
/**/

0 commit comments

Comments
 (0)