gud-menu-map
gud-menu-map is a variable defined in `
gud.el
'.
Its value is shown
below.
- This variable may be risky if used as a file-local variable.
Documentation:
Menu for `gud-mode'.
Value:
(keymap
(mi menu-item "GDB-MI"
(keymap
(gdb-switch-when-another-stopped menu-item "Automatically switch to stopped thread" gdb-toggle-switch-when-another-stopped :help "Switch to stopped thread" :button
(:toggle and
(default-boundp 'gdb-switch-when-another-stopped)
(default-value 'gdb-switch-when-another-stopped)))
(gdb-customize-reasons menu-item "Customize switching..."
(lambda nil
(interactive)
(customize-option 'gdb-switch-reasons)))
(sep2 menu-item "--")
(current-thread menu-item "GUD controls current thread"
(lambda nil
(interactive)
(setq gdb-gud-control-all-threads nil))
:help "GUD start/stop commands apply to current thread only" :button
(:radio not gdb-gud-control-all-threads))
(all-threads menu-item "GUD controls all threads"
(lambda nil
(interactive)
(setq gdb-gud-control-all-threads t))
:help "GUD start/stop commands apply to all threads" :button
(:radio . gdb-gud-control-all-threads))
(sep1 menu-item "--")
(gdb-restore-windows menu-item "Restore Window Layout" gdb-restore-windows :help "Restore standard layout for debug session.")
(gdb-many-windows menu-item "Display Other Windows" gdb-many-windows :help "Toggle display of locals, stack and breakpoint information" :button
(:toggle . gdb-many-windows))
(gdb-customize menu-item "Customize"
(lambda nil
(interactive)
(customize-group 'gdb))
:help "Customize Gdb Graphical Mode options.")
"GDB-MI")
:visible
(eq gud-minor-mode 'gdbmi))
(frames menu-item "GDB-Frames"
(keymap
(breakpoints "Breakpoints" . gdb-frame-breakpoints-buffer)
(frames "Stack" . gdb-frame-stack-buffer)
(locals "Locals" . gdb-frame-locals-buffer)
(inferior "IO" . gdb-frame-io-buffer)
(registers "Registers" . gdb-frame-registers-buffer)
(disassembly "Disassembly" . gdb-frame-disassembly-buffer)
(memory "Memory" . gdb-frame-memory-buffer)
(threads "Threads" . gdb-frame-threads-buffer)
(gdb "Gdb" . gdb-frame-gdb-buffer)
"GDB-Frames")
:visible
(eq gud-minor-mode 'gdbmi))
(displays menu-item "GDB-Windows"
(keymap
(breakpoints "Breakpoints" . gdb-display-breakpoints-buffer)
(frames "Stack" . gdb-display-stack-buffer)
(locals "Locals" . gdb-display-locals-buffer)
(inferior "IO" . gdb-display-io-buffer)
(registers "Registers" . gdb-display-registers-buffer)
(disassembly "Disassembly" . gdb-display-disassembly-buffer)
(memory "Memory" . gdb-display-memory-buffer)
(threads "Threads" . gdb-display-threads-buffer)
(gdb "Gdb" . gdb-display-gdb-buffer)
"GDB-Windows")
:visible
(eq gud-minor-mode 'gdbmi))
(cont menu-item "Continue" gud-cont :enable
(not gud-running)
:visible
(not
(eq gud-minor-mode 'gdbmi)))
(next menu-item "Next Line" gud-next :enable
(not gud-running))
(step menu-item "Step Line" gud-step :enable
(not gud-running))
(nexti menu-item "Next Instruction" gud-nexti :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb dbx)))
(stepi menu-item "Step Instruction" gud-stepi :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb dbx)))
(finish menu-item "Finish Function" gud-finish :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb guiler xdb jdb pdb)))
(watch menu-item "Watch Expression" gud-watch :enable
(not gud-running)
:visible
(eq gud-minor-mode 'gdbmi))
(print menu-item "Print Expression" gud-print :enable
(not gud-running))
(print* menu-item
(if
(eq gud-minor-mode 'jdb)
"Dump object" "Print Dereference")
gud-pstar :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb jdb)))
(pp menu-item "Print S-expression" gud-pp :enable
(and
(not gud-running)
(bound-and-true-p gdb-active-process))
:visible
(and
(string-equal
(buffer-local-value 'gud-target-name gud-comint-buffer)
"emacs")
(eq gud-minor-mode 'gdbmi)))
(down menu-item "Down Stack" gud-down :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb guiler dbx xdb jdb pdb)))
(up menu-item "Up Stack" gud-up :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb guiler dbx xdb jdb pdb)))
(break menu-item "Set Breakpoint" gud-break :enable
(not gud-running)
:visible
(gud-tool-bar-item-visible-no-fringe))
(tbreak menu-item "Temporary Breakpoint" gud-tbreak :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb sdb xdb)))
(remove menu-item "Remove Breakpoint" gud-remove :enable
(not gud-running)
:visible
(gud-tool-bar-item-visible-no-fringe))
(until menu-item "Continue to selection" gud-until :enable
(not gud-running)
:visible
(and
(memq gud-minor-mode
'(gdbmi gdb perldb))
(gud-tool-bar-item-visible-no-fringe)))
(stop menu-item "Stop" gud-stop-subjob :visible
(or
(not
(memq gud-minor-mode
'(gdbmi pdb)))
(gdb-show-stop-p)))
(go menu-item
(if
(bound-and-true-p gdb-active-process)
"Continue" "Run")
gud-go :visible
(and
(eq gud-minor-mode 'gdbmi)
(gdb-show-run-p)))
(run menu-item "Run" gud-run :enable
(not gud-running)
:visible
(memq gud-minor-mode
'(gdbmi gdb dbx jdb)))
(refresh "Refresh" . gud-refresh)
(tooltips menu-item "Show GUD tooltips" gud-tooltip-mode :enable
(and
(not emacs-basic-display)
(display-graphic-p)
(fboundp 'x-show-tip))
:visible
(memq gud-minor-mode
'(gdbmi guiler dbx sdb xdb pdb))
:button
(:toggle . gud-tooltip-mode))
(help "Info (debugger)" . gud-goto-info)
"Gud")