This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: working around batch mode command errors
- From: Tom Tromey <tromey at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Pedro Alves <palves at redhat dot com>, "Maucci\, Cyrille" <cyrille dot maucci at hp dot com>, "gdb\ at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 01 Nov 2012 14:38:25 -0600
- Subject: Re: working around batch mode command errors
- References: <7D0928B9A8397D4B9E2F9E5FFFB8D860027BED37@G6W2492.americas.hpqcorp.net> <509010B5.6050309@redhat.com> <87390vyhxq.fsf@fleche.redhat.com> <CADPb22TsTNNvRxe8TOcQdGNbW6Tp6bK9WZ5j54OgE0RgRRMQig@mail.gmail.com>
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> I went looking for the bugzilla entry but couldn't find it.
http://sourceware.org/bugzilla/show_bug.cgi?id=8487
Doug> try:
Doug> gdb.execute (...)
Doug> except:
Doug> pass
Doug> is just too much to type.
Doug> </sarcasm> :-)
:)
We can have both try/catch and ignore-errors, if we want.
Tom