From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13826 invoked by alias); 27 Nov 2007 07:53:20 -0000 Received: (qmail 13815 invoked by uid 22791); 27 Nov 2007 07:53:20 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.235) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Nov 2007 07:53:16 +0000 Received: by nz-out-0506.google.com with SMTP id x7so603172nzc for ; Mon, 26 Nov 2007 23:53:14 -0800 (PST) Received: by 10.142.165.9 with SMTP id n9mr764378wfe.1196149993611; Mon, 26 Nov 2007 23:53:13 -0800 (PST) Received: by 10.142.253.17 with HTTP; Mon, 26 Nov 2007 23:53:13 -0800 (PST) Message-ID: <5f7f5dec0711262353i6f73c081hf100f61cd020b5c4@mail.gmail.com> Date: Tue, 27 Nov 2007 07:53:00 -0000 From: "yichun wang" To: "Joel Brobecker" Subject: Re: Breakpoint when entering of functions on i386 Cc: "Michael Snyder" , gdb@sourceware.org In-Reply-To: <20071127072541.GJ3670@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5f7f5dec0711252308r5825abb8j91d43234ef7b617c@mail.gmail.com> <5f7f5dec0711252310y6c08920cr8464aa2d40ccf05e@mail.gmail.com> <1196100635.2501.12.camel@localhost.localdomain> <5f7f5dec0711262152n56165a36q9f9d949bf829b537@mail.gmail.com> <20071127072541.GJ3670@adacore.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00241.txt.bz2 GDB is easy to interact and control, for example, one feature of my script is to start print calling graph after hit some function (just a breakpoint), or to print the value of arguments. It can simply give you many controls of program, for source level to assembly level, with little programming job. Other tools could be also possible, for example, a plugin to valgrind/callgrind will also work, but it may require more knowledge and programming. Currently I'm using perl+gdb, except performance, the script works just fine. -Yichun. On Nov 27, 2007 3:25 PM, Joel Brobecker wrote: > > Thanks Michael, to define an "interesting subset" should improve the > > performance , but I need generate call graph for many different > > applications, and this script won't have any knowledge of the > > application, so this might not work... > > Is there a reason why you have to use GDB instead of a more specialized > tool? > > -- > Joel >