This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Implement post_event for Python scripts.
- From: Tom Tromey <tromey at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Tue, 20 Jul 2010 13:08:27 -0600
- Subject: Re: [patch] Implement post_event for Python scripts.
- References: <4C45F0B0.5000903@redhat.com>
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> + /* Ignore errors. */
Phil> + PyObject_CallObject (item->event, NULL);
I think this has to explicitly clear the error, like:
if (PyObject_CallObject (item->event, NULL) == NULL)
PyErr_Clear ();
The code parts are ok with this fix.
Tom