Fix handling of Python/Guile commands with arguments in gdb-mi.el
commit30c0f81f9faca5df012a93b6b0dc9cab5a7de65d
authorEli Zaretskii <eliz@gnu.org>
Sat, 10 Jun 2017 08:29:58 +0000 (10 11:29 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Jun 2017 08:29:58 +0000 (10 11:29 +0300)
tree2e54aa423ecb5c1840b1e76486c3881a46d195be
parent6b4b13eb3868e861df8e52e491214376134baf63
Fix handling of Python/Guile commands with arguments in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-python-guile-commands-regexp): New
variable.
(gdb-control-commands-regexp): Use it.
(gdb-send): Don't increment gdb-control-level if the command
matches gdb-python-guile-commands-regexp and has non-empty
arguments.  Reported by David Boles <boles@ieee.org> in
http://lists.gnu.org/archive/html/emacs-devel/2017-06/msg00009.html.
lisp/progmodes/gdb-mi.el