This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] STT_GNU_IFUNC support


On Sun, Feb 14, 2010 at 09:35:12PM +0100, Jan Kratochvil wrote:
> This implementation resolves ifunc in an uncached way by an inferior call any
> time the symbol resolution is needed.  It does not try to pick out the jump
> address value from ".got.plt" as filled there by ld.so.  (GDB stepping into
> library functions also does not try to do so.)

Do you mean that "print strcmp" or "break strcmp" is now going to do
an inferior call?  That doesn't seem like a good idea to me.  I would
like for some other maintainers to comment though.

Inferior calls are very slow, and they can go wrong (pending signals,
misbehaving programs, etc).  I believe we should make an effort to
minimize them.

For user messages, maybe we should call these "indirect functions";
that's what ifunc is short for.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]