aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-11-30 10:45:28 +0200
committerEli Zaretskii2018-11-30 10:45:28 +0200
commitbce1d1afabe24c8461d56336fb966e819f20a175 (patch)
treea3fca082da3c64e9178294f78d3b7eb6d587e882
parent809989f79ee4038f50d18765c4b727c8451ae0da (diff)
downloademacs-bce1d1afabe24c8461d56336fb966e819f20a175.tar.gz
emacs-bce1d1afabe24c8461d56336fb966e819f20a175.zip
Improve documentation of gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-show-changed-values) (gdb-max-children): Doc fixes. * doc/emacs/building.texi (Source Buffers, Stack Buffer) (GDB User Interface Layout): Mention some additional customizable variables. (Bug#33548)
-rw-r--r--doc/emacs/building.texi15
-rw-r--r--lisp/progmodes/gdb-mi.el6
2 files changed, 19 insertions, 2 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index 7e250bf4250..5cd3221928f 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -912,6 +912,7 @@ height and width values during the debugging session.
912@cindex GDB User Interface layout 912@cindex GDB User Interface layout
913 913
914@vindex gdb-many-windows 914@vindex gdb-many-windows
915@vindex gdb-show-main
915 If the variable @code{gdb-many-windows} is @code{nil} (the default), 916 If the variable @code{gdb-many-windows} is @code{nil} (the default),
916@kbd{M-x gdb} normally displays only the GUD interaction buffer. 917@kbd{M-x gdb} normally displays only the GUD interaction buffer.
917However, if the variable @code{gdb-show-main} is also non-@code{nil}, 918However, if the variable @code{gdb-show-main} is also non-@code{nil},
@@ -1011,6 +1012,15 @@ allows you to go backwards, which can be useful for running through
1011code that has already executed, in order to examine its execution in 1012code that has already executed, in order to examine its execution in
1012more detail. 1013more detail.
1013 1014
1015@vindex gdb-mi-decode-strings
1016 If the file names of the source files are shown with octal escapes,
1017set the variable @code{gdb-mi-decode-strings} to the appropriate
1018coding-system, most probably @code{utf-8}. (This is @code{nil} by
1019default because GDB may emit octal escapes in situations where
1020decoding is undesirable, and also because the program being debugged
1021might use an encoding different from the one used to encode non-ASCII
1022file names on your system.)
1023
1014@node Breakpoints Buffer 1024@node Breakpoints Buffer
1015@subsubsection Breakpoints Buffer 1025@subsubsection Breakpoints Buffer
1016 1026
@@ -1150,6 +1160,11 @@ also updates the Locals buffer
1150(described in the next section). 1160(described in the next section).
1151@end iftex 1161@end iftex
1152 1162
1163@vindex gdb-stack-buffer-addresses
1164 If you want the frame address to be shown each stack frame,
1165customize the variable @code{gdb-stack-buffer-addresses} to a
1166non-@code{nil} value.
1167
1153@node Other GDB Buffers 1168@node Other GDB Buffers
1154@subsubsection Other GDB Buffers 1169@subsubsection Other GDB Buffers
1155 1170
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 0506386a75d..013a40943ba 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1120,13 +1120,15 @@ line, and no execution takes place."
1120(defcustom gdb-show-changed-values t 1120(defcustom gdb-show-changed-values t
1121 "If non-nil change the face of out of scope variables and changed values. 1121 "If non-nil change the face of out of scope variables and changed values.
1122Out of scope variables are suppressed with `shadow' face. 1122Out of scope variables are suppressed with `shadow' face.
1123Changed values are highlighted with the face `font-lock-warning-face'." 1123Changed values are highlighted with the face `font-lock-warning-face'.
1124Used by Speedbar."
1124 :type 'boolean 1125 :type 'boolean
1125 :group 'gdb 1126 :group 'gdb
1126 :version "22.1") 1127 :version "22.1")
1127 1128
1128(defcustom gdb-max-children 40 1129(defcustom gdb-max-children 40
1129 "Maximum number of children before expansion requires confirmation." 1130 "Maximum number of children before expansion requires confirmation.
1131Used by Speedbar."
1130 :type 'integer 1132 :type 'integer
1131 :group 'gdb 1133 :group 'gdb
1132 :version "22.1") 1134 :version "22.1")