This commit is contained in:
Stefan Liebl 2024-07-22 17:32:41 +02:00
parent 7c8f4dd387
commit 04e1bb0cc8

View File

@ -744,10 +744,12 @@ function! s:DeviceDebug(attach)
if exists('g:DeviceIP')
let gdb_server_cmd .= ' --target-ip='.g:DeviceIP
endif
if g:project_type != 'pfd' " FIXME
let gdb_server_cmd .= ' --project='.g:project_type
" call asyncrun#quickfix_toggle(10, 1)
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)