comparison runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 27321:3649b5a6b1b6

Update runtime files Commit: https://github.com/vim/vim/commit/6f4754b9f7253d7e4ba527064a24aff1acdb1e8f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 23 12:07:04 2022 +0000 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Jan 2022 13:15:05 +0100
parents b19230a8d40a
children dce918af0c00
comparison
equal deleted inserted replaced
27320:6c9018237bfa 27321:3649b5a6b1b6
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 Jan 13 5 " Last Change: 2022 Jan 17
6 " 6 "
7 " WORK IN PROGRESS - Only the basics work 7 " WORK IN PROGRESS - Only the basics work
8 " Note: On MS-Windows you need a recent version of gdb. The one included with 8 " Note: On MS-Windows you need a recent version of gdb. The one included with
9 " MingW is too old (7.6.1). 9 " MingW is too old (7.6.1).
10 " I used version 7.12 from http://www.equation.com/servlet/equation.cmd?fa=gdb 10 " I used version 7.12 from http://www.equation.com/servlet/equation.cmd?fa=gdb
1252 if a:msg =~ '^\(\*stopped\|=thread-selected\)' && filereadable(fname) 1252 if a:msg =~ '^\(\*stopped\|=thread-selected\)' && filereadable(fname)
1253 let lnum = substitute(a:msg, '.*line="\([^"]*\)".*', '\1', '') 1253 let lnum = substitute(a:msg, '.*line="\([^"]*\)".*', '\1', '')
1254 if lnum =~ '^[0-9]*$' 1254 if lnum =~ '^[0-9]*$'
1255 call s:GotoSourcewinOrCreateIt() 1255 call s:GotoSourcewinOrCreateIt()
1256 if expand('%:p') != fnamemodify(fname, ':p') 1256 if expand('%:p') != fnamemodify(fname, ':p')
1257 echomsg 'different fname: "' .. expand('%:p') .. '" vs "' .. fnamemodify(fname, ':p') .. '"'
1257 augroup Termdebug 1258 augroup Termdebug
1258 " Always open a file read-only instead of showing the ATTENTION 1259 " Always open a file read-only instead of showing the ATTENTION
1259 " prompt, since we are unlikely to want to edit the file. 1260 " prompt, since we are unlikely to want to edit the file.
1260 " The file may be changed but not saved, warn for that. 1261 " The file may be changed but not saved, warn for that.
1261 au SwapExists * echohl WarningMsg 1262 au SwapExists * echohl WarningMsg