]> granicus.if.org Git - vim/commitdiff
patch 8.0.1655: outdated gdb message in terminal debugger unclear v8.0.1655
authorBram Moolenaar <Bram@vim.org>
Thu, 29 Mar 2018 16:29:51 +0000 (18:29 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 29 Mar 2018 16:29:51 +0000 (18:29 +0200)
Problem:    Outdated gdb message in terminal debugger unclear.
Solution:   Specifically mention the required gdb version.  Avoid getting
            stuck on pagination.

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
src/version.c

index 65765bb31bbf324294eeba615686dee1d03efc84..086a8f1ecf2e5e0a0035c3600c250587c44467de 100644 (file)
@@ -116,7 +116,7 @@ func s:StartDebug(cmd)
       if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi '
        let response = term_getline(s:gdbbuf, lnum + 1)
        if response =~ 'Undefined command'
-         echoerr 'Your gdb does not support the Machine Interface feature'
+         echoerr 'Sorry, your gdb is too old, gdb 7.12 is required'
          exe 'bwipe! ' . s:ptybuf
          exe 'bwipe! ' . s:commbuf
          return
@@ -143,6 +143,10 @@ func s:StartDebug(cmd)
   " running.
   call s:SendCommand('-gdb-set mi-async on')
 
+  " Disable pagination, it causes everything to stop at the gdb
+  " "Type <return> to continue" prompt.
+  call s:SendCommand('-gdb-set pagination off')
+
   " Sign used to highlight the line where the program has stopped.
   " There can be only one.
   sign define debugPC linehl=debugPC
index 1d9d376fdc6f54dd45edcca7f765bafe36dd7dcb..8403bf4ae249e4ddb3ed1dbfea6e62705c21edda 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1655,
 /**/
     1654,
 /**/