Skip to content

Commit f63db65

Browse files
committed
patch 8.1.0196: terminal debugger error with .gdbinit file
Problem: Terminal debugger error with .gdbinit file. Solution: Check two lines for the "new ui" response. (hint from Hirohito Higashi)
1 parent 963c1ad commit f63db65

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ func s:StartDebug_term(dict)
200200
let response = ''
201201
for lnum in range(1,200)
202202
if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi '
203-
let response = term_getline(s:gdbbuf, lnum + 1)
203+
" response can be in the same line or the next line
204+
let response = term_getline(s:gdbbuf, lnum) . term_getline(s:gdbbuf, lnum + 1)
204205
if response =~ 'Undefined command'
205206
echoerr 'Sorry, your gdb is too old, gdb 7.12 is required'
206207
exe 'bwipe! ' . s:ptybuf

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
196,
792794
/**/
793795
195,
794796
/**/

0 commit comments

Comments
 (0)