diff options
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r-- | gdb/sol-thread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index 9ee8849c..d5c2400 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -99,7 +99,7 @@ public: ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) override; - int thread_alive (ptid_t ptid) override; + bool thread_alive (ptid_t ptid) override; void update_thread_list () override; }; @@ -700,7 +700,7 @@ sol_thread_target::mourn_inferior () /* Return true if PTID is still active in the inferior. */ -int +bool sol_thread_target::thread_alive (ptid_t ptid) { if (ptid_tid_p (ptid)) @@ -712,10 +712,10 @@ sol_thread_target::thread_alive (ptid_t ptid) pid = ptid_get_tid (ptid); if ((val = p_td_ta_map_id2thr (main_ta, pid, &th)) != TD_OK) - return 0; /* Thread not found. */ + return false; /* Thread not found. */ if ((val = p_td_thr_validate (&th)) != TD_OK) - return 0; /* Thread not valid. */ - return 1; /* Known thread. */ + return false; /* Thread not valid. */ + return true; /* Known thread. */ } else { |