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