From: Doug Evans <dje@google.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Pedro Alves <palves@redhat.com>,
"Maucci, Cyrille" <cyrille.maucci@hp.com>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: working around batch mode command errors
Date: Thu, 01 Nov 2012 20:30:00 -0000 [thread overview]
Message-ID: <CADPb22TsTNNvRxe8TOcQdGNbW6Tp6bK9WZ5j54OgE0RgRRMQig@mail.gmail.com> (raw)
In-Reply-To: <87390vyhxq.fsf@fleche.redhat.com>
On Tue, Oct 30, 2012 at 10:43 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> There's no try/catch mechanism in the CLI unfortunately, but I
> Pedro> think you could come up with one in python gdb. ISTR Tromey had
> Pedro> a python command wrapper that swallows CLI errors?
>
> Yeah, http://www.sourceware.org/ml/gdb/2010-06/msg00100.html
>
> There's a more full-blown try/catch implementation in bugzilla.
> That one isn't in Python. I don't know why it never went in.
>
> This seems to be a frequently requested feature.
>
> Tom
I went looking for the bugzilla entry but couldn't find it.
try:
gdb.execute (...)
except:
pass
is just too much to type.
</sarcasm> :-)
next prev parent reply other threads:[~2012-11-01 20:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 22:28 Maucci, Cyrille
2012-10-30 17:27 ` Jan Kratochvil
2012-10-30 17:39 ` Pedro Alves
2012-10-30 17:43 ` Tom Tromey
2012-11-01 20:30 ` Doug Evans [this message]
2012-11-01 20:38 ` Tom Tromey
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=CADPb22TsTNNvRxe8TOcQdGNbW6Tp6bK9WZ5j54OgE0RgRRMQig@mail.gmail.com \
--to=dje@google.com \
--cc=cyrille.maucci@hp.com \
--cc=gdb@sourceware.org \
--cc=palves@redhat.com \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).