This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb and dlopen
On Wed, Oct 17, 2001 at 06:56:38PM -0400, Andrew Cagney wrote:
> >On Oct 17, 1:19am, Daniel Jacobowitz wrote:
> >
> >
> >>Amusingly, there are something like eight million calls to
> >>ptid_get_pid. I'll send along a trivial patch to shrink the worst
> >>offenders. I understand the opacity that functions over macros is
> >>going for here, but a function that does 'return a.b;' and gets called
> >>eight MILLION times is a little bit absurd, don't you think? Absurd
> >>enough that it shows up as the second highest item on the profile.
> >
> >
> >It's a shame that we can't use inline functions...
>
> Remember, ptid_get_pid() is the messenger. The real problem is
> elsewhere. A bit like STREQ() in the symtab code.
I don't understand what you mean by this. We certainly need to get at
the actual PID everywhere PIDGET () is being used, regardless of
whether it could be hoisted out of loops.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer