[PATCH v3 2/6] Add python method InferiorThread.handle
Tom Tromey
tom@tromey.com
Wed Mar 27 20:21:00 GMT 2019
>>>>> "Kevin" == Kevin Buettner <kevinb@redhat.com> writes:
Kevin> +static PyObject *
Kevin> +thpy_thread_handle (PyObject *self, PyObject *args)
[...]
Kevin> + if (hv.size () == 0)
Kevin> + return NULL;
A function like this must ensure that the Python exception is set before
returning NULL. I think more is needed here, because I don't think this
does that.
Tom
More information about the Gdb-patches
mailing list