pc_requires_run_before_use

John David Anglin dave@hiauly1.hia.nrc.ca
Wed Nov 24 03:55:00 GMT 2004


> Does anybody understand what this comment means or what this code is
> supposed to do?
> 
> hppa_pc_requires_run_before_use() in hppa-tdep.a says:

I haven't looked at this but I think this is typical of the plabel
setup for lazy binding.  In GCC under linux, we need to call into
the dynamic linker to force resolution of the function when doing
function pointer comparisons.  This is the infamous __cffc routine.
I think gdb will have similar issues when trying to set a break
in a shared library.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



More information about the Gdb mailing list