From 04e1bb0cc83c795c5ad7d17687974ec88fdf62fd Mon Sep 17 00:00:00 2001 From: Stefan Liebl Date: Mon, 22 Jul 2024 17:32:41 +0200 Subject: [PATCH] debug --- vimfiles.stefan/plugin/toptica.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vimfiles.stefan/plugin/toptica.vim b/vimfiles.stefan/plugin/toptica.vim index 63035b2..0eaeba7 100644 --- a/vimfiles.stefan/plugin/toptica.vim +++ b/vimfiles.stefan/plugin/toptica.vim @@ -744,10 +744,12 @@ function! s:DeviceDebug(attach) if exists('g:DeviceIP') let gdb_server_cmd .= ' --target-ip='.g:DeviceIP endif - let gdb_server_cmd .= ' --project='.g:project_type - " call asyncrun#quickfix_toggle(10, 1) + if g:project_type != 'pfd' " FIXME + let gdb_server_cmd .= ' --project='.g:project_type + endif + call asyncrun#quickfix_toggle(10, 1) execute 'AsyncRun -mode=async @ '.gdb_server_cmd - sleep 2 + sleep 5 autocmd User TermdebugStopPost execute 'AsyncStop' if exists('s:gdb_connect_script') " autocmd User TermdebugStartPost call term_sendkeys('',"cd .build/dlcpro-new\nsource ".s:gdb_connect_script."\n") @@ -756,7 +758,7 @@ function! s:DeviceDebug(attach) " autocmd User TermdebugStopPost call system('pkill --full gdbserver') Termdebug " Close Program window - execute '2hide' + " execute '2hide' else call s:StartDebugger(g:Elffile, a:attach) call s:SendToDebugger('file '.g:Elffile)