diff options
| author | Eli Zaretskii | 2018-09-10 16:11:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-09-10 16:11:05 +0300 |
| commit | 30b0b0e2e20fe2b944aec4be816aab2cf489eb91 (patch) | |
| tree | c29118a35a7ccc24e09d3b437f89290202770919 | |
| parent | 5cf282d65f10f59f7efa63359dfd2b2e124943da (diff) | |
| download | emacs-30b0b0e2e20fe2b944aec4be816aab2cf489eb91.tar.gz emacs-30b0b0e2e20fe2b944aec4be816aab2cf489eb91.zip | |
Fix handling of abbreviated control command in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp):
Support unambiguous abbreviations of commands. (Bug#32576)
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 32d5ced67d0..0506386a75d 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -1782,9 +1782,10 @@ static char *magick[] = { | |||
| 1782 | (defvar gdb-control-commands-regexp | 1782 | (defvar gdb-control-commands-regexp |
| 1783 | (concat | 1783 | (concat |
| 1784 | "^\\(" | 1784 | "^\\(" |
| 1785 | "commands\\|if\\|while\\|define\\|document\\|" | 1785 | "comm\\(a\\(n\\(ds?\\)?\\)?\\)?\\|if\\|while" |
| 1786 | "\\|def\\(i\\(ne?\\)?\\)?\\|doc\\(u\\(m\\(e\\(nt?\\)?\\)?\\)?\\)?\\|" | ||
| 1786 | gdb-python-guile-commands-regexp | 1787 | gdb-python-guile-commands-regexp |
| 1787 | "\\|while-stepping\\|stepping\\|ws\\|actions" | 1788 | "\\|while-stepping\\|stepp\\(i\\(ng?\\)?\\)?\\|ws\\|actions" |
| 1788 | "\\)\\([[:blank:]]+\\([^[:blank:]]*\\)\\)?$") | 1789 | "\\)\\([[:blank:]]+\\([^[:blank:]]*\\)\\)?$") |
| 1789 | "Regexp matching GDB commands that enter a recursive reading loop. | 1790 | "Regexp matching GDB commands that enter a recursive reading loop. |
| 1790 | As long as GDB is in the recursive reading loop, it does not expect | 1791 | As long as GDB is in the recursive reading loop, it does not expect |