From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31385 invoked by alias); 30 Jan 2008 12:56:52 -0000 Received: (qmail 31349 invoked by uid 22791); 30 Jan 2008 12:56:48 -0000 X-Spam-Check-By: sourceware.org Received: from mail1.nsc.com (HELO mailgate1.nsc.com) (12.151.32.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jan 2008 12:56:28 +0000 X-WSS-ID: 0JVGJZM-05-6LH-01 Received: from SCNTRDCSS8.nsc.com (unknown [192.168.7.27]) by mailgate1.nsc.com (Tumbleweed MailGate) with ESMTP id 36ABF380302C3 for ; Wed, 30 Jan 2008 04:57:22 -0800 (PST) Received: from [10.188.132.130] by SCNTRDCSS6.nsc.com with ESMTP (-Hi-); Wed, 30 Jan 2008 04:56:22 -0800 X-Server-Uuid: CDE0D3F6-4EC6-4DC9-81EF-DBBF12AF9A3C Received: from [139.187.78.222] by scmh1.nsc.com with ESMTP; Wed, 30 Jan 2008 04:56:21 -0800 Message-ID: <47A073FD.9060103@nsc.com> Date: Wed, 30 Jan 2008 12:56:00 -0000 From: "M R Swami Reddy" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: "Jim Blandy" cc: gdb@sourceware.org Subject: Re: gdb testsuite References: <4799B660.2080905@nsc.com> <8f2776cb0801251016y1a4cfbcfp35fab5ecacee8b1d@mail.gmail.com> <479D62DA.4080100@nsc.com> <8f2776cb0801281050w4ae2d83fw53b793ba633302e1@mail.gmail.com> <479EC263.3060107@nsc.com> <8f2776cb0801291221g106e39acw493a3b9e0a8e7798@mail.gmail.com> In-Reply-To: <8f2776cb0801291221g106e39acw493a3b9e0a8e7798@mail.gmail.com> X-WSS-ID: 6BBEAC6213S218741-02-01 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00331.txt.bz2 Hi Jim, Thank you very much for the analysis. I have fixed the issue. Now I can see a few more tests passed under gdb: === === gdb Summary === # of expected passes 260 # of unexpected failures 356 # of untested testcases 2 # of unsupported tests 12 /scratch/user/swami/gdb/build/gdb/testsuite/../../gdb/gdb version 6.6-1.0 -nx ==== Created the cr16 target specific simulator tests and able to run these tests. Thank you very much for your response. Btw, a compiler option "-lm" passed for all tests. Can I remove the "-lm" option during the compilation? Please advise. Thanks, Swami Jim Blandy wrote: > In gdb.log, I see the below. Note that the test suite tries to run > the program with a direct "run" command, with no 'target sim'. I > think you need to write an appropriate DejaGnu configuration file for > your target. I believe there are existing files included with DejaGnu > that might be appropriate for you to model yours on, with names ending > in "-sim", or something like that. > > Running ../../../gdb-6.6/gdb/testsuite/gdb.base/a2-run.exp ... > Executing on host: cr16-elf-gcc > ../../../gdb-6.6/gdb/testsuite/gdb.base/run.c -g -lm -o > /scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run (timeout = > 300) > GNU gdb 6.6-1.0 20080109 (cr16-elf) > > Copyright (C) 2006 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and you are > > welcome to change it and/or distribute copies of it under certain conditions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for details. > > This GDB was configured as "--host=i686-pc-linux-gnu --target=cr16-elf". > > (gdb) set height 0 > > (gdb) set width 0 > > (gdb) dir > > Reinitialize source path to empty? (y or n) y > > Source directories searched: $cdir:$cwd > > (gdb) dir ../../../gdb-6.6/gdb/testsuite/gdb.base > > Source directories searched: > /scratch/user/swami/gdb/build/gdb/testsuite/../../../gdb-6.6/gdb/testsuite/gdb.base:$cdir:$cwd > > (gdb) kill > > The program is not being run. > > (gdb) file /scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run > > Reading symbols from > /scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run...done. > > (gdb) run > > Starting program: /scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run > > Don't know how to run. Try "help target". > > (gdb) FAIL: gdb.base/a2-run.exp: run "run" with no args >