From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29485 invoked by alias); 29 Feb 2004 10:37:28 -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 29465 invoked from network); 29 Feb 2004 10:37:19 -0000 Received: from unknown (HELO marvin.codito.net) (203.197.88.2) by sources.redhat.com with SMTP; 29 Feb 2004 10:37:19 -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 i1TAnJTR023087; Sun, 29 Feb 2004 16:19:21 +0530 From: Ramana Radhakrishnan Reply-To: ramana@codito.com Organization: Codito Technologies To: "Kotian, Deepak" , "Andrew Cagney" Subject: Re: How do I set breakpoints on all lines for a particular file. Date: Sun, 29 Feb 2004 10:37:00 -0000 User-Agent: KMail/1.5.4 Cc: References: <374639AB1012AA4C840022842AA95BC2015ABFE8@ruby.patni.com> In-Reply-To: <374639AB1012AA4C840022842AA95BC2015ABFE8@ruby.patni.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200402291603.38244.ramana.radhakrishnan@codito.com> X-SW-Source: 2004-02/txt/msg00428.txt.bz2 On Sunday 29 February 2004 13:45, Kotian, Deepak wrote: > Break at all functions in a particular file(.c file), can it be done? If you have the corresponding object file , maybe you can write a shell / awk / perl script to generate this using objdump -t and finding out the function symbols and using that in a gdb script and then include that using the source command. Dont know of any other way of setting breakpoints with respect to all functions in the file you need. cheers ramana > > Thanks and Regards > Deepak > > > -----Original Message----- > From: Andrew Cagney [mailto:cagney@gnu.org] > Sent: Sunday, February 29, 2004 9:34 AM > To: Kotian, Deepak > Cc: gdb@sources.redhat.com > Subject: Re: How do I set breakpoints on all lines for a particular > file. > > > How do I set breakpoints in gdb on all lines for a a target program file. > > Basically, I need to know if any code segment is executed from > > that file. > > Other than explicitly setting a breakpoint on every line, I don't know. > > Andrew