From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4370 invoked by alias); 5 Aug 2004 23:26:30 -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 4363 invoked from network); 5 Aug 2004 23:26:29 -0000 Received: from unknown (HELO e31.co.us.ibm.com) (32.97.110.129) by sourceware.org with SMTP; 5 Aug 2004 23:26:29 -0000 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e31.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id i75NQSgM355476; Thu, 5 Aug 2004 19:26:28 -0400 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i75NOgWb187870; Thu, 5 Aug 2004 17:26:27 -0600 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id i75KFLsQ104266; Thu, 5 Aug 2004 15:15:21 -0500 Date: Thu, 05 Aug 2004 23:26:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: Michael Chastain cc: gdb@sources.redhat.com Subject: thread testcase compile issue (question) In-Reply-To: Message-ID: References: <411166D3.nailDGY11SVF9@mindspring.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-08/txt/msg00088.txt.bz2 When I execute tests under gdb.threads/ directory for instance killed.exp, I see 2 complies of the same testcase, the first one gets a linker error /usr/bin/ld: cannot find -lpthreads but the second time it works with no errors. Anyone has any idea why??? Here is the output on x86 for you to compare: === gdb tests === Schedule of variations: unix Running target unix Using /home/manjo/projects/gdb/june/src/dejagnu/baseboards/unix.exp as board des cription file for target. Using /home/manjo/projects/gdb/june/src/dejagnu/config/unix.exp as generic inter face file for target. Using ./config/unix.exp as tool-and-target-specific interface file. Running ./gdb.threads/killed.exp ... Executing on host: gcc ./gdb.threads/killed.c -I/home/manjo/projects/gdb/june/s rc/gdb/testsuite -g -lpthreads -lm -o /home/manjo/projects/gdb/june/src/gdb/t estsuite/gdb.threads/killed (timeout = 300) /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status compiler exited with status 1 output is: /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status Executing on host: gcc ./gdb.threads/killed.c -I/home/manjo/projects/gdb/june/s rc/gdb/testsuite -g -lpthread -lm -o /home/manjo/projects/gdb/june/src/gdb/te stsuite/gdb.threads/killed (timeout = 300) PASS: gdb.threads/killed.exp: successfully compiled posix threads test case GNU gdb 2004-06-30-cvs Thanks ----- ---- Manoj Iyer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Cognito ergo sum + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On Thu, 5 Aug 2004, Manoj Iyer wrote: > > Michael, > > I tried ur suggestion but it still did not work, so I used send_gdb and > gdb_expect{} and got it to work. Thanks for the help. > > Thanks > ----- ---- > Manoj Iyer > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > + Cognito ergo sum + > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > On Wed, 4 Aug 2004, Michael Chastain wrote: > > > I don't even use gdb_continue ... how about just plain: > > > > gdb_test_multiple "continue" "continue to foo ..." { > > ... > > } > > > > Or maybe I'm not getting the problem. > > > > Michael C > > >