Fix gdb-mi.el bug#9853, bug#9858, and bug#9878.
commit087ef505f2853594c8f9c2756e7d31097d82c081
authorKen Brown <kbrown@cornell.edu>
Wed, 30 Nov 2011 03:18:33 +0000 (29 22:18 -0500)
committerKen Brown <kbrown@cornell.edu>
Wed, 30 Nov 2011 03:18:33 +0000 (29 22:18 -0500)
tree192584570170d20660f674bd205c6551d6c1fa5a
parentdf103ffb3d10eef57921c9d70c6e3eac35759b73
Fix gdb-mi.el bug#9853, bug#9858, and bug#9878.

* lisp/progmodes/gdb-mi.el (gdb-version): Remove defvar.
(gdb-supports-non-stop): New defvar, replacing `gdb-version'.
(gdb-gud-context-command, gdb-non-stop-handler)
(gdb-current-context-command, gdb-stopped): Use it.
(gdb-init-1): Enable pretty printing here.
(gdb-non-stop-handler): Don't enable pretty-printing here.  Check
to see if the target supports non-stop mode; if not, turn off
non-stop mode.  Use the following.
(gdb-check-target-async): New defun.
(gud-watch, gdb-stopped): Fix whitespace.
(gdb-get-source-file): Don't try to display the source file if
`gdb-main-file' is nil.
lisp/ChangeLog
lisp/progmodes/gdb-mi.el