mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
vim-patch:c3837a4: runtime(termdebug): fix a few issues
Fix a few minor issues:
1. filename with whitespaces issue should be fixed now, fixes: vim/vim#12357
2. ":Termdebug args" should work now, fixes: vim/vim#15254
closes: vim/vim#15261
c3837a46ff
Omit the DeleteCommands() change as it isn't really an improvement.
Co-authored-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
This commit is contained in:
@@ -361,7 +361,7 @@ func s:StartDebug_term(dict)
|
|||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
" Set arguments to be run.
|
" Set arguments to be run.
|
||||||
if len(proc_args)
|
if !empty(proc_args)
|
||||||
call chansend(s:gdb_job_id, $"server set args {join(proc_args)}\r")
|
call chansend(s:gdb_job_id, $"server set args {join(proc_args)}\r")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -1188,7 +1188,7 @@ func s:Until(at)
|
|||||||
let s:stopped = v:false
|
let s:stopped = v:false
|
||||||
" call ch_log('assume that program is running after this command')
|
" call ch_log('assume that program is running after this command')
|
||||||
" Use the fname:lnum format
|
" Use the fname:lnum format
|
||||||
let at = empty(a:at) ? $"{fnameescape(expand('%:p'))}:{line('.')}" : a:at
|
let at = empty(a:at) ? $"\"{expand('%:p')}:{line('.')}\"" : a:at
|
||||||
call s:SendCommand($'-exec-until {at}')
|
call s:SendCommand($'-exec-until {at}')
|
||||||
" else
|
" else
|
||||||
" call ch_log('dropping command, program is running: exec-until')
|
" call ch_log('dropping command, program is running: exec-until')
|
||||||
@@ -1207,7 +1207,7 @@ func s:SetBreakpoint(at, tbreak=v:false)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Use the fname:lnum format, older gdb can't handle --source.
|
" Use the fname:lnum format, older gdb can't handle --source.
|
||||||
let at = empty(a:at) ? $"{fnameescape(expand('%:p'))}:{line('.')}" : a:at
|
let at = empty(a:at) ? $"\"{expand('%:p')}:{line('.')}\"" : a:at
|
||||||
if a:tbreak
|
if a:tbreak
|
||||||
let cmd = $'-break-insert -t {at}'
|
let cmd = $'-break-insert -t {at}'
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user