Change the default value of gdb-mi-decode-strings to t (bug#44173)
This is likely to be a more commonly wanted default value today. * lisp/progmodes/gdb-mi.el (gdb-mi-decode-strings): Change default. * doc/emacs/building.texi (Source Buffers): Update manual. * etc/NEWS: Announce.
This commit is contained in:
parent
0c5eb1c7e7
commit
1b9e159525
3 changed files with 12 additions and 8 deletions
|
|
@ -1092,13 +1092,12 @@ code that has already executed, in order to examine its execution in
|
|||
more detail.
|
||||
|
||||
@vindex gdb-mi-decode-strings
|
||||
If the file names of the source files are shown with octal escapes,
|
||||
set the variable @code{gdb-mi-decode-strings} to the appropriate
|
||||
coding-system, most probably @code{utf-8}. (This is @code{nil} by
|
||||
default because GDB may emit octal escapes in situations where
|
||||
decoding is undesirable, and also because the program being debugged
|
||||
might use an encoding different from the one used to encode non-ASCII
|
||||
file names on your system.)
|
||||
By default, source file names and non-ASCII strings in the program
|
||||
being debugged are decoded using the default coding-system. If you
|
||||
prefer a different decoding, perhaps because the program being
|
||||
debugged uses a different character encoding, set the variable
|
||||
@code{gdb-mi-decode-strings} to the appropriate coding-system, or to
|
||||
@code{nil} to leave non-ASCII characters as undecoded octal escapes.
|
||||
|
||||
@node Breakpoints Buffer
|
||||
@subsubsection Breakpoints Buffer
|
||||
|
|
|
|||
5
etc/NEWS
5
etc/NEWS
|
|
@ -855,6 +855,11 @@ Now GDB only uses one source window to display source file by default.
|
|||
Customize 'gdb-max-source-window-count' to use more than one window.
|
||||
Control source file display by 'gdb-display-source-buffer-action'.
|
||||
|
||||
+++
|
||||
*** The default value of gdb-mi-decode-strings is now t.
|
||||
This means that the default coding-system is now used to decode strings
|
||||
and source file names from GDB.
|
||||
|
||||
** Gravatar
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -2455,7 +2455,7 @@ the end of the current result or async record is reached."
|
|||
;; files, values of string variables in the inferior, etc., are all
|
||||
;; encoded in the same encoding.
|
||||
|
||||
(defcustom gdb-mi-decode-strings nil
|
||||
(defcustom gdb-mi-decode-strings t
|
||||
"When non-nil, decode octal escapes in GDB output into non-ASCII text.
|
||||
|
||||
If the value is a coding-system, use that coding-system to decode
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue