add support for not providing extra args to jdb#attach

This commit is contained in:
Anders Mårtensson 2018-04-11 16:16:36 +02:00
parent 7d1703ca32
commit f1bdce4e69
No known key found for this signature in database
GPG Key ID: DD7F916E8F8A36CF

View File

@ -38,9 +38,10 @@ function! vebugger#jdb#start(entryClass,args)
return l:debugger return l:debugger
endfunction endfunction
function! vebugger#jdb#attach(address,args) function! vebugger#jdb#attach(address, ...)
let a:args.attach = a:address let l:args = a:0 ? a:{1} : {}
call vebugger#jdb#start('', a:args) let l:args.attach = a:address
call vebugger#jdb#start('', l:args)
endfunction endfunction
function! vebugger#jdb#_readProgramOutput(pipeName,line,readResult,debugger) dict function! vebugger#jdb#_readProgramOutput(pipeName,line,readResult,debugger) dict