debug
This commit is contained in:
parent
0bf5949d57
commit
7f5866ccaa
@ -348,9 +348,11 @@ endfunction
|
||||
let g:DlcproBasePath = "/jenkins/workspace/pro--firmware_release_1.9.0-DCESJ5C5R577IG5QFEWTML22UFDDZCJDGFLMDA4DCD3V2ZAGVEJA/source/"
|
||||
function! s:DeviceDebug(attach)
|
||||
if g:DebugRemote
|
||||
if 'dlcpro' =~ g:project_type " FIXME
|
||||
call system(s:invoke.' -e kill '.g:DeviceIP)
|
||||
let kill_cmd = s:invoke.' -e kill'
|
||||
if exists('g:DeviceIP')
|
||||
let kill_cmd .= ' --target-ip='.g:DeviceIP
|
||||
endif
|
||||
call system(kill_cmd)
|
||||
autocmd! User TermdebugStartPre
|
||||
autocmd! User TermdebugStartPost
|
||||
autocmd! User TermdebugStopPost
|
||||
@ -366,7 +368,7 @@ function! s:DeviceDebug(attach)
|
||||
execute 'AsyncRun '.gdb_server_cmd
|
||||
autocmd User TermdebugStopPost execute 'AsyncStop'
|
||||
endif
|
||||
sleep 1
|
||||
sleep 2
|
||||
if exists('s:gdb_connect_script')
|
||||
autocmd User TermdebugStartPost call term_sendkeys('',"source ".s:gdb_connect_script."\n")
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user