From 7f5866ccaac2513d119157e93671b6bbc50723e3 Mon Sep 17 00:00:00 2001 From: Stefan Liebl Date: Tue, 27 Aug 2024 09:05:36 +0200 Subject: [PATCH] debug --- vimfiles.stefan/plugin/toptica.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vimfiles.stefan/plugin/toptica.vim b/vimfiles.stefan/plugin/toptica.vim index bb3f5f3..505280b 100644 --- a/vimfiles.stefan/plugin/toptica.vim +++ b/vimfiles.stefan/plugin/toptica.vim @@ -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