aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nptl_db/td_ta_thr_iter.c4
-rw-r--r--nptl_db/td_thr_get_info.c6
-rw-r--r--nptl_db/td_thr_getfpregs.c4
-rw-r--r--nptl_db/td_thr_getgregs.c4
-rw-r--r--nptl_db/td_thr_setfpregs.c4
-rw-r--r--nptl_db/td_thr_setgregs.c4
6 files changed, 13 insertions, 13 deletions
diff --git a/nptl_db/td_ta_thr_iter.c b/nptl_db/td_ta_thr_iter.c
index 68b5427..b52e1cd 100644
--- a/nptl_db/td_ta_thr_iter.c
+++ b/nptl_db/td_ta_thr_iter.c
@@ -1,5 +1,5 @@
/* Iterate over a process's threads.
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
@@ -90,7 +90,7 @@ iterate_thread_list (const td_thragent_t *ta, td_thr_iter_f *callback,
break;
}
- if ((cancelhandling & TERMINATED_BIT) == 0)
+ if ((cancelhandling & TERMINATED_BITMASK) == 0)
{
/* Yep, it matches. Call the callback function. */
td_thrhandle_t th;
diff --git a/nptl_db/td_thr_get_info.c b/nptl_db/td_thr_get_info.c
index 2dae8c5..985c8d7 100644
--- a/nptl_db/td_thr_get_info.c
+++ b/nptl_db/td_thr_get_info.c
@@ -1,5 +1,5 @@
/* Get thread information.
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
@@ -44,10 +44,10 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop)
? 0 : pds.schedparam.sched_priority);
infop->ti_type = TD_THR_USER;
- if ((pds.cancelhandling & EXITING_BIT) == 0)
+ if ((pds.cancelhandling & EXITING_BITMASK) == 0)
/* XXX For now there is no way to get more information. */
infop->ti_state = TD_THR_ACTIVE;
- else if ((pds.cancelhandling & TERMINATED_BIT) == 0)
+ else if ((pds.cancelhandling & TERMINATED_BITMASK) == 0)
infop->ti_state = TD_THR_ZOMBIE;
else
infop->ti_state = TD_THR_UNKNOWN;
diff --git a/nptl_db/td_thr_getfpregs.c b/nptl_db/td_thr_getfpregs.c
index 360e1d2..8b68b93 100644
--- a/nptl_db/td_thr_getfpregs.c
+++ b/nptl_db/td_thr_getfpregs.c
@@ -1,5 +1,5 @@
/* Get a thread's floating-point register set.
- Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
@@ -34,7 +34,7 @@ td_thr_getfpregs (const td_thrhandle_t *th, prfpregset_t *regset)
return TD_ERR;
/* If the thread already terminated we return all zeroes. */
- if (cancelhandling & TERMINATED_BIT)
+ if (cancelhandling & TERMINATED_BITMASK)
memset (regset, '\0', sizeof (*regset));
/* Otherwise get the register content through the callback. */
else
diff --git a/nptl_db/td_thr_getgregs.c b/nptl_db/td_thr_getgregs.c
index 2485e5d..90959c8 100644
--- a/nptl_db/td_thr_getgregs.c
+++ b/nptl_db/td_thr_getgregs.c
@@ -1,5 +1,5 @@
/* Get a thread's general register set.
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
@@ -34,7 +34,7 @@ td_thr_getgregs (const td_thrhandle_t *th, prgregset_t gregs)
return TD_ERR;
/* If the thread already terminated we return all zeroes. */
- if (cancelhandling & TERMINATED_BIT)
+ if (cancelhandling & TERMINATED_BITMASK)
memset (gregs, '\0', sizeof (prgregset_t));
/* Otherwise get the register content through the callback. */
else
diff --git a/nptl_db/td_thr_setfpregs.c b/nptl_db/td_thr_setfpregs.c
index e1ec9be..fe36445 100644
--- a/nptl_db/td_thr_setfpregs.c
+++ b/nptl_db/td_thr_setfpregs.c
@@ -1,5 +1,5 @@
/* Set a thread's floating-point register set.
- Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
@@ -34,7 +34,7 @@ td_thr_setfpregs (const td_thrhandle_t *th, const prfpregset_t *fpregs)
return TD_ERR;
/* Only set the registers if the thread hasn't yet terminated. */
- if ((cancelhandling & TERMINATED_BIT) == 0)
+ if ((cancelhandling & TERMINATED_BITMASK) == 0)
{
pid_t tid;
diff --git a/nptl_db/td_thr_setgregs.c b/nptl_db/td_thr_setgregs.c
index d46e32a..f20c78f 100644
--- a/nptl_db/td_thr_setgregs.c
+++ b/nptl_db/td_thr_setgregs.c
@@ -1,5 +1,5 @@
/* Set a thread's general register set.
- Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
@@ -34,7 +34,7 @@ td_thr_setgregs (const td_thrhandle_t *th, prgregset_t gregs)
return TD_ERR;
/* Only set the registers if the thread hasn't yet terminated. */
- if ((cancelhandling & TERMINATED_BIT) == 0)
+ if ((cancelhandling & TERMINATED_BITMASK) == 0)
{
pid_t tid;