This is the mail archive of the gdb@sources.redhat.com 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: pc_requires_run_before_use


> 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)


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