diff options
| author | Karoly Lorentey | 2004-04-16 13:36:07 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-04-16 13:36:07 +0000 |
| commit | 5ffa0039d41813857b4442d435ad4f65123737c5 (patch) | |
| tree | 4145589d785cf7b6bfeb760a9b761a7713f7f4dd /lisp/progmodes | |
| parent | bf11e465e7de681939128d851b82689de1a54849 (diff) | |
| parent | 3f0d8131f84963c112c2528a3b79760a2c8873fd (diff) | |
| download | emacs-5ffa0039d41813857b4442d435ad4f65123737c5.tar.gz emacs-5ffa0039d41813857b4442d435ad4f65123737c5.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-218
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-219
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-139
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 46 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 16 |
2 files changed, 31 insertions, 31 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 |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index a34b0bb2d48..4627f2ac639 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -92,7 +92,9 @@ If SOFT is non-nil, returns nil if the symbol doesn't already exist." | |||
| 92 | Used to grey out relevant toolbar icons.") | 92 | Used to grey out relevant toolbar icons.") |
| 93 | 93 | ||
| 94 | (easy-mmode-defmap gud-menu-map | 94 | (easy-mmode-defmap gud-menu-map |
| 95 | '(([refresh] "Refresh" . gud-refresh) | 95 | '(([help] menu-item "Help" gdb-goto-info |
| 96 | :enable (eq gud-minor-mode 'gdba)) | ||
| 97 | ([refresh] "Refresh" . gud-refresh) | ||
| 96 | ([run] menu-item "Run" gud-run | 98 | ([run] menu-item "Run" gud-run |
| 97 | :enable (and (not gud-running) | 99 | :enable (and (not gud-running) |
| 98 | (memq gud-minor-mode '(gdba gdb dbx jdb)))) | 100 | (memq gud-minor-mode '(gdba gdb dbx jdb)))) |
| @@ -116,20 +118,17 @@ Used to grey out relevant toolbar icons.") | |||
| 116 | ([print] menu-item "Print Expression" gud-print | 118 | ([print] menu-item "Print Expression" gud-print |
| 117 | :enable (not gud-running)) | 119 | :enable (not gud-running)) |
| 118 | ([watch] menu-item "Watch Expression" gud-watch | 120 | ([watch] menu-item "Watch Expression" gud-watch |
| 119 | :enable (and (not gud-running) | 121 | :enable (and (not gud-running) (eq gud-minor-mode 'gdba))) |
| 120 | (eq gud-minor-mode 'gdba))) | ||
| 121 | ([finish] menu-item "Finish Function" gud-finish | 122 | ([finish] menu-item "Finish Function" gud-finish |
| 122 | :enable (and (not gud-running) | 123 | :enable (and (not gud-running) |
| 123 | (memq gud-minor-mode | 124 | (memq gud-minor-mode |
| 124 | '(gdba gdb xdb jdb pdb bashdb)))) | 125 | '(gdba gdb xdb jdb pdb bashdb)))) |
| 125 | ([stepi] menu-item "Step Instruction" gud-stepi | 126 | ([stepi] menu-item "Step Instruction" gud-stepi |
| 126 | :enable (and (not gud-running) | 127 | :enable (and (not gud-running) |
| 127 | (memq gud-minor-mode | 128 | (memq gud-minor-mode '(gdba gdb dbx)))) |
| 128 | '(gdba gdb dbx)))) | ||
| 129 | ([nexti] menu-item "Next Instruction" gud-nexti | 129 | ([nexti] menu-item "Next Instruction" gud-nexti |
| 130 | :enable (and (not gud-running) | 130 | :enable (and (not gud-running) |
| 131 | (memq gud-minor-mode | 131 | (memq gud-minor-mode '(gdba gdb dbx)))) |
| 132 | '(gdba gdb dbx)))) | ||
| 133 | ([step] menu-item "Step Line" gud-step | 132 | ([step] menu-item "Step Line" gud-step |
| 134 | :enable (not gud-running)) | 133 | :enable (not gud-running)) |
| 135 | ([next] menu-item "Next Line" gud-next | 134 | ([next] menu-item "Next Line" gud-next |
| @@ -171,7 +170,8 @@ Used to grey out relevant toolbar icons.") | |||
| 171 | (gud-stepi . "gud-si") | 170 | (gud-stepi . "gud-si") |
| 172 | (gud-nexti . "gud-ni") | 171 | (gud-nexti . "gud-ni") |
| 173 | (gud-up . "gud-up") | 172 | (gud-up . "gud-up") |
| 174 | (gud-down . "gud-down")) | 173 | (gud-down . "gud-down") |
| 174 | (gdb-goto-info . "help")) | ||
| 175 | map) | 175 | map) |
| 176 | (tool-bar-local-item-from-menu | 176 | (tool-bar-local-item-from-menu |
| 177 | (car x) (cdr x) map gud-minor-mode-map))))) | 177 | (car x) (cdr x) map gud-minor-mode-map))))) |