This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [4/5] RFC: fix bug in gdbpy_flush
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 28 Feb 2013 12:24:26 -0700
- Subject: Re: [4/5] RFC: fix bug in gdbpy_flush
- References: <8738x7vns1.fsf@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> The exception checker pointed out that fprintf_filtered can throw an
Tom> exception -- which makes sense, it might cause pagination.
Tom> This patch fixes the problem by ignoring such exceptions.
Tom> This seems a bit weird, but it isn't clear what else would make sense.
Tom> We're usually calling gdbpy_print_stack specifically to deal with a
Tom> Python exception that can't otherwise be meaningfully handled...
Tom> * python/python.c (gdbpy_print_stack): Call begin_line and
Tom> fprintf_filtered inside TRY_CATCH.
I'm checking this in now.
Tom