diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-inferior.c | 5 | ||||
-rw-r--r-- | gdb/python/py-infthread.c | 2 |
2 files changed, 4 insertions, 3 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); diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c index d46f573..053995f 100644 --- a/gdb/python/py-infthread.c +++ b/gdb/python/py-infthread.c @@ -49,7 +49,7 @@ create_thread_object (struct thread_info *tp) return NULL; thread_obj->thread = tp; - thread_obj->inf_obj = find_inferior_object (PIDGET (tp->ptid)); + thread_obj->inf_obj = find_inferior_object (ptid_get_pid (tp->ptid)); return thread_obj; } |