From: Eli Zaretskii Date: Sun, 11 Sep 2016 19:07:47 +0000 (+0300) Subject: Avoid signaling errors when computing "Stop" in GDB menu X-Git-Tag: emacs-26.0.90~1620 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f95ca1268da211f5c60985d411df43bb5477430b;p=emacs.git Avoid signaling errors when computing "Stop" in GDB menu * lisp/progmodes/gdb-mi.el (gdb-show-stop-p): Don't assume 'gdb-running-threads-count' must have a numeric value. (Bug#24414) --- diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 8047e208ea5..a2d4f143509 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -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