This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Breakpoint when entering of functions on i386
- From: "yichun wang" <wangych at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 26 Nov 2007 15:10:26 +0800
- Subject: Re: Breakpoint when entering of functions on i386
- References: <5f7f5dec0711252308r5825abb8j91d43234ef7b617c@mail.gmail.com>
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.