diff options
| author | Eli Zaretskii | 2016-09-11 22:07:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-09-11 22:07:47 +0300 |
| commit | f95ca1268da211f5c60985d411df43bb5477430b (patch) | |
| tree | 05b84c0bf1c387a0819c199c6bb60d8431b31483 | |
| parent | 7edaa77c5e1c0284aac4ce2dc0254d22ae6e49af (diff) | |
| download | emacs-f95ca1268da211f5c60985d411df43bb5477430b.tar.gz emacs-f95ca1268da211f5c60985d411df43bb5477430b.zip | |
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)
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 1 |
1 files changed, 1 insertions, 0 deletions
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." | |||
| 1976 | (not gdb-non-stop)) | 1976 | (not gdb-non-stop)) |
| 1977 | gud-running) | 1977 | gud-running) |
| 1978 | (and gdb-gud-control-all-threads | 1978 | (and gdb-gud-control-all-threads |
| 1979 | (not (null gdb-running-threads-count)) | ||
| 1979 | (> gdb-running-threads-count 0)))) | 1980 | (> gdb-running-threads-count 0)))) |
| 1980 | 1981 | ||
| 1981 | ;; GUD displays the selected GDB frame. This might might not be the current | 1982 | ;; GUD displays the selected GDB frame. This might might not be the current |