summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gdb-mi.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-11-04 13:56:39 +0200
committerEli Zaretskii <eliz@gnu.org>2017-11-04 13:56:39 +0200
commit1f1de8e872282a12c3c17315c54d99026af32db9 (patch)
tree601fc7bd9fde6d697d06d57958ab53a701ef75a2 /lisp/progmodes/gdb-mi.el
parent680e8e119bbdc7782886b92f1df090b08e4a9623 (diff)
downloademacs-1f1de8e872282a12c3c17315c54d99026af32db9.tar.gz
Make gdb-non-stop-setting default to nil on MS-Windows
* lisp/progmodes/gdb-mi.el (gdb-non-stop-setting): Now nil on MS-Windows.
Diffstat (limited to 'lisp/progmodes/gdb-mi.el')
-rw-r--r--lisp/progmodes/gdb-mi.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 4f366c6ede6..58552759b95 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -400,14 +400,22 @@ valid signal handlers.")
(const :tag "Unlimited" nil))
:version "22.1")
-(defcustom gdb-non-stop-setting t
- "When in non-stop mode, stopped threads can be examined while
+(defcustom gdb-non-stop-setting (not (eq system-type 'windows-nt))
+ "If non-nil, GDB sessions are expected to support the non-stop mode.
+When in the non-stop mode, stopped threads can be examined while
other threads continue to execute.
+If this is non-nil, GDB will be sent the \"set non-stop 1\" command,
+and if that results in an error, the non-stop setting will be
+turned off automatically.
+
+On MS-Windows, this is off by default, because MS-Windows targets
+don't support the non-stop mode.
+
GDB session needs to be restarted for this setting to take effect."
:type 'boolean
:group 'gdb-non-stop
- :version "23.2")
+ :version "26.1")
;; TODO Some commands can't be called with --all (give a notice about
;; it in setting doc)