This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit
> Date: Fri, 24 Aug 2012 20:25:24 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: tromey@redhat.com, gdb-patches@sourceware.org
>
> On Fri, 24 Aug 2012 20:20:48 +0200, Eli Zaretskii wrote:
> > I fail to see how this is better than using $_version.
>
> GNU gdb (GDB) Fedora (7.3.50.20110722-16.fc16)
> [...]
> (gdb) show auto-load safe-path
> List of directories from which it is safe to auto-load files is [...].
>
> And this is even not yet GDB 7.4. And for RHELs the security backport will be
> for even older GDBs.
But all this stuff we are discussing is for the user, not for the
distributor. A user always knows which version(s) she uses, so she
can set the minimum versions accordingly.
And if worse comes to worst, one can always be conservative. It's not
a disaster not to invoke a command that was back-ported.
I find the alternatives more complex and not much more useful.