diff options
Diffstat (limited to 'gdb/python/py-inferior.c')
-rw-r--r-- | gdb/python/py-inferior.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 26ee004..ed49290 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -210,7 +210,7 @@ find_thread_object (ptid_t ptid) PyObject *inf_obj; thread_object *found = NULL; - pid = PIDGET (ptid); + pid = ptid_get_pid (ptid); if (pid == 0) return NULL; @@ -280,7 +280,8 @@ delete_thread_object (struct thread_info *tp, int ignore) cleanup = ensure_python_env (python_gdbarch, python_language); - inf_obj = (inferior_object *) find_inferior_object (PIDGET(tp->ptid)); + inf_obj + = (inferior_object *) find_inferior_object (ptid_get_pid (tp->ptid)); if (!inf_obj) { do_cleanups (cleanup); |