From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22808 invoked by alias); 27 Nov 2007 05:52:12 -0000 Received: (qmail 22800 invoked by uid 22791); 27 Nov 2007 05:52:12 -0000 X-Spam-Check-By: sourceware.org Received: from el-out-1112.google.com (HELO el-out-1112.google.com) (209.85.162.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Nov 2007 05:52:08 +0000 Received: by el-out-1112.google.com with SMTP id s27so358051ele for ; Mon, 26 Nov 2007 21:52:05 -0800 (PST) Received: by 10.143.187.2 with SMTP id o2mr751467wfp.1196142724925; Mon, 26 Nov 2007 21:52:04 -0800 (PST) Received: by 10.142.253.17 with HTTP; Mon, 26 Nov 2007 21:52:04 -0800 (PST) Message-ID: <5f7f5dec0711262152n56165a36q9f9d949bf829b537@mail.gmail.com> Date: Tue, 27 Nov 2007 05:52:00 -0000 From: "yichun wang" To: "Michael Snyder" Subject: Re: Breakpoint when entering of functions on i386 Cc: gdb@sourceware.org In-Reply-To: <1196100635.2501.12.camel@localhost.localdomain> 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> 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/msg00239.txt.bz2 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... Thanks, -Yichun. On Nov 27, 2007 2:10 AM, Michael Snyder wrote: > > On Mon, 2007-11-26 at 15:10 +0800, yichun wang wrote: > > Hi, > > > > I'm now working on a script which will print calling graph by stepping > > through program with GDB. The script actually works fine in some small > > cases, but one big performance bottleneck is that I used "watch $ebp" > > to catch the happening of function call, and it will become really > > slow when in some cases, local variable/arguments are heavily used. So > > my question is: > > > > Is there any better way in GDB to capture function call event? > > What about just setting breakpoints on all functions? > > That way, if there is a way to define an "interesting subset" > of functions, you can limit your breakpoints to that subset, > and save a lot of time. > > > >