This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4/5] RFC: fix bug in gdbpy_flush


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]