mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.2103: wrong error message if "termdebugger" is not executable
Problem: wrong error message if "termdebugger" is not executable. Solution: Check if "termdebugger" is executable and give a clear error message. (Ozaki Kiichi, closes #5000) Fix indents.
This commit is contained in:
@@ -65,8 +65,8 @@ command -nargs=* -complete=file -bang Termdebug call s:StartDebug(<bang>0, <f-ar
|
|||||||
command -nargs=+ -complete=file -bang TermdebugCommand call s:StartDebugCommand(<bang>0, <f-args>)
|
command -nargs=+ -complete=file -bang TermdebugCommand call s:StartDebugCommand(<bang>0, <f-args>)
|
||||||
|
|
||||||
" Name of the gdb command, defaults to "gdb".
|
" Name of the gdb command, defaults to "gdb".
|
||||||
if !exists('termdebugger')
|
if !exists('g:termdebugger')
|
||||||
let termdebugger = 'gdb'
|
let g:termdebugger = 'gdb'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:pc_id = 12
|
let s:pc_id = 12
|
||||||
@@ -104,9 +104,14 @@ endfunc
|
|||||||
|
|
||||||
func s:StartDebug_internal(dict)
|
func s:StartDebug_internal(dict)
|
||||||
if exists('s:gdbwin')
|
if exists('s:gdbwin')
|
||||||
echoerr 'Terminal debugger already running'
|
echoerr 'Terminal debugger already running, cannot run two'
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
if !executable(g:termdebugger)
|
||||||
|
echoerr 'Cannot execute debugger program "' .. g:termdebugger .. '"'
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let s:ptywin = 0
|
let s:ptywin = 0
|
||||||
let s:pid = 0
|
let s:pid = 0
|
||||||
|
|
||||||
|
@@ -753,6 +753,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 */
|
||||||
|
/**/
|
||||||
|
2103,
|
||||||
/**/
|
/**/
|
||||||
2102,
|
2102,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user