From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: Andrew Cagney Cc: Jason Molenda , gdb-patches@sources.redhat.com, Tom Tromey Subject: Re: [RFA] patch to add 'maint profile-gdb' command Date: Mon, 10 Sep 2001 08:58:00 -0000 Message-id: References: <3B9CE0C6.5060700@cygnus.com> X-SW-Source: 2001-09/msg00135.html 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?