This is the mail archive of the
mailing list for the GDB project.
Re: MI: performance of getting stack arguments
> From: Vladimir Prus <firstname.lastname@example.org>
> Date: Wed, 19 Apr 2006 10:20:07 +0400
> Cc: email@example.com
> > If it's the arguments,
> > we may be able to improve it. Maybe build a debuggable GDB and "maint
> > set profile"?
> Sure. What's the right way to build debuggable GDB, setting CFLAGS=-g during
> configure or something else?
You need to configure with --enable-profiling, and then build as
usual. (This is explained in the manual, right next to where "maint
set profile" is described.) Of course, don't strip the GDB binary, or
the profiles will be very dull...