This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [doc,PR 14777] Fix default demangle-style
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 28 Nov 2012 19:41:01 +0200
- Subject: Re: [doc,PR 14777] Fix default demangle-style
- References: <1354108573-3064-1-git-send-email-yao@codesourcery.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Yao Qi <yao@codesourcery.com>
> Date: Wed, 28 Nov 2012 21:16:13 +0800
>
> 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'.
Fine with me, thanks.