From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22387 invoked by alias); 28 Jul 2005 12:54:17 -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 22319 invoked by uid 22791); 28 Jul 2005 12:54:10 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 28 Jul 2005 12:54:10 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1Dy7tl-0004TM-HD; Thu, 28 Jul 2005 08:54:05 -0400 Date: Thu, 28 Jul 2005 12:54:00 -0000 From: Daniel Jacobowitz To: Dave Trollope Cc: "Cuthbertson, Reva D." , gdb@sources.redhat.com Subject: Re: Question regarding setting breakpoints on 'C' labels and the handling of DW_TAG_label in new_symbol() in dwarf2read.c. Message-ID: <20050728125404.GA17049@nevyn.them.org> Mail-Followup-To: Dave Trollope , "Cuthbertson, Reva D." , gdb@sources.redhat.com References: <20050624031916.GA17083@nevyn.them.org> <42E85DC9.6040107@lucent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42E85DC9.6040107@lucent.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00264.txt.bz2 On Wed, Jul 27, 2005 at 11:23:37PM -0500, Dave Trollope wrote: > > I too tried this recently and was disappointed to find it didn't work. > Heres why I was trying it: > > We have a number of source trees where code changes regularly. By using > a label, we can write generic breakpoint scripts that are source tree > independant (I.E. Don't need line numbers to place the breakpoint. etc). > > Is there an alternative way to do what we are trying to achieve? Depending on what sort of scripts they are, this may not be enough, but you can do this with "search". Since it doesn't set the default breakpoint address, you can do this with expect scripts, but not with gdb's source command. -- Daniel Jacobowitz CodeSourcery, LLC