Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit
Date: Tue, 21 Aug 2012 17:59:00 -0000	[thread overview]
Message-ID: <83ipccazzg.fsf@gnu.org> (raw)
In-Reply-To: <20120821144916.GB28426@host2.jankratochvil.net>

> 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.


  reply	other threads:[~2012-08-21 17:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21 14:49 Jan Kratochvil
2012-08-21 17:59 ` Eli Zaretskii [this message]
2012-08-21 21:32 ` Doug Evans
2012-08-22 20:06 ` Tom Tromey
2012-08-23 18:05   ` Pedro Alves
2012-08-24 16:32   ` Jan Kratochvil
2012-08-24 16:39     ` Jan Kratochvil
2012-08-24 16:54       ` dje
2012-08-24 16:57         ` Jan Kratochvil
2012-08-24 18:12           ` Doug Evans
2012-08-24 17:41       ` Tom Tromey
2012-08-24 17:50         ` Jan Kratochvil
2012-08-24 18:00           ` Tom Tromey
2012-08-24 18:20       ` Eli Zaretskii
2012-08-24 18:26         ` Jan Kratochvil
2012-08-24 18:50           ` Eli Zaretskii
2012-08-24 19:00             ` Jan Kratochvil
2012-08-24 19:03               ` Eli Zaretskii
2012-09-02 15:12               ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ipccazzg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox