File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
runtime/pack/dist/opt/termdebug/plugin Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -402,12 +402,17 @@ endfunc
402402" Function called when pressing CTRL-C in the prompt buffer and when placing a
403403" breakpoint.
404404func s: PromptInterrupt ()
405- if s: pid == 0
406- echoerr ' Cannot interrupt gdb, did not find a process ID'
405+ call ch_log (' Interrupting gdb' )
406+ if has (' win32' )
407+ " Using job_stop() does not work on MS-Windows, need to send SIGTRAP to
408+ " the debugger program so that gdb responds again.
409+ if s: pid == 0
410+ echoerr ' Cannot interrupt gdb, did not find a process ID'
411+ else
412+ call debugbreak (s: pid )
413+ endif
407414 else
408- call ch_log (' Interrupting gdb' )
409- " Using job_stop(s:gdbjob, 'int') does not work.
410- call debugbreak (s: pid )
415+ call job_stop (s: gdbjob , ' int' )
411416 endif
412417endfunc
413418
Original file line number Diff line number Diff line change @@ -761,6 +761,8 @@ static char *(features[]) =
761761
762762static int included_patches [] =
763763{ /* Add new patch number below this line */
764+ /**/
765+ 93 ,
764766/**/
765767 92 ,
766768/**/
You can’t perform that action at this time.
0 commit comments