From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9115 invoked by alias); 5 Dec 2007 16:54:30 -0000 Received: (qmail 9107 invoked by uid 22791); 5 Dec 2007 16:54:29 -0000 X-Spam-Check-By: sourceware.org Received: from nwd2mail11.analog.com (HELO nwd2mail11.analog.com) (137.71.25.57) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Dec 2007 16:54:23 +0000 Received: from nwd2mhb1.analog.com ([137.71.5.12]) by nwd2mail11.analog.com with ESMTP; 05 Dec 2007 11:54:21 -0500 X-IronPort-AV: i="4.23,254,1194238800"; d="scan'208"; a="44745940:sNHT39100719" Received: from nwd2exm4.ad.analog.com (nwd2exm4.ad.analog.com [10.64.53.123]) by nwd2mhb1.analog.com (8.9.3 (PHNE_28810+JAGae91741)/8.9.3) with ESMTP id LAA16066; Wed, 5 Dec 2007 11:54:21 -0500 (EST) Received: from nwd2exm5.ad.analog.com ([10.64.51.20]) by nwd2exm4.ad.analog.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 Dec 2007 11:54:21 -0500 Received: from imhotep.ad.analog.com ([10.64.204.93]) by nwd2exm5.ad.analog.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 Dec 2007 11:54:21 -0500 From: Robin Getz To: "Daniel Jacobowitz" Subject: Re: Testsuite question... Date: Wed, 05 Dec 2007 16:54:00 -0000 User-Agent: KMail/1.9.5 Cc: gdb@sourceware.org References: <200712051059.37705.rgetz@blackfin.uclinux.org> <20071205160728.GA24621@caradoc.them.org> In-Reply-To: <20071205160728.GA24621@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712051155.00860.rgetz@blackfin.uclinux.org> X-IsSubscribed: yes 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: 2007-12/txt/msg00040.txt.bz2 On Wed 5 Dec 2007 11:07, Daniel Jacobowitz pondered: > On Wed, Dec 05, 2007 at 10:59:37AM -0500, Robin Getz wrote: > > proc test_breakpoints { } { > > gdb_test "stop in main" "Breakpoint.*at.*: file.*average\.c, line 38\." > > gdb_test "status" "Num.*Type.*Disp.*Enb.*Address.*What\r\n1\[\r\]+breakpoint\[ \r\]+keep y.*in main at.*average\.c:38.*" > > gdb_test "stop at 43" "Breakpoint.*at.*: file.*average\.c, line 43.*" > > > When you do a "stop symbol", where the symbol is in the application, > > it works fine, > > > > (gdb) stop in main > > Breakpoint 1 at 0x4401b2: file > /home/rgetz/blackfin/toolchain/binutils-2.17/gdb/testsuite/gdb.base/average.c, line 38. > > So - should this change the notion of the current source file or not? I would not think so. > Break does not, so stop in shouldn't either. Therefore the behaviour > you're seeing seems reasonable. I recommend fixing the test, > something like stop at average.c:43. OK - will do - Something like: Index: gdb.base/dbx.exp =================================================================== --- gdb.base/dbx.exp (revision 2024) +++ gdb.base/dbx.exp (working copy) @@ -266,8 +266,8 @@ proc test_breakpoints { } { gdb_test "stop in main" "Breakpoint.*at.*: file.*average\.c, line 38\." gdb_test "status" "Num.*Type.*Disp.*Enb.*Address.*What\r\n1\[ \r\]+breakpoint\[ \r\]+keep y.*in main at.*average\.c:38.*" - gdb_test "stop at 43" "Breakpoint.*at.*: file.*average\.c, line 43.*" - gdb_test "stop in 43" "Usage: stop in " + gdb_test "stop at average.c:43" "Breakpoint.*at.*: file.*average\.c, line 43.*" + gdb_test "stop in average.c:43" "Usage: stop in " gdb_test "stop at main" "Usage: stop at " } Thanks -Robin