GNU bug report logs -
#23923
25.0.94; GDB duplicate menu entry
Previous Next
Reported by: Live System User <nyc4bos <at> aol.com>
Date: Fri, 8 Jul 2016 23:54:02 UTC
Severity: minor
Tags: notabug
Found in version 25.0.94
Fixed in version 26.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #21 received at 23923-done <at> debbugs.gnu.org (full text, mbox):
Version: 26.1
commit 69dde0c
Date: Fri Mar 3 19:46:57 2017 -0500
Avoid duplicate gud menu items with gdb-mi
* lisp/progmodes/gud.el (gud-menu-map): Avoid duplicate "Run"
entries in gdbmi mode. (Bug#23923)
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 1301758..7ab1442 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -146,7 +146,11 @@ Used to gray out relevant toolbar icons.")
([refresh] "Refresh" . gud-refresh)
([run] menu-item "Run" gud-run
:enable (not gud-running)
- :visible (memq gud-minor-mode '(gdbmi gdb dbx jdb)))
+ :visible (or (memq gud-minor-mode '(gdb dbx jdb))
+ (and (eq gud-minor-mode 'gdbmi)
+ (or (not (gdb-show-run-p))
+ (bound-and-true-p
+ gdb-active-process)))))
([go] menu-item (if (bound-and-true-p gdb-active-process)
"Continue" "Run") gud-go
:visible (and (eq gud-minor-mode 'gdbmi)
This bug report was last modified 8 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.