From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26591 invoked by alias); 3 Jun 2005 12:57:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26544 invoked by uid 22791); 3 Jun 2005 12:57:30 -0000 Received: from web53410.mail.yahoo.com (HELO web53410.mail.yahoo.com) (206.190.37.57) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Fri, 03 Jun 2005 12:57:30 +0000 Received: (qmail 58960 invoked by uid 60001); 3 Jun 2005 12:57:29 -0000 Message-ID: <20050603125729.58958.qmail@web53410.mail.yahoo.com> Received: from [24.22.218.122] by web53410.mail.yahoo.com via HTTP; Fri, 03 Jun 2005 05:57:29 PDT Date: Fri, 03 Jun 2005 12:57:00 -0000 From: Bryan Wilkerson Reply-To: bryanwilkerson@yahoo.com Subject: Re: Fwd: gdb & pthreads - the Ike and Tina of Linux dev To: Ramana Radhakrishnan Cc: Daniel Jacobowitz , gdb@sources.redhat.com In-Reply-To: <429DB228.9020207@codito.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-06/txt/msg00025.txt.bz2 --- Ramana Radhakrishnan wrote: > Hi Bryan , > > Whats the compiler / binutils / glibc version you > are using? That information, except binutils, was in my original post. To summarize: gcc - 3.3.5-5 20050117 Thread model: posix binutils - 2.15.94.0.2.2-3 glibc - 2.3.4-23 kernel - 2.6.11.4-20a-default All up to date, standard, SuSE Pro 9.3 components. I've repeated the problem on two different hardware platforms - a Prescott P4 system and a Pentium-M system. Below is a screen dump of my attempt to debug the previously attached test case. Note that I didn't type the final "Quit" it did that in response to my running the program. If I don't put in the breakpoint or put a breakpoint in main() only, everything works fine. If there is any other information I can provide, let me know. bwilkers@bwilkers-mobl:~/proj/temp/gdbthread> gdb gdbthread GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) b gdbthread.cpp:30 Breakpoint 1 at 0x804879f: file gdbthread.cpp, line 30. (gdb) r Starting program: /home/bwilkers/proj/temp/gdbthread/gdbthread Program terminated with signal SIGTRAP, Trace/breakpoint trap. The program no longer exists. (gdb) Quit (gdb)