From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29769 invoked by alias); 29 Feb 2004 14:57:54 -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 29762 invoked from network); 29 Feb 2004 14:57:54 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.170.238) by sources.redhat.com with SMTP; 29 Feb 2004 14:57:54 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7A4352B92; Sun, 29 Feb 2004 09:33:27 -0500 (EST) Message-ID: <4041F837.5020708@gnu.org> Date: Sun, 29 Feb 2004 14:57:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: ramana@codito.com Cc: "Kotian, Deepak" , gdb@sources.redhat.com Subject: Re: How do I set breakpoints on all lines for a particular file. References: <374639AB1012AA4C840022842AA95BC2015ABFE8@ruby.patni.com> <200402291603.38244.ramana.radhakrishnan@codito.com> In-Reply-To: <200402291603.38244.ramana.radhakrishnan@codito.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00429.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. Hmm, there's an idea: (top-gdb) rbreak 'main.c:*(*)' nope :-( but the theory is ok :-/