[patch] Implement post_event for Python scripts.

Tom Tromey tromey@redhat.com
Tue Jul 20 19:08:00 GMT 2010


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



More information about the Gdb-patches mailing list