about summary refs log tree commit diff
path: root/linuxthreads_db/td_thr_getfpregs.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-07-16 04:56:00 +0000
committerUlrich Drepper <drepper@redhat.com>2002-07-16 04:56:00 +0000
commitd2afebcce46f40e9d96fc48e541aa5a6d8deac9b (patch)
treea6cd43082f0317ad70fd5598d55d6146e0cddbe5 /linuxthreads_db/td_thr_getfpregs.c
parenta99bfa85d82aecc3eb780779377a9e178e7189d2 (diff)
downloadglibc-d2afebcce46f40e9d96fc48e541aa5a6d8deac9b.tar.gz
glibc-d2afebcce46f40e9d96fc48e541aa5a6d8deac9b.tar.xz
glibc-d2afebcce46f40e9d96fc48e541aa5a6d8deac9b.zip
Update.
2002-07-15  Ulrich Drepper  <drepper@redhat.com>

	* intl/tst-gettext.sh: Pass -f option to msgfmt.
	* intl/tst-gettext.c: Correctly handle untranslated messages in
	positive tests.

	* po/de.po: Update from translation team.
Diffstat (limited to 'linuxthreads_db/td_thr_getfpregs.c')
-rw-r--r--linuxthreads_db/td_thr_getfpregs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linuxthreads_db/td_thr_getfpregs.c b/linuxthreads_db/td_thr_getfpregs.c
index b453cc0e9b..ea02760c93 100644
--- a/linuxthreads_db/td_thr_getfpregs.c
+++ b/linuxthreads_db/td_thr_getfpregs.c
@@ -28,6 +28,12 @@ td_thr_getfpregs (const td_thrhandle_t *th, prfpregset_t *regset)
 
   LOG ("td_thr_getfpregs");
 
+  if (th->th_unique == NULL)
+    {
+      memset (regset, '\0', sizeof (*regset));
+      return TD_OK;
+    }
+
   /* We have to get the state and the PID for this thread.  */
   if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
 		 sizeof (struct _pthread_descr_struct)) != PS_OK)