From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28020 invoked by alias); 26 Nov 2007 07:10:36 -0000 Received: (qmail 28011 invoked by uid 22791); 26 Nov 2007 07:10:35 -0000 X-Spam-Check-By: sourceware.org Received: from el-out-1112.google.com (HELO el-out-1112.google.com) (209.85.162.182) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Nov 2007 07:10:28 +0000 Received: by el-out-1112.google.com with SMTP id s27so89993ele for ; Sun, 25 Nov 2007 23:10:26 -0800 (PST) Received: by 10.150.154.6 with SMTP id b6mr246557ybe.1196061026723; Sun, 25 Nov 2007 23:10:26 -0800 (PST) Received: by 10.150.148.3 with HTTP; Sun, 25 Nov 2007 23:10:26 -0800 (PST) Message-ID: <5f7f5dec0711252310y6c08920cr8464aa2d40ccf05e@mail.gmail.com> Date: Mon, 26 Nov 2007 07:10:00 -0000 From: "yichun wang" To: gdb@sourceware.org Subject: Re: Breakpoint when entering of functions on i386 In-Reply-To: <5f7f5dec0711252308r5825abb8j91d43234ef7b617c@mail.gmail.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> 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/msg00225.txt.bz2 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? Thanks, -Yichun.