aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorYuan Fu2020-03-27 09:43:49 +0100
committerMartin Rudalics2020-03-27 09:43:49 +0100
commitac242ed3843e127c1e2e506ecfd1a4552a2a8c44 (patch)
tree2ba149aa6e3b983ef73400453dc173e89c773d42 /doc
parentde00a933e4b35b42398582eaba58531e5fdd46ca (diff)
downloademacs-ac242ed3843e127c1e2e506ecfd1a4552a2a8c44.tar.gz
emacs-ac242ed3843e127c1e2e506ecfd1a4552a2a8c44.zip
Add manual and NEWS entries for previous gdb-mi changes
* etc/NEWS: Add entries for saving and restoring GDB window configurations. * doc/emacs/building.texi (GDB User Interface Layout): Add documentation for 'gdb-save-window-configuration', 'gdb-load-window-configuration', 'gdb-default-window-configuration-file', 'gdb-window-configuration-directory', 'gdb-restore-window-configuration-after-quit'. Change 'many-windows layout' to 'default layout'.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/building.texi28
1 files changed, 26 insertions, 2 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index 38963f225ca..8a05680c742 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -975,9 +975,27 @@ displays the following frame layout:
975@end group 975@end group
976@end smallexample 976@end smallexample
977 977
978@findex gdb-save-window-configuration
979@findex gdb-load-window-configuration
980@vindex gdb-default-window-configuration-file
981@vindex gdb-window-configuration-directory
982 You can customize the window layout based on the one above and save
983that layout to a file using @code{gdb-save-window-configuration}.
984Then you can later load this layout back using
985@code{gdb-load-window-configuration}. (Internally, Emacs uses the
986term window configuration instead of window layout.) You can set your
987custom layout as the default one used by @code{gdb-many-windows} by
988customizing @code{gdb-default-window-configuration-file}. If it is
989not an absolute file name, GDB looks under
990@code{gdb-window-configuration-directory} for the file.
991@code{gdb-window-configuration-directory} defaults to
992@code{user-emacs-directory} (@pxref{Find Init}).
993
994
978@findex gdb-restore-windows 995@findex gdb-restore-windows
979@findex gdb-many-windows 996@findex gdb-many-windows
980 If you ever change the window layout, you can restore the many-windows 997@vindex gdb-restore-window-configuration-after-quit
998 If you ever change the window layout, you can restore the default
981layout by typing @kbd{M-x gdb-restore-windows}. To toggle 999layout by typing @kbd{M-x gdb-restore-windows}. To toggle
982between the many windows layout and a simple layout with just the GUD 1000between the many windows layout and a simple layout with just the GUD
983interaction buffer and a source file, type @kbd{M-x gdb-many-windows}. 1001interaction buffer and a source file, type @kbd{M-x gdb-many-windows}.
@@ -988,7 +1006,13 @@ interaction buffer and a source file, type @kbd{M-x gdb-many-windows}.
988of windows on your original frame will not be affected. A separate 1006of windows on your original frame will not be affected. A separate
989frame for GDB sessions can come in especially handy if you work on a 1007frame for GDB sessions can come in especially handy if you work on a
990text-mode terminal, where the screen estate for windows could be at a 1008text-mode terminal, where the screen estate for windows could be at a
991premium. 1009premium. If you choose to start GDB in the same frame, consider
1010setting @code{gdb-restore-window-configuration-after-quit} to a
1011non-@code{nil} value. Your original layout will then be restored
1012after GDB quits. Use @code{t} to always restore; use
1013@code{if-gdb-many-windows} to restore only when
1014@code{gdb-many-windows} is non-@code{nil}; use @code{if-gdb-show-main}
1015to restore only when @code{gdb-show-main} is non-@code{nil}.
992 1016
993 You may also specify additional GDB-related buffers to display, 1017 You may also specify additional GDB-related buffers to display,
994either in the same frame or a different one. Select the buffers you 1018either in the same frame or a different one. Select the buffers you