diff options
| author | Nick Roberts | 2008-04-12 21:57:58 +0000 |
|---|---|---|
| committer | Nick Roberts | 2008-04-12 21:57:58 +0000 |
| commit | aa72bfb25640fca0a6b9a31121323820c2cd7fb6 (patch) | |
| tree | 94b1b09cc053a8b3a2cd0239d2c35c5a715d7f6d | |
| parent | 5ca4f28e843ccb4b89b24cd3a422b6938ce7af72 (diff) | |
| download | emacs-aa72bfb25640fca0a6b9a31121323820c2cd7fb6.tar.gz emacs-aa72bfb25640fca0a6b9a31121323820c2cd7fb6.zip | |
(gdb-find-source-frame): Improve doc string.
(menu): Add/expand menu tooltips.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index a47f842490f..0dadebee8d5 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1483,9 +1483,12 @@ directives." | |||
| 1483 | :version "22.1") | 1483 | :version "22.1") |
| 1484 | 1484 | ||
| 1485 | (defun gdb-find-source-frame (arg) | 1485 | (defun gdb-find-source-frame (arg) |
| 1486 | "Toggle trying to find a source frame further up stack. | 1486 | "Toggle looking for a source frame further up call stack. |
| 1487 | The code associated with current (innermost) frame may not have | ||
| 1488 | been compiled with debug information, e.g., C library routine. | ||
| 1487 | With prefix argument ARG, look for a source frame further up | 1489 | With prefix argument ARG, look for a source frame further up |
| 1488 | stack if ARG is positive, otherwise don't look further up." | 1490 | stack to display in the source buffer if ARG is positive, |
| 1491 | otherwise don't look further up." | ||
| 1489 | (interactive "P") | 1492 | (interactive "P") |
| 1490 | (setq gdb-find-source-frame | 1493 | (setq gdb-find-source-frame |
| 1491 | (if (null arg) | 1494 | (if (null arg) |
| @@ -2969,6 +2972,7 @@ corresponding to the mode line clicked." | |||
| 2969 | (let ((menu (make-sparse-keymap "GDB-Windows"))) | 2972 | (let ((menu (make-sparse-keymap "GDB-Windows"))) |
| 2970 | (define-key gud-menu-map [displays] | 2973 | (define-key gud-menu-map [displays] |
| 2971 | `(menu-item "GDB-Windows" ,menu | 2974 | `(menu-item "GDB-Windows" ,menu |
| 2975 | :help "Open a GDB-UI buffer in a new window." | ||
| 2972 | :visible (memq gud-minor-mode '(gdbmi gdba)))) | 2976 | :visible (memq gud-minor-mode '(gdbmi gdba)))) |
| 2973 | (define-key menu [gdb] '("Gdb" . gdb-display-gdb-buffer)) | 2977 | (define-key menu [gdb] '("Gdb" . gdb-display-gdb-buffer)) |
| 2974 | (define-key menu [threads] '("Threads" . gdb-display-threads-buffer)) | 2978 | (define-key menu [threads] '("Threads" . gdb-display-threads-buffer)) |
| @@ -2987,6 +2991,7 @@ corresponding to the mode line clicked." | |||
| 2987 | (let ((menu (make-sparse-keymap "GDB-Frames"))) | 2991 | (let ((menu (make-sparse-keymap "GDB-Frames"))) |
| 2988 | (define-key gud-menu-map [frames] | 2992 | (define-key gud-menu-map [frames] |
| 2989 | `(menu-item "GDB-Frames" ,menu | 2993 | `(menu-item "GDB-Frames" ,menu |
| 2994 | :help "Open a GDB-UI buffer in a new frame." | ||
| 2990 | :visible (memq gud-minor-mode '(gdbmi gdba)))) | 2995 | :visible (memq gud-minor-mode '(gdbmi gdba)))) |
| 2991 | (define-key menu [gdb] '("Gdb" . gdb-frame-gdb-buffer)) | 2996 | (define-key menu [gdb] '("Gdb" . gdb-frame-gdb-buffer)) |
| 2992 | (define-key menu [threads] '("Threads" . gdb-frame-threads-buffer)) | 2997 | (define-key menu [threads] '("Threads" . gdb-frame-threads-buffer)) |
| @@ -3011,7 +3016,7 @@ corresponding to the mode line clicked." | |||
| 3011 | (define-key menu [gdb-find-source-frame] | 3016 | (define-key menu [gdb-find-source-frame] |
| 3012 | '(menu-item "Look For Source Frame" gdb-find-source-frame | 3017 | '(menu-item "Look For Source Frame" gdb-find-source-frame |
| 3013 | :visible (eq gud-minor-mode 'gdba) | 3018 | :visible (eq gud-minor-mode 'gdba) |
| 3014 | :help "Toggle look for source frame." | 3019 | :help "Toggle looking for source frame further up call stack." |
| 3015 | :button (:toggle . gdb-find-source-frame))) | 3020 | :button (:toggle . gdb-find-source-frame))) |
| 3016 | (define-key menu [gdb-use-separate-io] | 3021 | (define-key menu [gdb-use-separate-io] |
| 3017 | '(menu-item "Separate IO" gdb-use-separate-io-buffer | 3022 | '(menu-item "Separate IO" gdb-use-separate-io-buffer |