From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16469 invoked by alias); 5 Sep 2003 15:42:10 -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 16457 invoked from network); 5 Sep 2003 15:42:07 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Sep 2003 15:42:07 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h85Fg1l23070 for ; Fri, 5 Sep 2003 11:42:01 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h85Fg0s18127; Fri, 5 Sep 2003 11:42:00 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h85FfuA3030460; Fri, 5 Sep 2003 11:41:56 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 8276B2CB33; Fri, 5 Sep 2003 11:50:38 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16216.45262.348538.540587@localhost.redhat.com> Date: Fri, 05 Sep 2003 15:42:00 -0000 To: Michael Elizabeth Chastain Cc: ac131313@redhat.com, kettenis@chello.nl, msnyder@redhat.com, cgd@broadcom.com, ezannoni@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [rfa:threads] Report when using libthread_db In-Reply-To: <200308230148.h7N1mrAB020524@duracef.shout.net> References: <200308230148.h7N1mrAB020524@duracef.shout.net> X-SW-Source: 2003-09/txt/msg00064.txt.bz2 Michael Elizabeth Chastain writes: > Tested on native i686-pc-linux-gnu, red hat linux 8, > gcc v2 and v3, dwarf-2 and stabs+. > > The extra messages cause regressions in three tests: > > gdb.base/relocate.exp: add-symbol-file relocate.o $offset > gdb.base/relocate.exp: add-symbol-file relocate.o 0 > gdb.stabs/weird.exp: Errors reading weirdx.o > > The relocate.exp FAILs happened in every configuration, > and the weird.exp FAILs happened with -gstabs+. > > Looking at gdb.log there doesn't appear to be an actual semantic > problem. Still I would be nervous about sliding this into the release. > How about HEAD only, and then fix up the affected tests? > > Michael C > > 2003-08-05 Andrew Cagney > > * thread-db.c (verbose_dlsym): New function. > (thread_db_load): Use verbose_dlsym > (thread_db_new_objfile): Print that libthread_db was loaded, and > that thread debugging was enabled. Here is a patch which I added to the RH gdb, to deal with the relocate.exp errors. Let me know if it works in your testbed. I didn't notice the weird.exp one because we don't test with stabs. elena --- gdb+dejagnu-5.3.90_20030710/gdb/testsuite/gdb.base/relocate.exp.1 Fri Aug 15 11:20:44 2003 +++ gdb+dejagnu-5.3.90_20030710/gdb/testsuite/gdb.base/relocate.exp Fri Aug 15 11:23:31 2003 @@ -67,7 +67,7 @@ gdb_reinitialize_dir $srcdir/$subdir # Load the object file. gdb_test "add-symbol-file ${binfile} 0" \ - "Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\." \ + "(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\.)|(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\..*Using host libthread_db library .*libthread_db.so.*\\.)" \ "add-symbol-file ${testfile}.o 0" \ "add symbol table from file \".*${testfile}\\.o\" at\[ \t\r\n\]+\.text_addr = 0x0\[\r\n\]+\\(y or n\\) " \ "y" @@ -116,7 +116,7 @@ gdb_test "set \$offset = 0x10000" "" # Load the object file. gdb_test "add-symbol-file ${binfile} \$offset" \ - "Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\." \ + "(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\.)|(Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\..*Using host libthread_db library .*libthread_db.so.*\\.)" \ "add-symbol-file ${testfile}.o \$offset" \ "add symbol table from file \".*${testfile}\\.o\" at\[ \t\r\n\]+\.text_addr = 0x10000\[\r\n\]+\\(y or n\\) " \ "y"