GDB (xrefs)
|
Go to the source code of this file.
Macros | |
#define | THPY_REQUIRE_VALID(Thread) |
Functions | |
PyTypeObject thread_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("thread_object") |
thread_object * | create_thread_object (struct thread_info *tp) |
static void | thpy_dealloc (PyObject *self) |
static PyObject * | thpy_get_name (PyObject *self, void *ignore) |
static int | thpy_set_name (PyObject *self, PyObject *newvalue, void *ignore) |
static PyObject * | thpy_get_num (PyObject *self, void *closure) |
static PyObject * | thpy_get_ptid (PyObject *self, void *closure) |
static PyObject * | thpy_switch (PyObject *self, PyObject *args) |
static PyObject * | thpy_is_stopped (PyObject *self, PyObject *args) |
static PyObject * | thpy_is_running (PyObject *self, PyObject *args) |
static PyObject * | thpy_is_exited (PyObject *self, PyObject *args) |
static PyObject * | thpy_is_valid (PyObject *self, PyObject *args) |
PyObject * | gdbpy_create_ptid_object (ptid_t ptid) |
PyObject * | gdbpy_selected_thread (PyObject *self, PyObject *args) |
int | gdbpy_initialize_thread (void) |
Variables | |
static PyGetSetDef | thread_object_getset [] |
static PyMethodDef | thread_object_methods [] |
PyTypeObject | thread_object_type |
#define THPY_REQUIRE_VALID | ( | Thread | ) |
Definition at line 29 of file py-infthread.c.
Referenced by thpy_get_name(), thpy_get_num(), thpy_get_ptid(), thpy_is_exited(), thpy_is_running(), thpy_is_stopped(), and thpy_switch().
PyTypeObject thread_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "thread_object" | ) |
thread_object* create_thread_object | ( | struct thread_info * | tp | ) |
Definition at line 40 of file py-infthread.c.
References find_inferior_object(), thread_object::inf_obj, thread_info::ptid, ptid_get_pid(), thread_object::thread, and thread_object_type.
Referenced by add_thread_object().
PyObject* gdbpy_create_ptid_object | ( | ptid_t | ptid | ) |
Definition at line 232 of file py-infthread.c.
References pid, ptid_get_lwp(), ptid_get_pid(), and ptid_get_tid().
Referenced by create_inferior_call_event_object(), and thpy_get_ptid().
int gdbpy_initialize_thread | ( | void | ) |
Definition at line 272 of file py-infthread.c.
References gdb_module, gdb_pymodule_addobject(), and thread_object_type.
Referenced by _initialize_python().
PyObject* gdbpy_selected_thread | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 257 of file py-infthread.c.
References find_thread_object(), and inferior_ptid.
|
static |
Definition at line 55 of file py-infthread.c.
|
static |
Definition at line 62 of file py-infthread.c.
References name, thread_info::name, target_thread_name(), THPY_REQUIRE_VALID, and thread_object::thread.
|
static |
Definition at line 119 of file py-infthread.c.
References thread_info::num, THPY_REQUIRE_VALID, and thread_object::thread.
|
static |
Definition at line 132 of file py-infthread.c.
References gdbpy_create_ptid_object(), pid, thread_info::ptid, THPY_REQUIRE_VALID, and thread_object::thread.
|
static |
Definition at line 202 of file py-infthread.c.
References is_exited(), thread_info::ptid, THPY_REQUIRE_VALID, and thread_object::thread.
|
static |
Definition at line 186 of file py-infthread.c.
References is_running(), thread_info::ptid, THPY_REQUIRE_VALID, and thread_object::thread.
|
static |
Definition at line 170 of file py-infthread.c.
References is_stopped(), thread_info::ptid, THPY_REQUIRE_VALID, and thread_object::thread.
|
static |
Definition at line 219 of file py-infthread.c.
References thread_object::thread.
|
static |
Definition at line 80 of file py-infthread.c.
References _, gdbpy_is_string(), name, thread_info::name, python_string_to_host_string(), thread_object::thread, and xfree().
|
static |
Definition at line 147 of file py-infthread.c.
References CATCH, END_CATCH, GDB_PY_HANDLE_EXCEPTION, thread_info::ptid, RETURN_MASK_ALL, switch_to_thread(), THPY_REQUIRE_VALID, thread_object::thread, and TRY.
|
static |
Definition at line 281 of file py-infthread.c.
|
static |
Definition at line 292 of file py-infthread.c.
PyTypeObject thread_object_type |
Definition at line 313 of file py-infthread.c.
Referenced by create_thread_object(), and gdbpy_initialize_thread().