This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: mbilal at codesourcery dot com, gdb-patches at sourceware dot org, jan dot kratochvil at redhat dot com
- Date: Wed, 22 May 2013 20:49:16 +0300
- Subject: Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history.
- References: <51877A32 dot 1030503 at codesourcery dot com> <51877A99 dot 4060503 at codesourcery dot com> <51877B42 dot 7 at codesourcery dot com> <51877BC6 dot 6080007 at codesourcery dot com> <51877C76 dot 2000509 at codesourcery dot com> <518A0BA8 dot 9000703 at codesourcery dot com> <51936CAF dot 2090508 at codesourcery dot com> <51937A87 dot 2030403 at codesourcery dot com> <83ehd85q79 dot fsf at gnu dot org> <519CFF3D dot 4080001 at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 22 May 2013 18:24:13 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: mbilal <mbilal@codesourcery.com>, gdb-patches@sourceware.org,
> jan.kratochvil@redhat.com
>
> At startup time, if "set history filename" hasn't been
> used (tracked with a new global flag), then check whether there's
> a $cwd/.gdb_history file, and if so, output a warning stating that
> it's no longer read by default. The warning could also
> suggest adding "set history filename .gdb_history" to .gdbinit
> to get back the old behavior.
That's even more annoying, IMO.
I think gratuitous backward incompatibility is evil, especially in
programs, like GDB, where there are no good facilities for
version-specific scripting. We are breaking scripts out there for no
good reason, and we aren't giving the users of those scripts _any_
means to get their previous behavior cleanly.
But I know I'm somehow in the minority here. It's probably the age or
something.