This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [2/5] RFC: fix py-finishbreakpoint bug
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 28 Feb 2013 12:02:39 -0700
- Subject: Re: [2/5] RFC: fix py-finishbreakpoint bug
- References: <87bobvvnyt.fsf@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> The exception checker pointed out that we called
Tom> frame_object_to_frame_info in the Python code outside of a TRY_CATCH.
Tom> Also, the code seemed somewhat convoluted in that it called
Tom> gdbpy_newest_frame rather than directly calling get_current_frame.
Tom> This patch rearranges the code to be correct.
Tom> * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
Tom> frame_object_to_frame_info inside TRY_CATCH.
I'm checking this in now.
Tom