From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18589 invoked by alias); 27 Oct 2004 23:46:22 -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 18560 invoked from network); 27 Oct 2004 23:46:20 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 27 Oct 2004 23:46:20 -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 i9RNkKgF026008 for ; Wed, 27 Oct 2004 19:46:20 -0400 Received: from zenia.home.redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9RNkJr01673; Wed, 27 Oct 2004 19:46:19 -0400 To: gdb-patches@sources.redhat.com Subject: RFA: Adapt linux-dp.exp to NPTL with debugging info From: Jim Blandy Date: Wed, 27 Oct 2004 23:46:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-10/txt/msg00463.txt.bz2 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. 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