mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
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)
This commit is contained in:
@@ -200,7 +200,8 @@ func s:StartDebug_term(dict)
|
|||||||
let response = ''
|
let response = ''
|
||||||
for lnum in range(1,200)
|
for lnum in range(1,200)
|
||||||
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)
|
" response can be in the same line or the next line
|
||||||
|
let response = term_getline(s:gdbbuf, lnum) . term_getline(s:gdbbuf, lnum + 1)
|
||||||
if response =~ 'Undefined command'
|
if response =~ 'Undefined command'
|
||||||
echoerr 'Sorry, your gdb is too old, gdb 7.12 is required'
|
echoerr 'Sorry, your gdb is too old, gdb 7.12 is required'
|
||||||
exe 'bwipe! ' . s:ptybuf
|
exe 'bwipe! ' . s:ptybuf
|
||||||
|
@@ -789,6 +789,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 */
|
||||||
|
/**/
|
||||||
|
196,
|
||||||
/**/
|
/**/
|
||||||
195,
|
195,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user