From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7844 invoked by alias); 16 Jan 2003 00:56:58 -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 7837 invoked from network); 16 Jan 2003 00:56:57 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 16 Jan 2003 00:56:57 -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 h0G0SaB25054 for ; Wed, 15 Jan 2003 19:28:36 -0500 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 h0G0uva15928; Wed, 15 Jan 2003 19:56:57 -0500 Received: from localhost.redhat.com (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h0G0ut310158; Wed, 15 Jan 2003 19:56:55 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id BC77BFF79; Wed, 15 Jan 2003 20:01:15 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15910.1114.874514.583148@localhost.redhat.com> Date: Thu, 16 Jan 2003 00:56:00 -0000 To: David Carlton Cc: gdb@sources.redhat.com, Elena Zannoni , Fernando Nasser Subject: Re: zillions of testsuite failures In-Reply-To: References: X-SW-Source: 2003-01/txt/msg00283.txt.bz2 David Carlton writes: > (gdb) run > Starting program: /extra/gdb/mirror/src/gdb/testsuite/gdb.base/advance > > Breakpoint 1, main () at gdb.base/advance.c:37 > 37 c = 5; > (gdb) list ./gdb.base/advance.c:1,1 > No source file named ./gdb.base/advance.c. this is the problem, it is searching in the wrong spot for the source file, In my gdb.log I have: Breakpoint 1, main () at /home/ezannoni/sources/src/gdb/testsuite/gdb.base/advance.c:37 37 c = 5; (gdb) list /home/ezannoni/sources/src/gdb/testsuite/gdb.base/advance.c:1,1 1 (gdb) search advance this location 38 b = 3; /* advance this location */ (gdb) advance 38 Seems that gdb_get_line_number doesn't know the ${srcfile} correctly. More digging.... > (gdb) search advance this location > 38 b = 3; /* advance this location */ > (gdb) advance 38 > main () at gdb.base/advance.c:38 > 38 b = 3; /* advance this location */ > (gdb) PASS: gdb.base/advance.exp: advance line number > list ./gdb.base/advance.c:1,1 > No source file named ./gdb.base/advance.c. > (gdb) search advance malformed > 43 return 0; /* advance malformed */ > (gdb) advance 43 then stop > Junk at end of arguments. > (gdb) PASS: gdb.base/advance.exp: malformed advance > advance func > func () at gdb.base/advance.c:18 > 18 x = x + 5; > (gdb) PASS: gdb.base/advance.exp: advance func > advance func3 > main () at gdb.base/advance.c:41 > 41 func3 (); /* break here */ > (gdb) FAIL: gdb.base/advance.exp: advance function not called by current frame > list ./gdb.base/advance.c:1,1 > No source file named ./gdb.base/advance.c. > (gdb) search break here > Expression not found > (gdb) FAIL: gdb.base/advance.exp: find line number containing "break here" > break -1 > Breakpoint 2 at 0x80484aa: file gdb.base/advance.c, line 40. > (gdb) PASS: gdb.base/advance.exp: set breakpoint at call to func3 > continue > Continuing. > > Program exited normally. > (gdb) FAIL: gdb.base/advance.exp: continue to call to func3 in main > advance foo > The program is not running. > (gdb) FAIL: gdb.base/advance.exp: advance function called as param > advance > The program is not running. > (gdb) FAIL: gdb.base/advance.exp: advance with no argument