From: Gary Benson <gbenson@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Indicate batch mode failures by exiting with nonzero status
Date: Fri, 17 Aug 2018 15:38:00 -0000 [thread overview]
Message-ID: <20180817153841.GB25958@blade.nx> (raw)
In-Reply-To: <77a79412-a15c-b69a-fd11-404913e802e4@redhat.com>
Pedro Alves wrote:
> If we went that route, I'd think that could be a separate orthogonal
> option. I.e., a "stop/continue processing commands on first error"
> option. That could be used even without -batch.
>
> That would be something in the same spirit of the new
> "thread apply" / "frame apply" flags:
>
> FLAG arguments are -q (quiet), -c (continue), -s (silent).
I think, if we're going to add the behaviour that GDB should stop on
error, then that behaviour should be the default, at least for batch
mode. Stopping at the first error is what most languages do isn't it?
Apart from shell scripts :) Having to have an option to enable the
intuitive behaviour (what *I* think is intuitive anyway) just
maintains GDB's reputation as cryptic and hard to use.
Cheers,
Gary
next prev parent reply other threads:[~2018-08-17 15:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-16 13:23 Gary Benson
2018-08-16 23:46 ` Tom Tromey
2018-08-17 10:59 ` Gary Benson
2018-08-17 14:28 ` Pedro Alves
2018-08-17 15:38 ` Gary Benson [this message]
2018-08-19 15:35 ` Tom Tromey
2018-08-25 19:52 ` Philippe Waroquiers
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=20180817153841.GB25958@blade.nx \
--to=gbenson@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=tom@tromey.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