Breakpoint when entering of functions on i386

yichun wang wangych@gmail.com
Mon Nov 26 07:10:00 GMT 2007


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.



More information about the Gdb mailing list