From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: dje@google.com
Cc: Tom Tromey <tromey@redhat.com>,
gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>
Subject: Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit
Date: Fri, 24 Aug 2012 16:57:00 -0000 [thread overview]
Message-ID: <20120824165706.GA12430@host2.jankratochvil.net> (raw)
In-Reply-To: <20535.45487.639469.141021@ruffy2.mtv.corp.google.com>
On Fri, 24 Aug 2012 18:54:07 +0200, dje@google.com wrote:
> Jan Kratochvil writes:
> > if $_have_ignore_errors
> > set ignore-errors yes
> > add-auto-load-safe-path ~/src
> > set ignore-errors no
> > end
[...]
> For my own education, why is $_have_ignore_errors needed?
> [It doesn't, for example, evaluate to 0 if it doesn't exist.]
It evaluates to void, which is false:
(gdb) p $_x
$1 = void
(gdb) ptype $_x
type = void
$ cat x
if $_x
echo YES\n
else
echo NO\n
end
$ gdb -q -x ./x
NO
Thanks,
Jan
next prev parent reply other threads:[~2012-08-24 16:57 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
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 [this message]
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=20120824165706.GA12430@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=dje@google.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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