comparison runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 29269:0fdf36de4018

Update runtime files Commit: https://github.com/vim/vim/commit/8cc5b559f70041361612b8a6a87922503b33baa6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 23 13:04:20 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jun 2022 14:15:04 +0200
parents ad63d6a8ed21
children 729a7c00fabc
comparison
equal deleted inserted replaced
29268:4b53fd331519 29269:0fdf36de4018
1 " Debugger plugin using gdb. 1 " Debugger plugin using gdb.
2 " 2 "
3 " Author: Bram Moolenaar 3 " Author: Bram Moolenaar
4 " Copyright: Vim license applies, see ":help license" 4 " Copyright: Vim license applies, see ":help license"
5 " Last Change: 2022 May 23 5 " Last Change: 2022 Jun 22
6 " 6 "
7 " WORK IN PROGRESS - The basics works stable, more to come 7 " WORK IN PROGRESS - The basics works stable, more to come
8 " Note: In general you need at least GDB 7.12 because this provides the 8 " Note: In general you need at least GDB 7.12 because this provides the
9 " frame= response in MI thread-selected events we need to sync stack to file. 9 " frame= response in MI thread-selected events we need to sync stack to file.
10 " The one included with "old" MingW is too old (7.6.1), you may upgrade it or 10 " The one included with "old" MingW is too old (7.6.1), you may upgrade it or
1324 call s:GotoSourcewinOrCreateIt() 1324 call s:GotoSourcewinOrCreateIt()
1325 if expand('%:p') != fnamemodify(fname, ':p') 1325 if expand('%:p') != fnamemodify(fname, ':p')
1326 echomsg 'different fname: "' .. expand('%:p') .. '" vs "' .. fnamemodify(fname, ':p') .. '"' 1326 echomsg 'different fname: "' .. expand('%:p') .. '" vs "' .. fnamemodify(fname, ':p') .. '"'
1327 augroup Termdebug 1327 augroup Termdebug
1328 " Always open a file read-only instead of showing the ATTENTION 1328 " Always open a file read-only instead of showing the ATTENTION
1329 " prompt, since we are unlikely to want to edit the file. 1329 " prompt, since it is unlikely we want to edit the file.
1330 " The file may be changed but not saved, warn for that. 1330 " The file may be changed but not saved, warn for that.
1331 au SwapExists * echohl WarningMsg 1331 au SwapExists * echohl WarningMsg
1332 \ | echo 'Warning: file is being edited elsewhere' 1332 \ | echo 'Warning: file is being edited elsewhere'
1333 \ | echohl None 1333 \ | echohl None
1334 \ | let v:swapchoice = '0' 1334 \ | let v:swapchoice = 'o'
1335 augroup END 1335 augroup END
1336 if &modified 1336 if &modified
1337 " TODO: find existing window 1337 " TODO: find existing window
1338 exe 'split ' . fnameescape(fname) 1338 exe 'split ' . fnameescape(fname)
1339 let s:sourcewin = win_getid(winnr()) 1339 let s:sourcewin = win_getid(winnr())