"Added 'con' option to vebugger#gdb#start"

This commit is contained in:
Reuben D'Netto 2015-02-15 16:45:00 +11:00
parent 9f39160685
commit 940af913be

View File

@ -17,6 +17,8 @@ function! vebugger#gdb#start(binaryFile,args)
if get(a:args,'pid') "Attach to process if get(a:args,'pid') "Attach to process
call l:debugger.writeLine('attach '.string(a:args.pid)) call l:debugger.writeLine('attach '.string(a:args.pid))
elseif has_key(a:args,'con') "Attach to gdbserver
call l:debugger.writeLine('target remote '.a:args.con)
else else
call l:debugger.writeLine('set args '.vebugger#util#commandLineArgsForProgram(a:args).' 1>&2') call l:debugger.writeLine('set args '.vebugger#util#commandLineArgsForProgram(a:args).' 1>&2')
if !has('win32') if !has('win32')