diff options
| author | Matthieu Coudron <mattator@gmail.com> | 2020-07-06 23:31:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-06 23:31:24 +0200 |
| commit | e49fc4ba1f27d968b2a104a14633459ad6091ca3 (patch) | |
| tree | ee3d32344ec0cba95c64c76169c9607e9a94d72d /runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | |
| parent | 4ab7bbf3eaeacc32e8970b76a19c8682f98cc183 (diff) | |
| parent | 10c563577cc11b0af4c465a68f17b0a8976631f8 (diff) | |
| download | rneovim-e49fc4ba1f27d968b2a104a14633459ad6091ca3.tar.gz rneovim-e49fc4ba1f27d968b2a104a14633459ad6091ca3.tar.bz2 rneovim-e49fc4ba1f27d968b2a104a14633459ad6091ca3.zip | |
Merge pull request #12538 from janlazo/vim-8.2.1055
vim-patch:8.1.{93,1372},8.2.{1055,1060,1089,1095,1104}
Diffstat (limited to 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim')
| -rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 2898bd991b..6870bcec75 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -466,12 +466,17 @@ endfunc " Function called when pressing CTRL-C in the prompt buffer and when placing a " breakpoint. func s:PromptInterrupt() - if s:pid == 0 - echoerr 'Cannot interrupt gdb, did not find a process ID' + " call ch_log('Interrupting gdb') + if has('win32') + " Using job_stop() does not work on MS-Windows, need to send SIGTRAP to + " the debugger program so that gdb responds again. + if s:pid == 0 + echoerr 'Cannot interrupt gdb, did not find a process ID' + else + call debugbreak(s:pid) + endif else - "call ch_log('Interrupting gdb') - " Using job_stop(s:gdbjob, 'int') does not work. - call debugbreak(s:pid) + call jobstop(s:gdbjob) endif endfunc |