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') if exists('g:DeviceIP')
let gdb_server_cmd .= ' --target-ip='.g:DeviceIP let gdb_server_cmd .= ' --target-ip='.g:DeviceIP
endif endif
let gdb_server_cmd .= ' --project='.g:project_type if g:project_type != 'pfd' " FIXME
" call asyncrun#quickfix_toggle(10, 1) let gdb_server_cmd .= ' --project='.g:project_type
endif
call asyncrun#quickfix_toggle(10, 1)
execute 'AsyncRun -mode=async @ '.gdb_server_cmd execute 'AsyncRun -mode=async @ '.gdb_server_cmd
sleep 2 sleep 5
autocmd User TermdebugStopPost execute 'AsyncStop' autocmd User TermdebugStopPost execute 'AsyncStop'
if exists('s:gdb_connect_script') if exists('s:gdb_connect_script')
" autocmd User TermdebugStartPost call term_sendkeys('',"cd .build/dlcpro-new\nsource ".s:gdb_connect_script."\n") " 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') " autocmd User TermdebugStopPost call system('pkill --full gdbserver')
Termdebug Termdebug
" Close Program window " Close Program window
execute '2hide' " execute '2hide'
else else
call s:StartDebugger(g:Elffile, a:attach) call s:StartDebugger(g:Elffile, a:attach)
call s:SendToDebugger('file '.g:Elffile) call s:SendToDebugger('file '.g:Elffile)