diff options
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index fd92e78..3f3d6f2 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -783,7 +783,7 @@ thread_change_ptid (ptid_t old_ptid, ptid_t new_ptid) changes. E.g, target remote may only discover the remote process pid after adding the inferior to GDB's list. */ inf = find_inferior_ptid (old_ptid); - inf->pid = ptid_get_pid (new_ptid); + inf->pid = new_ptid.pid (); tp = find_thread_ptid (old_ptid); tp->ptid = new_ptid; @@ -802,7 +802,7 @@ set_resumed (ptid_t ptid, int resumed) if (all || ptid_is_pid (ptid)) { for (tp = thread_list; tp; tp = tp->next) - if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) + if (all || tp->ptid.pid () == ptid.pid ()) tp->resumed = resumed; } else @@ -859,7 +859,7 @@ set_running (ptid_t ptid, int running) if (all || ptid_is_pid (ptid)) { for (tp = thread_list; tp; tp = tp->next) - if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) + if (all || tp->ptid.pid () == ptid.pid ()) { if (tp->state == THREAD_EXITED) continue; @@ -939,7 +939,7 @@ set_executing (ptid_t ptid, int executing) if (all || ptid_is_pid (ptid)) { for (tp = thread_list; tp; tp = tp->next) - if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) + if (all || tp->ptid.pid () == ptid.pid ()) set_executing_thread (tp, executing); } else @@ -975,7 +975,7 @@ set_stop_requested (ptid_t ptid, int stop) if (all || ptid_is_pid (ptid)) { for (tp = thread_list; tp; tp = tp->next) - if (all || ptid_get_pid (tp->ptid) == ptid_get_pid (ptid)) + if (all || tp->ptid.pid () == ptid.pid ()) tp->stop_requested = stop; } else @@ -1006,7 +1006,7 @@ finish_thread_state (ptid_t ptid) { if (tp->state == THREAD_EXITED) continue; - if (all || ptid_get_pid (ptid) == ptid_get_pid (tp->ptid)) + if (all || ptid.pid () == tp->ptid.pid ()) { if (set_running_thread (tp, tp->executing)) any_started = 1; @@ -1106,7 +1106,7 @@ should_print_thread (const char *requested_threads, int default_inf_num, return 0; } - if (pid != -1 && ptid_get_pid (thr->ptid) != pid) + if (pid != -1 && thr->ptid.pid () != pid) { if (requested_threads != NULL && *requested_threads != '\0') error (_("Requested thread not found in requested process")); |