Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBacktrace for shared libraries: difference between elf and pecoff #53
Comments
|
Reading I understand that enumerating libraries and address spaces is difficult to do in a portable way, and that Is there a better way to portably enumerate loaded libraries and address spaces? Would you support this functionality in libbacktrace? |
|
I think it would be reason for the the libbacktrace pecoff.c file to call |
In my use case, I don't care about symbols/debug info in the main executable, only for the shared libraries loaded during run time. Everything works fine on Linux x64, which I believe uses
elf.c. On MSYS, withpecoff.c, I only get symbols/debug info for the module that I pass as thefilenameargument tobacktrace_create_state(). (I can pass the path to a shared library tobacktrace_create_state(), and the file+line information is extracted from there but not from the other shared libraries loaded from the process.)Could you please shed some light on the difference in the observed behavior? Does
elf.citerate over all loaded libraries, andpecoff.cnot? What's the best way to resolve this?