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]

Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit


> Date: Tue, 21 Aug 2012 16:49:16 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Eli Zaretskii <eliz@gnu.org>
> 
> it was requested by Eli in mail:
> 	Re: GDB 7.5: Problems with the auto-load safe-path feature
> 	http://sourceware.org/ml/gdb-patches/2012-08/msg00508.html
> 	D:\usr\eli/.gdbinit:1: Error in sourced command file: "on" or "off" expected.
> 
> IIRC it was already discussed even in the past.
> 
> One solution would be some new mode where errors are only printed and script
> execution does not stop there.
> 
> I have implemented a way to explicitly check for GDB version instead.

This is a very useful feature, thanks.

> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -9307,6 +9307,22 @@ gdbserver that supports the @code{qGetTIBAddr} request.
>  @xref{General Query Packets}.
>  This variable contains the address of the thread information block.
>  
> +@anchor{Convenience variable $_version}
> +@item $_version

Please add a @vindex entry here.

> +@xref{Convenience variable $_version}, for how to make such @file{~/.gdbinit}
> +setting compatible with @value{GDBN} versions before 7.5 not supporting this
> +commend yet.
   ^^^^^^^
"command"

> +@xref{Convenience variable $_version}, for how to make such @file{~/.gdbinit}
> +setting compatible with @value{GDBN} versions before 7.5 not supporting this
> +commend yet.

Likewise.

OK with those changes.

Thanks.


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