[uClibc-cvs] CVS uClibc/libpthread/linuxthreads_db

CVS User andersen andersen at codepoet.org
Mon Nov 8 03:31:42 UTC 2004


Update of /var/cvs/uClibc/libpthread/linuxthreads_db
In directory nail:/tmp/cvs-serv24932/libpthread/linuxthreads_db

Modified Files:
	td_ta_new.c 
Log Message:
A patch included in glibc 2.3.2's libthread_db that helps remote
debugging not become confused,


--- /var/cvs/uClibc/libpthread/linuxthreads_db/td_ta_new.c	2003/02/27 18:12:59	1.3
+++ /var/cvs/uClibc/libpthread/linuxthreads_db/td_ta_new.c	2004/11/08 03:31:41	1.4
@@ -126,6 +126,10 @@
     {
       if (ps_pdread (ps, addr, &(*ta)->sizeof_descr, sizeof (int)) != PS_OK)
 	goto free_return;
+      /* Don't let bogons in the inferior make us mess ourselves.  */
+      if ((*ta)->sizeof_descr > sizeof (struct _pthread_descr_struct))
+	  (*ta)->sizeof_descr = sizeof (struct _pthread_descr_struct);
+
     }
 
   /* Now add the new agent descriptor to the list.  */



More information about the uClibc-cvs mailing list