From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4196 invoked by alias); 13 Dec 2004 18:25:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4147 invoked from network); 13 Dec 2004 18:25:02 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 13 Dec 2004 18:25:02 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iBDIP25x009493 for ; Mon, 13 Dec 2004 13:25:02 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iBDIP1r10644; Mon, 13 Dec 2004 13:25:01 -0500 Received: from redhat.com (dhcp-172-16-25-137.sfbay.redhat.com [172.16.25.137]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id iBDIOx4a024755; Mon, 13 Dec 2004 13:25:00 -0500 Message-ID: <41BDDE7B.2060605@redhat.com> Date: Mon, 13 Dec 2004 20:02:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924 MIME-Version: 1.0 To: Jim Blandy CC: gdb-patches@sources.redhat.com Subject: Re: RFA: Adapt linux-dp.exp to NPTL with debugging info References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00362.txt.bz2 Jim Blandy wrote: > I'm not sure this is the best approach to this. If either Michael can > give me a push in the right direction, I'll do my best. Jim, this looks fine to me. Michael (I or II, I don't know which...) > > gdb/testsuite/ChangeLog: > 2004-10-27 Jim Blandy > > * gdb.threads/linux-dp.exp: Fix output regexp to handle output > under NPTL when there is debugging info available for libpthread. > > Index: gdb/testsuite/gdb.threads/linux-dp.exp > =================================================================== > RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/linux-dp.exp,v > retrieving revision 1.9 > diff -c -r1.9 linux-dp.exp > *** gdb/testsuite/gdb.threads/linux-dp.exp 14 May 2003 19:36:56 -0000 1.9 > --- gdb/testsuite/gdb.threads/linux-dp.exp 27 Oct 2004 23:45:21 -0000 > *************** > *** 117,123 **** > # Try setting a thread-specific breakpoint. > gdb_breakpoint "print_philosopher thread 5" > gdb_continue_to_breakpoint "thread 5's print" > ! gdb_test "where" "print_philosopher.*philosopher.* from .*libpthread.*" \ > "first thread-specific breakpoint hit" > > # Make sure it's catching the right thread. Try hitting the > --- 117,129 ---- > # Try setting a thread-specific breakpoint. > gdb_breakpoint "print_philosopher thread 5" > gdb_continue_to_breakpoint "thread 5's print" > ! # When there is no debugging info available for the thread library, > ! # the backtrace entry for philosopher's caller looks like: > ! # #1 0x4001c548 in pthread_create () from /lib/libpthread.so.0 > ! # If you do have debug info, the output obviously depends more on the > ! # exact library in use; under NPTL, you get: > ! # #2 0x0012b7fc in start_thread (arg=0x21) at pthread_create.c:264 > ! gdb_test "where" "print_philosopher.*philosopher.* \(from .*libpthread\|at pthread_create\).*" \ > "first thread-specific breakpoint hit" > > # Make sure it's catching the right thread. Try hitting the > >