} \
} while (0)
-
-
thread_object *
create_thread_object (struct thread_info *tp)
{
return thread_obj;
}
-
-
static void
thpy_dealloc (PyObject *self)
{
/* Getter for InferiorThread.ptid -> (pid, lwp, tid).
Returns a tuple with the thread's ptid components. */
+
static PyObject *
thpy_get_ptid (PyObject *self, void *closure)
{
/* Implementation of InferiorThread.switch ().
Makes this the GDB selected thread. */
+
static PyObject *
thpy_switch (PyObject *self, PyObject *args)
{
/* Implementation of InferiorThread.is_stopped () -> Boolean.
Return whether the thread is stopped. */
+
static PyObject *
thpy_is_stopped (PyObject *self, PyObject *args)
{
/* Implementation of InferiorThread.is_running () -> Boolean.
Return whether the thread is running. */
+
static PyObject *
thpy_is_running (PyObject *self, PyObject *args)
{
/* Implementation of InferiorThread.is_exited () -> Boolean.
Return whether the thread is exited. */
+
static PyObject *
thpy_is_exited (PyObject *self, PyObject *args)
{
/* Implementation of gdb.selected_thread () -> gdb.InferiorThread.
Returns the selected thread object. */
+
PyObject *
gdbpy_selected_thread (PyObject *self, PyObject *args)
{
Py_RETURN_NONE;
}
-
-
int
gdbpy_initialize_thread (void)
{
(PyObject *) &thread_object_type);
}
-
-
static PyGetSetDef thread_object_getset[] =
{
{ "name", thpy_get_name, thpy_set_name,