summaryrefslogtreecommitdiff
path: root/gdb/bsd-uthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/bsd-uthread.c')
-rw-r--r--gdb/bsd-uthread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c
index 3d20301a134..b4b07bcd2d5 100644
--- a/gdb/bsd-uthread.c
+++ b/gdb/bsd-uthread.c
@@ -57,7 +57,7 @@ struct bsd_uthread_target FINAL : public target_ops
ptid_t wait (ptid_t, struct target_waitstatus *, int) OVERRIDE;
void resume (ptid_t, int, enum gdb_signal) OVERRIDE;
- int thread_alive (ptid_t ptid) OVERRIDE;
+ bool thread_alive (ptid_t ptid) OVERRIDE;
void update_thread_list () OVERRIDE;
@@ -425,7 +425,7 @@ bsd_uthread_target::resume (ptid_t ptid, int step, enum gdb_signal sig)
beneath->resume (ptid, step, sig);
}
-int
+bool
bsd_uthread_target::thread_alive (ptid_t ptid)
{
enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ());
@@ -441,7 +441,7 @@ bsd_uthread_target::thread_alive (ptid_t ptid)
state = read_memory_unsigned_integer (addr + offset, 4, byte_order);
if (state == BSD_UTHREAD_PS_DEAD)
- return 0;
+ return false;
}
return beneath->thread_alive (ptid);