From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32143 invoked by alias); 28 Aug 2003 19:02:25 -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 32136 invoked from network); 28 Aug 2003 19:02:24 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 28 Aug 2003 19:02:24 -0000 Received: from drow by nevyn.them.org with local (Exim 4.22 #1 (Debian)) id 19sS2J-0001oM-AT; Thu, 28 Aug 2003 15:02:23 -0400 Date: Thu, 28 Aug 2003 19:02:00 -0000 From: Daniel Jacobowitz To: Jafa Cc: gdb@sources.redhat.com Subject: Re: breakpoint on a non-executable line Message-ID: <20030828190222.GA6662@nevyn.them.org> Mail-Followup-To: Jafa , gdb@sources.redhat.com References: <3F4E35CB.3080300@redhat.com> <015801c36d96$95ea2d20$0502a8c0@scenix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <015801c36d96$95ea2d20$0502a8c0@scenix.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-08/txt/msg00313.txt.bz2 On Thu, Aug 28, 2003 at 12:00:02PM -0700, Jafa wrote: > Hi all, > > I am seeing a problem/feature? of gdb (June top of trunk) where if you issue > a command to set a breakpoint on a non-executable line it will return the > line specified, regardless of where it actually set. > > For example: > > (gdb) b /ubicom/toolchain/src/ld/ldmain.c:1 > Breakpoint 2 at 0x41b800: file /ubicom/toolchain/src/ld/ldmain.c, line 1. > > (It actually put the breakpoint on line 167). > > Is this the desired behavior? I would have expected it to return success - > line 167. Do you know if this is a change? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer