summary refs log tree commit diff
path: root/linuxthreads_db
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads_db')
-rw-r--r--linuxthreads_db/ChangeLog2
-rw-r--r--linuxthreads_db/td_ta_map_lwp2thr.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/linuxthreads_db/ChangeLog b/linuxthreads_db/ChangeLog
index d3033cdf1d..ecd407a30b 100644
--- a/linuxthreads_db/ChangeLog
+++ b/linuxthreads_db/ChangeLog
@@ -1,5 +1,7 @@
 1999-11-22  Ulrich Drepper  <drepper@cygnus.com>
 
+	* td_ta_map_lwp2thr.c: Add missing brace in comparison.
+
 	* thread_dbP.h (LOG): Only print message if __td_debug is nonzero.
 	* td_init.c: Add __td_debug.
 
diff --git a/linuxthreads_db/td_ta_map_lwp2thr.c b/linuxthreads_db/td_ta_map_lwp2thr.c
index 0558f633f0..8c934294bc 100644
--- a/linuxthreads_db/td_ta_map_lwp2thr.c
+++ b/linuxthreads_db/td_ta_map_lwp2thr.c
@@ -67,7 +67,7 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th)
 	if (ps_pdread (ta->ph, phc[cnt].h_descr, &pds, sizeof_descr) != PS_OK)
 	  return TD_ERR;	/* XXX Other error value?  */
 
-	if (pds.p_pid ?: ps_getpid (ta->ph) == lwpid)
+	if ((pds.p_pid ?: ps_getpid (ta->ph)) == lwpid)
 	  {
 	    /* Found it.  Now fill in the `td_thrhandle_t' object.  */
 	    th->th_ta_p = (td_thragent_t *) ta;