From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7208 invoked by alias); 29 Feb 2004 15:42:37 -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 7201 invoked from network); 29 Feb 2004 15:42:36 -0000 Received: from unknown (HELO marvin.codito.net) (203.197.88.2) by sources.redhat.com with SMTP; 29 Feb 2004 15:42:36 -0000 Received: from numenor.codito.co.in (calvin.codito.co.in [203.199.140.162]) (authenticated bits=0) by marvin.codito.net (8.12.10/8.12.10/Debian-5) with ESMTP id i1TFsYTR027670; Sun, 29 Feb 2004 21:24:35 +0530 From: Ramana Radhakrishnan Reply-To: ramana@codito.com Organization: Codito Technologies To: Andrew Cagney , ramana@codito.com Subject: Re: How do I set breakpoints on all lines for a particular file. Date: Sun, 29 Feb 2004 15:42:00 -0000 User-Agent: KMail/1.5.4 Cc: "Kotian, Deepak" , gdb@sources.redhat.com References: <374639AB1012AA4C840022842AA95BC2015ABFE8@ruby.patni.com> <200402291603.38244.ramana.radhakrishnan@codito.com> <4041F837.5020708@gnu.org> In-Reply-To: <4041F837.5020708@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402292108.55850.ramana.radhakrishnan@codito.com> X-SW-Source: 2004-02/txt/msg00430.txt.bz2 > nope :-( but the theory is ok :-/ Just parameterise this in a shell script and possibly add stuff to take care of the file names . At the command prompt you could do this. $>objdump -t try.o | awk '{ if($3 == "F") { printf ("break try.c: %s\n",$6);}}' > fooscript fooscript would contain stuff like break try.c: and so on. $> gdb gdb> source fooscript. Cant think of anything else unless we want to implement rbreak to take care of file names too :-/ cheers ramana