diff options
| author | Nick Roberts | 2004-04-15 20:03:37 +0000 |
|---|---|---|
| committer | Nick Roberts | 2004-04-15 20:03:37 +0000 |
| commit | 717e5022b7c3d082bb60dbf80c41ceb0902536f3 (patch) | |
| tree | bd0ddc834d9d518ed9f857f54ab4a9ca24190198 | |
| parent | 865f6a21473cf254700266450eea51f15f1d324e (diff) | |
| download | emacs-717e5022b7c3d082bb60dbf80c41ceb0902536f3.tar.gz emacs-717e5022b7c3d082bb60dbf80c41ceb0902536f3.zip | |
(gdb-goto-info): New function.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 5163471f47a..8446266b2f3 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -75,21 +75,32 @@ pops up the GUD buffer unless `gdb-show-main' is t. In this case | |||
| 75 | it starts with two windows: one displaying the GUD buffer and the | 75 | it starts with two windows: one displaying the GUD buffer and the |
| 76 | other with the source file with the main routine of the debugee. | 76 | other with the source file with the main routine of the debugee. |
| 77 | 77 | ||
| 78 | If `gdb-many-windows' is t the layout below will appear | 78 | If `gdb-many-windows' is t, regardless of the value of |
| 79 | regardless of the value of `gdb-show-main' unless | 79 | `gdb-show-main', the layout below will appear unless |
| 80 | `gdb-use-inferior-io-buffer' is nil when the source buffer | 80 | `gdb-use-inferior-io-buffer' is nil when the source buffer |
| 81 | occupies the full width of the frame. Keybindings are given in | 81 | occupies the full width of the frame. Keybindings are given in |
| 82 | relevant buffer. | 82 | relevant buffer. |
| 83 | 83 | ||
| 84 | Watch expressions appear in the speedbar/slowbar. | ||
| 85 | |||
| 86 | The following interactive lisp functions help control operation : | ||
| 87 | |||
| 88 | `gdb-many-windows' - Toggle the number of windows gdb uses. | ||
| 89 | `gdb-restore-windows' - To restore the window layout. | ||
| 90 | |||
| 91 | See Info node `(emacs)GDB Graphical Interface' for a more | ||
| 92 | detailed description of this mode. | ||
| 93 | |||
| 94 | |||
| 84 | --------------------------------------------------------------------- | 95 | --------------------------------------------------------------------- |
| 85 | GDB Toolbar | 96 | GDB Toolbar |
| 86 | --------------------------------------------------------------------- | 97 | --------------------------------------------------------------------- |
| 87 | GUD buffer (I/O of GDB) | Locals buffer | 98 | GUD buffer (I/O of GDB) | Locals buffer |
| 88 | | | 99 | | |
| 89 | | | 100 | | |
| 90 | | | 101 | | |
| 91 | --------------------------------------------------------------------- | 102 | --------------------------------------------------------------------- |
| 92 | Source buffer | Input/Output (of debugee) buffer | 103 | Source buffer | Input/Output (of debugee) buffer |
| 93 | | (comint-mode) | 104 | | (comint-mode) |
| 94 | | | 105 | | |
| 95 | | | 106 | | |
| @@ -98,28 +109,12 @@ Source buffer | Input/Output (of debugee) buffer | |||
| 98 | | | 109 | | |
| 99 | | | 110 | | |
| 100 | --------------------------------------------------------------------- | 111 | --------------------------------------------------------------------- |
| 101 | Stack buffer | Breakpoints buffer | 112 | Stack buffer | Breakpoints buffer |
| 102 | RET gdb-frames-select | SPC gdb-toggle-breakpoint | 113 | RET gdb-frames-select | SPC gdb-toggle-breakpoint |
| 103 | | RET gdb-goto-breakpoint | 114 | | RET gdb-goto-breakpoint |
| 104 | | d gdb-delete-breakpoint | 115 | | d gdb-delete-breakpoint |
| 105 | --------------------------------------------------------------------- | 116 | --------------------------------------------------------------------- |
| 106 | 117 | " | |
| 107 | All the buffers share the toolbar and source should always display in the same | ||
| 108 | window e.g after typing g on a breakpoint in the breakpoints buffer. Breakpoint | ||
| 109 | icons are displayed both by setting a break with gud-break and by typing break | ||
| 110 | in the GUD buffer. | ||
| 111 | |||
| 112 | This works best (depending on the size of your monitor) using most of the | ||
| 113 | screen. | ||
| 114 | |||
| 115 | Displayed expressions appear in separate frames. Arrays may be displayed | ||
| 116 | as slices and visualised using the graph program from plotutils if installed. | ||
| 117 | Pointers in structures may be followed in a tree-like fashion. | ||
| 118 | |||
| 119 | The following interactive lisp functions help control operation : | ||
| 120 | |||
| 121 | `gdb-many-windows' - Toggle the number of windows gdb uses. | ||
| 122 | `gdb-restore-windows' - To restore the window layout." | ||
| 123 | ;; | 118 | ;; |
| 124 | (interactive (list (gud-query-cmdline 'gdba))) | 119 | (interactive (list (gud-query-cmdline 'gdba))) |
| 125 | ;; | 120 | ;; |
| @@ -224,6 +219,11 @@ speedbar." | |||
| 224 | `(lambda () (gdb-var-create-handler ,expr)))))) | 219 | `(lambda () (gdb-var-create-handler ,expr)))))) |
| 225 | (select-window (get-buffer-window gud-comint-buffer))) | 220 | (select-window (get-buffer-window gud-comint-buffer))) |
| 226 | 221 | ||
| 222 | (defun gdb-goto-info () | ||
| 223 | (interactive) | ||
| 224 | (select-frame (make-frame)) | ||
| 225 | (Info-goto-node "(emacs)GDB Graphical Interface")) | ||
| 226 | |||
| 227 | (defconst gdb-var-create-regexp | 227 | (defconst gdb-var-create-regexp |
| 228 | "name=\"\\(.*?\\)\",numchild=\"\\(.*?\\)\",type=\"\\(.*?\\)\"") | 228 | "name=\"\\(.*?\\)\",numchild=\"\\(.*?\\)\",type=\"\\(.*?\\)\"") |
| 229 | 229 | ||
| @@ -1656,7 +1656,7 @@ the source buffer." | |||
| 1656 | (other-window 1)) | 1656 | (other-window 1)) |
| 1657 | 1657 | ||
| 1658 | (defcustom gdb-many-windows nil | 1658 | (defcustom gdb-many-windows nil |
| 1659 | "Nil (the default value) means just pops up the GUD buffer | 1659 | "Nil (the default value) means just pop up the GUD buffer |
| 1660 | unless `gdb-show-main' is t. In this case it starts with two | 1660 | unless `gdb-show-main' is t. In this case it starts with two |
| 1661 | windows: one displaying the GUD buffer and the other with the | 1661 | windows: one displaying the GUD buffer and the other with the |
| 1662 | source file with the main routine of the debugee. Non-nil means | 1662 | source file with the main routine of the debugee. Non-nil means |