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: [PATCH v3 2/6] Add python method InferiorThread.handle


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


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