From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18688 invoked by alias); 5 Dec 2007 16:07:37 -0000 Received: (qmail 18680 invoked by uid 22791); 5 Dec 2007 16:07:37 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Dec 2007 16:07:31 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 95F4398349; Wed, 5 Dec 2007 16:07:29 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 67D939833F; Wed, 5 Dec 2007 16:07:29 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IzwmW-0006Pg-Ed; Wed, 05 Dec 2007 11:07:28 -0500 Date: Wed, 05 Dec 2007 16:07:00 -0000 From: Daniel Jacobowitz To: Robin Getz Cc: gdb@sourceware.org Subject: Re: Testsuite question... Message-ID: <20071205160728.GA24621@caradoc.them.org> Mail-Followup-To: Robin Getz , gdb@sourceware.org References: <200712051059.37705.rgetz@blackfin.uclinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200712051059.37705.rgetz@blackfin.uclinux.org> User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00039.txt.bz2 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? 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. -- Daniel Jacobowitz CodeSourcery