]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix handling of abbreviated control command in gdb-mi.el
authorEli Zaretskii <eliz@gnu.org>
Mon, 10 Sep 2018 13:11:05 +0000 (16:11 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 10 Sep 2018 13:11:05 +0000 (16:11 +0300)
* lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp):
Support unambiguous abbreviations of commands.  (Bug#32576)

lisp/progmodes/gdb-mi.el

index 32d5ced67d06ed967602ee34b694b874abbad8cd..0506386a75de25da13c0e708c993394cc8106882 100644 (file)
@@ -1782,9 +1782,10 @@ static char *magick[] = {
 (defvar gdb-control-commands-regexp
   (concat
    "^\\("
-   "commands\\|if\\|while\\|define\\|document\\|"
+   "comm\\(a\\(n\\(ds?\\)?\\)?\\)?\\|if\\|while"
+   "\\|def\\(i\\(ne?\\)?\\)?\\|doc\\(u\\(m\\(e\\(nt?\\)?\\)?\\)?\\)?\\|"
    gdb-python-guile-commands-regexp
-   "\\|while-stepping\\|stepping\\|ws\\|actions"
+   "\\|while-stepping\\|stepp\\(i\\(ng?\\)?\\)?\\|ws\\|actions"
    "\\)\\([[:blank:]]+\\([^[:blank:]]*\\)\\)?$")
   "Regexp matching GDB commands that enter a recursive reading loop.
 As long as GDB is in the recursive reading loop, it does not expect