From ea92572fa1a35a04f69f8cd620b98dad7c22ef79 Mon Sep 17 00:00:00 2001 From: IdanArye Date: Thu, 22 May 2014 17:21:31 +0300 Subject: [PATCH] Prevented the shell buffer in Windows. I can't get it to work without PTY --- autoload/vebugger/gdb.vim | 4 +++- autoload/vebugger/jdb.vim | 4 +++- autoload/vebugger/pdb.vim | 4 +++- autoload/vebugger/rdebug.vim | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/autoload/vebugger/gdb.vim b/autoload/vebugger/gdb.vim index add9049..0d6e2cf 100644 --- a/autoload/vebugger/gdb.vim +++ b/autoload/vebugger/gdb.vim @@ -18,7 +18,9 @@ function! vebugger#gdb#start(binaryFile,args) call l:debugger.writeLine('attach '.string(a:args.pid)) else call l:debugger.writeLine('set args '.vebugger#util#commandLineArgsForProgram(a:args).' 1>&2') - call vebugger#std#openShellBuffer(l:debugger) + if !has('win32') + call vebugger#std#openShellBuffer(l:debugger) + endif call l:debugger.writeLine('start') end diff --git a/autoload/vebugger/jdb.vim b/autoload/vebugger/jdb.vim index 5876430..4b72286 100644 --- a/autoload/vebugger/jdb.vim +++ b/autoload/vebugger/jdb.vim @@ -11,7 +11,9 @@ function! vebugger#jdb#start(entryClass,args) call l:debugger.writeLine('stop on '.a:entryClass.'.main') call l:debugger.writeLine('run '.a:entryClass.' '.vebugger#util#commandLineArgsForProgram(a:args)) call l:debugger.writeLine('monitor where') - call vebugger#std#openShellBuffer(l:debugger) + if !has('win32') + call vebugger#std#openShellBuffer(l:debugger) + endif call l:debugger.addReadHandler(function('s:readProgramOutput')) call l:debugger.addReadHandler(function('s:readWhere')) diff --git a/autoload/vebugger/pdb.vim b/autoload/vebugger/pdb.vim index bbd82b0..9b4cba1 100644 --- a/autoload/vebugger/pdb.vim +++ b/autoload/vebugger/pdb.vim @@ -3,7 +3,9 @@ function! vebugger#pdb#start(entryFile,args) let l:debugger.state.pdb={} - call vebugger#std#openShellBuffer(l:debugger) + if !has('win32') + call vebugger#std#openShellBuffer(l:debugger) + endif call l:debugger.addReadHandler(function('s:readProgramOutput')) call l:debugger.addReadHandler(function('s:readWhere')) diff --git a/autoload/vebugger/rdebug.vim b/autoload/vebugger/rdebug.vim index a8e1d2c..885c426 100644 --- a/autoload/vebugger/rdebug.vim +++ b/autoload/vebugger/rdebug.vim @@ -6,7 +6,9 @@ function! vebugger#rdebug#start(entryFile,args) call l:debugger.writeLine("$stdout=$stderr") let l:debugger.pipes.err.annotation = "err&prg\t\t" - call vebugger#std#openShellBuffer(l:debugger) + if !has('win32') + call vebugger#std#openShellBuffer(l:debugger) + endif call l:debugger.addReadHandler(function('s:readProgramOutput')) call l:debugger.addReadHandler(function('s:readWhere'))