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)