This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[doc,PR 14777] Fix default demangle-style


As reported in PR14777, the default 'demangle-style' in doc is 'gnu',
while the gdb shows the default is 'auto'.  This inconsistency had
been there prior to GDB was imported to sourceware cvs.

The comment at the beginning of demangle.c was written 1992,

  /* Select the default C++ demangling style to use.  The default is "auto",

and the line of doc saying "This (gnu) is the default" was written
in 1995 (with unknown reason).  So I think the 'auto' should be
correct/desired default value.

On the other hand, it is common that 'auto' is the default of commands
options.  This is the last patch against PR 14777, is it OK?

gdb/doc:

2012-11-28  Yao Qi  <yao@codesourcery.com>

	PR gdb/1477.
	* gdb.texinfo (Print Settings): Correct the default 'demangle-style'
	to 'auto' instead of 'gnu'.
---
 gdb/doc/gdb.texinfo |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index afe3845..6f80031 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -8884,10 +8884,10 @@ represent C@t{++} names.  The choices for @var{style} are currently:
 @table @code
 @item auto
 Allow @value{GDBN} to choose a decoding style by inspecting your program.
+This is the default.
 
 @item gnu
 Decode based on the @sc{gnu} C@t{++} compiler (@code{g++}) encoding algorithm.
-This is the default.
 
 @item hp
 Decode based on the HP ANSI C@t{++} (@code{aCC}) encoding algorithm.
-- 
1.7.7.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]