This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] patch to add 'maint profile-gdb' command
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [RFA] patch to add 'maint profile-gdb' command
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Mon, 10 Sep 2001 17:59:02 +0200 (IST)
- cc: Jason Molenda <jason-swarelist at molenda dot com>, gdb-patches at sources dot redhat dot com, Tom Tromey <tromey at cygnus dot com>
On Mon, 10 Sep 2001, Andrew Cagney wrote:
> a check of *BSD's man pages also points to monstartup() and profil(). i
> dont think you should be trying to implement those.
I'm not sure I understand--are you saying monstartup shouldn't be used by
this feature? If so, why not? I think it should be used if available,
since it avoids the annoying problem of profiling some random startup
code.
> (Eli?) should the doco include a reference to moncontrol(3)?
It's not clear to me why this is needed. Is this issue important for
some reason?
> would having the call in main() be better - turn it off at
> the earliest possible moment?
How about using __attribute__((constructor)) if available?