How to specify location of shared libraries for core file?

Pablo Galindo Salgado pablogsal@gmail.com
Fri Mar 12 20:10:02 GMT 2021


Hi,

It is possible to specify the location of shared libraries when
reporting/attaching to a core file? The problem
I am having is that when the core is moved to another machine the location
of the shared libraries reported in
its NOTE segments (and also the r_debug and link maps) are no longer
correct and therefore when calling
dwfl_core_file_report() and dwfl_core_file_attach() it doesn't correctly
populate the location of all the modules
so symbols and backtracking cannot be done.

I tried to set up a search path using the "debuginfo_path" string in the
callbacks for dwfl_begin() but it didn't have any effect.

Could you please advise or point me in the general route of how this could
be solved?

Thanks a lot in advance!

Kind regards,
Pablo Galindo Salgado


More information about the Elfutils-devel mailing list