summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0093
blob: 95fd0ca14f5d7898378a365db38cfb8762f0e766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0093
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0093
Problem:    non-MS-Windows: Cannot interrupt gdb when program is running.
Solution:   Only use debugbreak() on MS-Windows.
Files:	    runtime/pack/dist/opt/termdebug/plugin/termdebug.vim


*** ../vim-8.1.0092/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim	2018-06-20 22:37:52.658911284 +0200
--- runtime/pack/dist/opt/termdebug/plugin/termdebug.vim	2018-06-21 20:29:09.404402756 +0200
***************
*** 402,413 ****
  " 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'
    else
!     call ch_log('Interrupting gdb')
!     " Using job_stop(s:gdbjob, 'int') does not work.
!     call debugbreak(s:pid)
    endif
  endfunc
  
--- 402,418 ----
  " Function called when pressing CTRL-C in the prompt buffer and when placing a
  " breakpoint.
  func s:PromptInterrupt()
!   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 job_stop(s:gdbjob, 'int')
    endif
  endfunc
  
*** ../vim-8.1.0092/src/version.c	2018-06-21 12:07:00.065296930 +0200
--- src/version.c	2018-06-21 20:30:01.052124494 +0200
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     93,
  /**/

-- 
From "know your smileys":
 (X0||)   Double hamburger with lettuce and tomato

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///