aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2004-04-15 20:03:37 +0000
committerNick Roberts2004-04-15 20:03:37 +0000
commit717e5022b7c3d082bb60dbf80c41ceb0902536f3 (patch)
treebd0ddc834d9d518ed9f857f54ab4a9ca24190198
parent865f6a21473cf254700266450eea51f15f1d324e (diff)
downloademacs-717e5022b7c3d082bb60dbf80c41ceb0902536f3.tar.gz
emacs-717e5022b7c3d082bb60dbf80c41ceb0902536f3.zip
(gdb-goto-info): New function.
-rw-r--r--lisp/progmodes/gdb-ui.el46
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
75it starts with two windows: one displaying the GUD buffer and the 75it starts with two windows: one displaying the GUD buffer and the
76other with the source file with the main routine of the debugee. 76other with the source file with the main routine of the debugee.
77 77
78If `gdb-many-windows' is t the layout below will appear 78If `gdb-many-windows' is t, regardless of the value of
79regardless 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
81occupies the full width of the frame. Keybindings are given in 81occupies the full width of the frame. Keybindings are given in
82relevant buffer. 82relevant buffer.
83 83
84Watch expressions appear in the speedbar/slowbar.
85
86The 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
91See Info node `(emacs)GDB Graphical Interface' for a more
92detailed description of this mode.
93
94
84--------------------------------------------------------------------- 95---------------------------------------------------------------------
85 GDB Toolbar 96 GDB Toolbar
86--------------------------------------------------------------------- 97---------------------------------------------------------------------
87GUD buffer (I/O of GDB) | Locals buffer 98 GUD buffer (I/O of GDB) | Locals buffer
88 | 99 |
89 | 100 |
90 | 101 |
91--------------------------------------------------------------------- 102---------------------------------------------------------------------
92Source 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---------------------------------------------------------------------
101Stack 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"
107All the buffers share the toolbar and source should always display in the same
108window e.g after typing g on a breakpoint in the breakpoints buffer. Breakpoint
109icons are displayed both by setting a break with gud-break and by typing break
110in the GUD buffer.
111
112This works best (depending on the size of your monitor) using most of the
113screen.
114
115Displayed expressions appear in separate frames. Arrays may be displayed
116as slices and visualised using the graph program from plotutils if installed.
117Pointers in structures may be followed in a tree-like fashion.
118
119The 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
1660unless `gdb-show-main' is t. In this case it starts with two 1660unless `gdb-show-main' is t. In this case it starts with two
1661windows: one displaying the GUD buffer and the other with the 1661windows: one displaying the GUD buffer and the other with the
1662source file with the main routine of the debugee. Non-nil means 1662source file with the main routine of the debugee. Non-nil means