This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: add python exception subclasses
- From: Tom Tromey <tromey at redhat dot com>
- To: asmwarrior <asmwarrior at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 12 Nov 2010 13:47:15 -0700
- Subject: Re: RFA: add python exception subclasses
- References: <4CB66700.3000907@gmail.com> <m3tykn2id8.fsf@fleche.redhat.com> <m3fww2ued0.fsf_-_@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> This patch implements this idea. It adds some new subclasses of
Tom> RuntimeError, including one specifically for MEMORY_ERROR. Then it
Tom> arranges for the memory error exception to be treated specially by the
Tom> pretty-printing code.
I am checking this in now.
I don't think it fully fixes the problem, but it is a good step.
I think the other part is fixing the existing printers so that their
iterators more gracefully handle a MemoryError thrown when computing a
value.
Tom