]> git.eshelyaron.com Git - emacs.git/commitdiff
Force interactive-mode in GDB on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Wed, 25 Apr 2012 08:07:57 +0000 (11:07 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 25 Apr 2012 08:07:57 +0000 (11:07 +0300)
 lisp/progmodes/gdb-mi.el (gdb-init-1): Condition Windows-specific
 settings on 'system-type', not on 'window-system'.  On MS-Windows,
 set interactive-mode on in GDB.

lisp/ChangeLog
lisp/progmodes/gdb-mi.el

index bdf6c7a1ac78615a3ef29beafd3c1bf4d2f1597f..e93cd07bda0dc0052466edfd16419c703e893f43 100644 (file)
@@ -1,3 +1,9 @@
+2012-04-25  Eli Zaretskii  <eliz@gnu.org>
+
+       * progmodes/gdb-mi.el (gdb-init-1): Condition Windows-specific
+       settings on 'system-type', not on 'window-system'.  On MS-Windows,
+       set interactive-mode on in GDB.
+
 2012-04-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/ruby-mode.el: Simplify last change, and cleanup code.
index 1be74ff544b868c1782866d93123cb70b102bc49..9f9551cc5d81ff6a7af8dc1d9b66d00efef37256 100644 (file)
@@ -862,8 +862,13 @@ detailed description of this mode.
   (gdb-clear-inferior-io)
   (gdb-inferior-io--init-proc (get-process "gdb-inferior"))
 
-  (if (eq window-system 'w32)
-      (gdb-input "-gdb-set new-console off" 'ignore))
+  (when (eq system-type 'windows-nt)
+    ;; Don't create a separate console window for the debuggee.
+    (gdb-input "-gdb-set new-console off" 'ignore)
+    ;; Force GDB to behave as if its input and output stream were
+    ;; connected to a TTY device (since on Windows we use pipes for
+    ;; communicating with GDB).
+    (gdb-input "-gdb-set interactive-mode on" 'ignore))
   (gdb-input "-gdb-set height 0" 'ignore)
 
   (when gdb-non-stop