From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21498 invoked by alias); 12 Aug 2004 13:05:43 -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 21429 invoked from network); 12 Aug 2004 13:05:40 -0000 Received: from unknown (HELO granger.mail.mindspring.net) (207.69.200.148) by sourceware.org with SMTP; 12 Aug 2004 13:05:40 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by granger.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1BvFGv-0001Ex-00; Thu, 12 Aug 2004 09:05:33 -0400 Received: from mindspring.com (localhost [127.0.0.1]) by berman.michael-chastain.com (Postfix) with SMTP id 5F8914B102; Thu, 12 Aug 2004 09:05:39 -0400 (EDT) Date: Thu, 12 Aug 2004 13:05:00 -0000 From: Michael Chastain To: jjohnstn@redhat.com Subject: Re: [RFA]: Fix for pending breakpoints in manually loaded/unloaded shlibs Cc: gdb-patches@sources.redhat.com Message-ID: <411B6B22.nailNTD11MO7X@mindspring.com> References: <41191D71.60204@redhat.com> <4119D461.nailB1A1E2BLH@mindspring.com> <411A3E5D.7060309@redhat.com> In-Reply-To: <411A3E5D.7060309@redhat.com> User-Agent: nail 10.8 6/28/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00456.txt.bz2 I ran it on native hppa2.0w-hp-hpux11.11 and it barfed. Running /house/chastain/gdb/s1/gdb/testsuite/gdb.base/unload.exp ... gdb compile failed, /usr/ccs/bin/ld: Can't find library: "dl" WARNING: Testcase compile failed, so all tests in this file will automatically fail. ERROR: (timeout) GDB never initialized after 10 seconds. WARNING: remote_expect statement without a default case?! ... and so on ... This is with hp ansi c B.11.11.28706.GP. I looked at the hpux man page for dlopen and it looks similar to the linux man page. (And the linux man page says that their interface comes from solaris). The hpux man page for dlopen explicitly says "-ldl" but there is no such library. If I rip out the "-ldl" option" then the test script runs and I get this: Running target unix Running /house/chastain/gdb/s1/gdb/testsuite/gdb.base/unload.exp ... PASS: gdb.base/unload.exp: set pending breakpoint PASS: gdb.base/unload.exp: single pending breakpoint info FAIL: gdb.base/unload.exp: running program FAIL: gdb.base/unload.exp: continuing to end of program FAIL: gdb.base/unload.exp: rerun to shared library breakpoint FAIL: gdb.base/unload.exp: continuing to end of program second time Which is okay. The test script is doing its job: making gdb ill. I'll write up a little patch and send it to you. Also I am working on a new "gdb_build" proc that will encapsulate all this compiler-specific and target-specific mumbo-jumbo. But for now let's continue with keeping the logic in the test script, so you can get the test script checked in. Michael C