From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29177 invoked by alias); 17 Nov 2001 16:54:26 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29058 invoked from network); 17 Nov 2001 16:54:17 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sourceware.cygnus.com with SMTP; 17 Nov 2001 16:54:17 -0000 Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id IAA00367; Sat, 17 Nov 2001 08:54:15 -0800 (PST) Received: (from kev@localhost) by cse.cygnus.com (8.9.3/8.9.3) id JAA06497; Sat, 17 Nov 2001 09:53:49 -0700 Date: Wed, 07 Nov 2001 02:30:00 -0000 From: Kevin Buettner Message-Id: <1011117165348.ZM6496@ocotillo.lan> In-Reply-To: peter@a59252.upc-a.chello.nl "Re: configuring gdb 5.x for use with threads" (Nov 17, 2:27pm) References: <20011102102321.D6507@a59252.upc-a.chello.nl> <20011117142746.A12792@a59252.upc-a.chello.nl> X-Mailer: Z-Mail (4.0.1 13Jan97 Caldera) To: peter@a59252.upc-a.chello.nl, gdb@sourceware.cygnus.com Subject: Re: configuring gdb 5.x for use with threads MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2001-11/txt/msg00073.txt.bz2 On Nov 17, 2:27pm, peter@a59252.upc-a.chello.nl wrote: > I rebuild my glibc+linuxthreads 2.2.4 agains my linuxkernel > 2.4.15-pre5 SMP, a libthread_db-1.0.so was build. Make sure that you have the following patch (to glibc) applied. I too was having problems with debugging multithreaded programs that were linked against libraries from glibc 2.2.4. This patch fixed the problems that I was seeing... 2001-10-05 Kevin Buettner * pthread.c (__linuxthread_pthread_sizeof_descr): Change name to __linuxthreads_pthread_sizeof_descr to match name used by symbol_list_arr[LINUXTHREADS_PTHREAD_SIZEOF_DESCR] in linuxthreads_db/td_symbol_list.c. =================================================================== RCS file: /cvs/glibc/libc/linuxthreads/pthread.c,v retrieving revision 1.86 retrieving revision 1.87 diff -u -r1.86 -r1.87 --- libc/linuxthreads/pthread.c 2001/09/12 03:51:41 1.86 +++ libc/linuxthreads/pthread.c 2001/10/07 20:19:16 1.87 @@ -211,7 +211,7 @@ h_descr); const int __pthread_offsetof_pid = offsetof(struct _pthread_descr_struct, p_pid); -const int __linuxthread_pthread_sizeof_descr +const int __linuxthreads_pthread_sizeof_descr = sizeof(struct _pthread_descr_struct); /* Forward declarations */