]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid signaling errors when computing "Stop" in GDB menu
authorEli Zaretskii <eliz@gnu.org>
Sun, 11 Sep 2016 19:07:47 +0000 (22:07 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 11 Sep 2016 19:07:47 +0000 (22:07 +0300)
* lisp/progmodes/gdb-mi.el (gdb-show-stop-p): Don't assume
'gdb-running-threads-count' must have a numeric value.
(Bug#24414)

lisp/progmodes/gdb-mi.el

index 8047e208ea57fdb2786d7fa7b421dec9ac7b97d5..a2d4f14350937ab7801b26f0558189cd1789b936 100644 (file)
@@ -1976,6 +1976,7 @@ is running."
             (not gdb-non-stop))
            gud-running)
       (and gdb-gud-control-all-threads
+           (not (null gdb-running-threads-count))
            (> gdb-running-threads-count 0))))
 
 ;; GUD displays the selected GDB frame.  This might might not be the current